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 #-----------------------------------------------------------------------
30 seqres=$RESULT_DIR/$seq
31 echo "QA output created by $seq"
35 status=1 # failure is the default!
36 trap "_cleanup; exit \$status" 0 1 2 3 15
43 # get standard environment, filters and checks
48 FSX_ARGS="-q -l $FSX_FILE_SIZE -o 65536 -S 191110531 -N 100000"
52 echo "=== FSX Light Mode, No Memory Mapping ==="
53 dd if=/dev/zero of=$TEST_DIR/fsx_lite_nommap bs=${FSX_FILE_SIZE} count=1 > /dev/null 2>&1
54 if ! ltp/fsx $FSX_ARGS -L -R -W $FSX_AVOID $TEST_DIR/fsx_lite_nommap > $tmp.output 2>&1
56 echo "ltp/fsx $FSX_ARGS -L -R -W $TEST_DIR/fsx_lite_nommap"
66 echo "=== FSX Light Mode, Memory Mapping ==="
67 dd if=/dev/zero of=$TEST_DIR/fsx_lite_mmap bs=${FSX_FILE_SIZE} count=1 > /dev/null 2>&1
68 if ! ltp/fsx $FSX_ARGS -L $FSX_AVOID $TEST_DIR/fsx_lite_mmap > $tmp.output 2>&1
70 echo "ltp/fsx $FSX_ARGS -L fsx_lite_mmap"
80 echo "=== FSX Standard Mode, No Memory Mapping ==="
81 if ! ltp/fsx $FSX_ARGS -R -W $FSX_AVOID $TEST_DIR/fsx_std_nommap > $tmp.output 2>&1
83 echo "ltp/fsx $FSX_ARGS -R -W fsx_std_nommap"
93 echo "=== FSX Standard Mode, Memory Mapping ==="
94 if ! ltp/fsx $FSX_ARGS $FSX_AVOID $TEST_DIR/fsx_std_mmap > $tmp.output 2>&1
96 echo "ltp/fsx $FSX_ARGS fsx_std_mmap"
104 # real QA test starts here
105 _supported_fs generic
115 #flush cache after write
116 FSX_ARGS="-f $FSX_ARGS"