fixed Makefile for building dmapi tests
[xfstests-dev.git] / 061
1 #! /bin/sh
2 # FS QA Test No. 061
3 #
4 # Test restoring a dump created in IRIX/XFS
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
8 #-----------------------------------------------------------------------
9 #
10 # creator
11 owner=tes@sgi.com
12
13 seq=`basename $0`
14 echo "QA output created by $seq"
15
16 here=`pwd`
17 tmp=/tmp/$$
18 status=0        # success is the default!
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20
21 # get standard environment, filters and checks
22 . ./common.rc
23 . ./common.dump
24
25 # real QA test starts here
26 _supported_fs xfs
27 _supported_os IRIX Linux
28
29 # src/dumpfile based on dumping from
30 # _create_dumpdir_fill_perm (small dump)
31
32 _create_dumpdir_fill_perm
33 dump_file=src/dumpfile # override dump_file to checked-in dumpfile
34 session_label="stress_056"
35 # we have no quotas to restore
36 # if we happen to run this on crackle then put the hostname back
37 _do_restore_file -Q  | sed -e 's/HOSTNAME/crackle/g' -e 's#SCRATCH_DEV#/dev/dsk/dks0d2s1#'
38 _diff_compare_sub
39 _ls_nodate_compare_sub
40
41 # success, all done
42 exit