fstests: convert remaining tests to SPDX license tags
[xfstests-dev.git] / tests / xfs / 023
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 023
6 #
7 # To test xfsdump/restore to tape using a directory with
8 # files with data created by src/fill.
9 #
10 seqfull=$0
11 seq=`basename $0`
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
14
15 here=`pwd`
16 tmp=/tmp/$$
17 status=0        # success is the default!
18 trap "rm -rf $tmp.*; exit \$status" 0 1 2 3 15
19
20 # get standard environment, filters and checks
21 . ./common/rc
22 . ./common/dump
23
24 # real QA test starts here
25 _supported_fs xfs
26 _supported_os Linux
27
28 _require_tape $TAPE_DEV
29 _create_dumpdir_fill
30 _erase_hard
31 _do_dump_sub
32 _do_restore
33 _diff_compare_sub
34 _ls_compare_sub
35
36 # success, all done
37 exit