From: Aditya Pandit Date: Wed, 9 Dec 2015 09:58:58 +0000 (+0530) Subject: LU-8702 tests: parallel execution of IOR and MDTEST added. X-Git-Tag: 2.9.53~7 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=ad0a085d95f80fa16a0c96fddd03577d499ab903 LU-8702 tests: parallel execution of IOR and MDTEST added. Added test case for execution of mdtest and IOR in parallel. Test-Parameters: trivial testlist=parallel-scale Change-Id: I3b8a74a94739417467cc04bcc5e688b487d0cfe7 Seagate-bug-id: MRP-3149 Signed-off-by: Ashish Maurya Signed-off-by: Aditya Pandit Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/10376 Tested-by: Jenkins Reviewed-by: Alexander Lezhoev Reviewed-by: Rahul Deshmukh Reviewed-by: Ujjwal Lanjewar Tested-by: Elena V. Gryaznova Reviewed-on: https://review.whamcloud.com/23126 Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Elena Gryaznova Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/functions.sh b/lustre/tests/functions.sh index 01f3741..cada840 100644 --- a/lustre/tests/functions.sh +++ b/lustre/tests/functions.sh @@ -1037,3 +1037,21 @@ run_fs_test() { rm -rf $testdir } + +ior_mdtest_parallel() { + local rc1=0 + local rc2=0 + local type=$1 + + run_ior $type & + local pids=$! + + run_mdtest $type || rc2=$? + [[ $rc2 -ne 0 ]] && echo "mdtest failed with error $rc2" + + wait $pids || rc1=$? + [[ $rc1 -ne 0 ]] && echo "ior failed with error $rc1" + + [[ $rc1 -ne 0 || $rc2 -ne 0 ]] && return 1 + return 0 +} diff --git a/lustre/tests/parallel-scale.sh b/lustre/tests/parallel-scale.sh index 4530b3e..a590d21 100644 --- a/lustre/tests/parallel-scale.sh +++ b/lustre/tests/parallel-scale.sh @@ -111,6 +111,16 @@ test_iorfpp() { } run_test iorfpp "iorfpp" +test_ior_mdtest_parallel_ssf() { + ior_mdtest_parallel "ssf" +} +run_test ior_mdtest_parallel_ssf "iormdtestssf" + +test_ior_mdtest_parallel_fpp() { + ior_mdtest_parallel "fpp" +} +run_test ior_mdtest_parallel_fpp "iormdtestfpp" + test_mib() { run_mib }