xfs: convert tests to SPDX license tags
[xfstests-dev.git] / tests / xfs / 059
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001, 2011 SGI.  All Rights Reserved.
4 #
5 # FS QA Test No. 059
6 #
7 # Test multi-stream xfsdump/xfsrestore.
8 #
9 seq=`basename $0`
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
12
13 here=`pwd`
14 tmp=/tmp/$$
15 status=0        # success is the default!
16 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
17
18 # get standard environment, filters and checks
19 . ./common/rc
20 . ./common/dump
21
22 # real QA test starts here
23 _supported_fs xfs
24 _supported_os Linux
25
26 _require_multi_stream
27
28 _create_dumpdir_fill_multi
29 _do_dump_multi_file --multi 4
30 _do_restore_multi_file --multi 4
31 _ls_compare_sub
32 _diff_compare
33
34 # success, all done
35 exit