fstests: move test group info to test files
[xfstests-dev.git] / tests / ext4 / 001
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright 2014 (C) Red Hat, Inc., Lukas Czerner <lczerner@redhat.com>
4 #
5 # FS QA Test No. 001
6 #
7 # Test fallocate FALLOC_FL_ZERO_RANGE
8 #
9 seqfull=$0
10 . ./common/preamble
11 _begin_fstest auto prealloc quick zero
12
13 # Import common functions.
14 . ./common/filter
15 . ./common/punch
16
17 # real QA test starts here
18 _supported_fs ext4
19 _require_xfs_io_command "falloc"
20 _require_xfs_io_command "fzero"
21 _require_test
22
23 # Select appropriate golden output based on mount options
24 _link_out_file
25
26 testfile=$TEST_DIR/001.$$
27
28 # Standard zero range tests
29 _test_generic_punch falloc fzero fzero fiemap _filter_fiemap $testfile
30
31 # Delayed allocation zero range tests
32 _test_generic_punch -d falloc fzero fzero fiemap _filter_fiemap $testfile
33
34 # Multi zero range tests
35 _test_generic_punch -k falloc fzero fzero fiemap _filter_fiemap $testfile
36
37 # Delayed allocation multi zero range tests
38 _test_generic_punch -d -k falloc fzero fzero fiemap _filter_fiemap $testfile
39
40 status=0 ; exit