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