xfstests 241: run parallel dbench
[xfstests-dev.git] / 170
1 #! /bin/bash
2 #
3 # FSQA Test No. 170
4 #
5 # Check the filestreams allocator is doing its job.
6 # Multi-file data streams should always write into seperate AGs.
7 #
8 #-----------------------------------------------------------------------
9 # Copyright (c) 2007 Silicon Graphics, Inc.  All Rights Reserved.
10 #
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License as
13 # published by the Free Software Foundation.
14 #
15 # This program is distributed in the hope that it would be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write the Free Software Foundation,
22 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
23 #
24 #-----------------------------------------------------------------------
25 #
26 # creator - based on work from ddiss@sgi.co
27 owner=dgc@sgi.com
28
29 seq=`basename $0`
30 echo "QA output created by $seq"
31
32 here=`pwd`
33 tmp=/tmp/$$
34 rm -f $seq.full
35 status=1    # failure is the default!
36 trap "_cleanup; exit \$status" 0 1 2 3 15
37
38 _cleanup()
39 {
40         cd /
41         rm -f $tmp.*
42 }
43
44 # get standard environment, filters and checks
45 . ./common.rc
46 . ./common.filter
47 . ./common.filestreams
48
49 # real QA test starts here
50 _supported_fs xfs
51 _supported_os IRIX Linux
52
53 _require_scratch
54
55 _check_filestreams_support || _notrun "filestreams not available"
56
57 # test small stream, multiple I/O per file, 30s timeout
58 _set_stream_timeout_centisecs 3000
59
60 # test streams does a mkfs and mount
61 _test_streams 8 16 4 8 3 0 0
62 _test_streams 8 16 4 8 3 1 0
63 _test_streams 8 16 4 8 3 0 1
64 _test_streams 8 16 4 8 3 1 1
65
66 status=0
67 exit
68