4 # fsx tests modified from CXFSQA tests
10 #-----------------------------------------------------------------------
11 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
13 # This program is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU General Public License as
15 # published by the Free Software Foundation.
17 # This program is distributed in the hope that it would be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write the Free Software Foundation,
24 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 #-----------------------------------------------------------------------
32 echo "QA output created by $seq"
36 status=1 # failure is the default!
37 trap "_cleanup; exit \$status" 0 1 2 3 15
45 # get standard environment, filters and checks
50 FSX_ARGS="-q -l $FSX_FILE_SIZE -o 65536 -S 191110531 -N 100000"
54 echo "=== FSX Light Mode, No Memory Mapping ==="
55 dd if=/dev/zero of=$testdir/fsx_lite_nommap bs=${FSX_FILE_SIZE} count=1 > /dev/null 2>&1
56 if ! ltp/fsx $FSX_ARGS -L -R -W $testdir/fsx_lite_nommap > $tmp.output 2>&1
58 echo "ltp/fsx $FSX_ARGS -L -R -W $testdir/fsx_lite_nommap"
68 echo "=== FSX Light Mode, Memory Mapping ==="
69 dd if=/dev/zero of=$testdir/fsx_lite_mmap bs=${FSX_FILE_SIZE} count=1 > /dev/null 2>&1
70 if ! ltp/fsx $FSX_ARGS -L $testdir/fsx_lite_mmap > $tmp.output 2>&1
72 echo "ltp/fsx $FSX_ARGS -L fsx_lite_mmap"
82 echo "=== FSX Standard Mode, No Memory Mapping ==="
83 if ! ltp/fsx $FSX_ARGS -R -W $testdir/fsx_std_nommap > $tmp.output 2>&1
85 echo "ltp/fsx $FSX_ARGS -R -W fsx_std_nommap"
95 echo "=== FSX Standard Mode, Memory Mapping ==="
96 if ! ltp/fsx $FSX_ARGS $testdir/fsx_std_mmap > $tmp.output 2>&1
98 echo "ltp/fsx $FSX_ARGS fsx_std_mmap"
106 # real QA test starts here
107 _supported_fs generic
118 #flush cache after write
119 FSX_ARGS="-f $FSX_ARGS"