xfstests: more 214 updates
[xfstests-dev.git] / 257
1 #! /bin/bash
2 #
3 # Check that no duplicate d_off values are returned and that those
4 # values are seekable. Most work is done by the C program here.
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2011 GraÅžvydas Ignotas
8 #
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License as
11 # published by the Free Software Foundation.
12 #
13 # This program is distributed in the hope that it would be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write the Free Software Foundation,
20 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21 #-----------------------------------------------------------------------
22 #
23 # creator
24 owner=notasas@gmail.com
25
26 seq=`basename $0`
27 echo "QA output created by $seq"
28
29 here=`pwd`
30 tmp=/tmp/$$
31 status=1        # failure is the default!
32
33 _cleanup()
34 {
35         rm -rf $TEST_DIR/ttt
36 }
37 trap "_cleanup; exit \$status" 0 1 2 3 15
38
39 # get standard environment, filters and checks
40 . ./common.rc
41 . ./common.filter
42
43 # real QA test starts here
44 _supported_fs generic
45 _supported_os Linux
46
47 mkdir $TEST_DIR/ttt
48 for n in {1..168}; do
49     touch $TEST_DIR/ttt/$n;
50 done
51 src/t_dir_offset2 $TEST_DIR/ttt
52
53 # success, all done
54 echo "*** done"
55 rm -f $seq.full
56 status=0