Fix build failure.
[xfstests-dev.git] / 022
1 #! /bin/sh
2 # FS QA Test No. 022
3 #
4 # Test out a level 0 dump/restore to a tape of a subdir
5 # i.e. it is testing out drive_scsitape.c
6 #
7 # Use fsstress to create a directory structure with a mix of files
8 #
9 #-----------------------------------------------------------------------
10 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
11 #-----------------------------------------------------------------------
12 #
13 # creator
14 owner=tes@sgi.com
15
16 seq=`basename $0`
17 echo "QA output created by $seq"
18
19 here=`pwd`
20 tmp=/tmp/$$
21 status=0        # success is the default!
22 trap "rm -rf $tmp.*; exit \$status" 0 1 2 3 15
23
24 . ./common.rc
25 . ./common.dump
26
27 # link correct .out file
28 _link_out_file $seq.out
29
30 # real QA test starts here
31 _supported_fs xfs
32 _supported_os IRIX Linux
33
34 _require_tape $TAPE_DEV
35
36 # note: fsstress uses an endian dependent random number generator, running this
37 # will produce different output for big/little endian machines. This issue was
38 # resolved by using different Linux/IRIX out files.
39 _create_dumpdir_stress
40 _erase_hard
41 _do_dump_sub
42 _do_restore
43 _ls_compare_sub
44
45 # success, all done
46 exit