fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 035
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. 035
6 #
7 # Test doing multiple dumps to tape and restoring the 2nd one
8 #
9 seqfull=$0
10 . ./common/preamble
11 _begin_fstest dump ioctl tape auto
12
13 # Override the default cleanup function.
14 _cleanup()
15 {
16         _cleanup_dump
17         cd /
18         rm -f $tmp.*
19 }
20
21 # Import common functions.
22 . ./common/dump
23
24 # real QA test starts here
25 _supported_fs xfs
26
27 _require_tape $TAPE_DEV
28 _create_dumpdir_fill
29 _erase_hard
30 _do_dump -L $seq.1
31 _rewind
32 _create_dumpdir_fill2
33 _do_dump -L $seq.2
34 _do_restore -L $seq.2
35 _diff_compare
36
37 # success, all done
38 status=0
39 exit