From a05461c1ddbcdc3875b0b8aa3657d5cc75faa15e Mon Sep 17 00:00:00 2001 From: Rahul C S Date: Wed, 11 Jan 2012 17:43:27 +0530 Subject: Adding fsmark tests to sanity Change-Id: Ief7b6f884cf08321343e03758eeedb312b1fe799 Signed-off-by: Rahul C S --- sanity/system_light/config | 4 ++++ sanity/system_light/run.sh | 18 +++++++++++++++++- sanity/system_light/scripts/fs_mark.sh | 21 +++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100755 sanity/system_light/scripts/fs_mark.sh diff --git a/sanity/system_light/config b/sanity/system_light/config index 85bdb76..3acde78 100755 --- a/sanity/system_light/config +++ b/sanity/system_light/config @@ -137,3 +137,7 @@ export SYSCALL_PLOT=$TOOL_DIR/syscallbench/syscallben-plot #tiobench related variables export TIO_BIN=/opt/qa/tools/tiobench-0.3.3/tiotest + +#fsmark related variables +export SUBDIR_COUNT=4 +export THR_COUNT=4 diff --git a/sanity/system_light/run.sh b/sanity/system_light/run.sh index b244030..12198a2 100755 --- a/sanity/system_light/run.sh +++ b/sanity/system_light/run.sh @@ -30,7 +30,8 @@ _init () 15.syscallbench 16.tiobench 17.locktests -18.ioblazer"; +18.ioblazer +19.fsmark"; } run_ffsb () @@ -354,6 +355,20 @@ run_rpc_coverage () fi } +run_fsmark () +{ + echo "Executing fsmark" + set +x + $SCRIPTS_PATH/fs_mark.sh + if [ "${?}" -eq 0 ]; then + CNT=$((CNT+1)) + echo $CNT + else + echo "fsmark failed" + echo $CNT + fi +} + main () { echo " Changing to the specified mountpoint"; @@ -378,6 +393,7 @@ main () run_arequal; run_syscallbench; run_tiobench; + run_fsmark; if [ $TYPE != "nfs" ]; then run_locktests; fi diff --git a/sanity/system_light/scripts/fs_mark.sh b/sanity/system_light/scripts/fs_mark.sh new file mode 100755 index 0000000..53404c5 --- /dev/null +++ b/sanity/system_light/scripts/fs_mark.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +function main () +{ + + echo "start: `date +%T`" + + for i in `seq 1 6` + do + time fs_mark -d . -D SUBDIR_COUNT -t THR_COUNT -S $i 2>>$LOG_FILE 1>>$LOG_FILE + if [ $? -ne 0 ]; then + echo "end:`date +%T`"; + return 11; + fi + done + + echo "end:`date +%T`"; + return 0; +} + +main "$@"; -- cgit