generic: long fsx soak tests
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 7 Dec 2018 06:24:45 +0000 (22:24 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 9 Dec 2018 14:56:51 +0000 (22:56 +0800)
Add a few tests to implement long soak tests of fsx.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/521 [new file with mode: 0755]
tests/generic/521.out [new file with mode: 0644]
tests/generic/522 [new file with mode: 0755]
tests/generic/522.out [new file with mode: 0644]
tests/generic/group

diff --git a/tests/generic/521 b/tests/generic/521
new file mode 100755 (executable)
index 0000000..e8bc36e
--- /dev/null
@@ -0,0 +1,61 @@
+#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2018 Oracle.  All Rights Reserved.
+#
+# FS QA Test No. 521
+#
+# Long-soak directio fsx test
+#
+seq=`basename $0`
+seqres=$RESULT_DIR/$seq
+echo "QA output created by $seq"
+
+here=`pwd`
+tmp=/tmp/$$
+status=1        # failure is the default!
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+_cleanup()
+{
+        cd /
+        rm -f $tmp.*
+}
+
+# get standard environment, filters and checks
+. ./common/rc
+. ./common/filter
+
+# remove previous $seqres.full before test
+rm -f $seqres.full
+
+# real QA test starts here
+
+# Modify as appropriate.
+_supported_fs generic
+_supported_os Linux
+_require_test
+_require_odirect
+
+# Run fsx for a million ops or more
+nr_ops=$((1000000 * TIME_FACTOR))
+op_sz=$((128000 * LOAD_FACTOR))
+file_sz=$((600000 * LOAD_FACTOR))
+fsx_file=$TEST_DIR/fsx.$seq
+min_dio_sz=$(_min_dio_alignment)
+
+fsx_args=(-q)
+fsx_args+=(-N $nr_ops)
+fsx_args+=(-p $((nr_ops / 100)))
+fsx_args+=(-o $op_sz)
+fsx_args+=(-l $file_sz)
+fsx_args+=(-r $min_dio_sz)
+fsx_args+=(-t $min_dio_sz)
+fsx_args+=(-w $min_dio_sz)
+fsx_args+=(-Z)
+
+run_fsx "${fsx_args[@]}" | sed -e '/^fsx.*/d'
+
+# success, all done
+echo Silence is golden
+status=0
+exit
diff --git a/tests/generic/521.out b/tests/generic/521.out
new file mode 100644 (file)
index 0000000..47889cc
--- /dev/null
@@ -0,0 +1,2 @@
+QA output created by 521
+Silence is golden
diff --git a/tests/generic/522 b/tests/generic/522
new file mode 100755 (executable)
index 0000000..e9ad023
--- /dev/null
@@ -0,0 +1,55 @@
+#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+# Copyright (c) 2018 Oracle.  All Rights Reserved.
+#
+# FS QA Test No. 522
+#
+# Long-soak buffered fsx test
+#
+seq=`basename $0`
+seqres=$RESULT_DIR/$seq
+echo "QA output created by $seq"
+
+here=`pwd`
+tmp=/tmp/$$
+status=1        # failure is the default!
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+_cleanup()
+{
+        cd /
+        rm -f $tmp.*
+}
+
+# get standard environment, filters and checks
+. ./common/rc
+. ./common/filter
+
+# remove previous $seqres.full before test
+rm -f $seqres.full
+
+# real QA test starts here
+
+# Modify as appropriate.
+_supported_fs generic
+_supported_os Linux
+_require_test
+
+# Run fsx for a million ops or more
+nr_ops=$((1000000 * TIME_FACTOR))
+op_sz=$((128000 * LOAD_FACTOR))
+file_sz=$((600000 * LOAD_FACTOR))
+fsx_file=$TEST_DIR/fsx.$seq
+
+fsx_args=(-q)
+fsx_args+=(-N $nr_ops)
+fsx_args+=(-p $((nr_ops / 100)))
+fsx_args+=(-o $op_sz)
+fsx_args+=(-l $file_sz)
+
+run_fsx "${fsx_args[@]}" | sed -e '/^fsx.*/d'
+
+# success, all done
+echo Silence is golden
+status=0
+exit
diff --git a/tests/generic/522.out b/tests/generic/522.out
new file mode 100644 (file)
index 0000000..d40b975
--- /dev/null
@@ -0,0 +1,2 @@
+QA output created by 522
+Silence is golden
index eb5e4ce91575edb90015a931f46b4cd90efe9cfe..ea5aa7aa47af841d1b8428f5292b9805ac621f80 100644 (file)
 518 auto quick clone
 519 auto quick
 520 auto quick log
+521 soak long_rw
+522 soak long_rw