1f08c3bdfSopenharmony_ci#!/bin/sh 2f08c3bdfSopenharmony_ci# SPDX-License-Identifier: GPL-2.0-or-later 3f08c3bdfSopenharmony_ci# Copyright (c) 2015-2018 Oracle and/or its affiliates. All Rights Reserved. 4f08c3bdfSopenharmony_ci# Copyright (c) International Business Machines Corp., 2003 5f08c3bdfSopenharmony_ci# 6f08c3bdfSopenharmony_ci# PURPOSE: Creates a text file of specified size locally and copies 7f08c3bdfSopenharmony_ci# the file to an NFS mountpoint. The two files are compared 8f08c3bdfSopenharmony_ci# and checked for differences. If the files differ, then 9f08c3bdfSopenharmony_ci# the test fails. By default, this test creates a 10Mb file 10f08c3bdfSopenharmony_ci# and runs for one loop. 11f08c3bdfSopenharmony_ci# 12f08c3bdfSopenharmony_ci# Created by: Robbie Williamson (robbiew@us.ibm.com) 13f08c3bdfSopenharmony_ci 14f08c3bdfSopenharmony_ciTST_TESTFUNC="do_test" 15f08c3bdfSopenharmony_ci 16f08c3bdfSopenharmony_cido_test() 17f08c3bdfSopenharmony_ci{ 18f08c3bdfSopenharmony_ci tst_res TINFO "create 10M file" 19f08c3bdfSopenharmony_ci ROD nfs04_create_file 10 nfs04.testfile 20f08c3bdfSopenharmony_ci tst_res TPASS "Test finished" 21f08c3bdfSopenharmony_ci} 22f08c3bdfSopenharmony_ci 23f08c3bdfSopenharmony_ci. nfs_lib.sh 24f08c3bdfSopenharmony_citst_run 25