Integrate existing dmapi qa tests into xfs qa infrastructure
[xfstests-dev.git] / 037
1 #! /bin/sh
2 # FS QA Test No. 037
3 #
4 # Test xfsdump/restore minrmt to a remote linux tape 
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=1        # failure 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 Linux
28
29 _require_tape $RMT_TAPE_DEV
30 _create_dumpdir_fill
31 _erase_soft
32 _do_dump_min -o -F
33 _do_restore_min
34 _diff_compare
35
36 # success, all done
37 status=0
38 exit