More tests for the NULL files problem
[xfstests-dev.git] / 023
1 #! /bin/sh
2 # FS QA Test No. 023
3 #
4 # To test xfsdump/restore to tape using a directory with
5 # files with data created by src/fill.
6 #
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
9 #-----------------------------------------------------------------------
10 #
11 # creator
12 owner=tes@sgi.com
13
14 seq=`basename $0`
15 echo "QA output created by $seq"
16
17 here=`pwd`
18 tmp=/tmp/$$
19 status=0        # success is the default!
20 trap "rm -rf $tmp.*; exit \$status" 0 1 2 3 15
21
22 # get standard environment, filters and checks
23 . ./common.rc
24 . ./common.dump
25
26 # link correct .out file
27 _link_out_file $seq.out
28
29 # real QA test starts here
30 _supported_fs xfs
31 _supported_os IRIX Linux
32
33 _require_tape $TAPE_DEV
34 _create_dumpdir_fill
35 _erase_hard
36 _do_dump_sub
37 _do_restore
38 _diff_compare_sub
39 _ls_compare_sub
40
41 # success, all done
42 exit