From 7dfe48ec94c199c4240cd26c7f6d16e3d2141276 Mon Sep 17 00:00:00 2001 From: Laura Casswell Date: Fri, 3 Sep 2004 14:08:36 +0000 Subject: [PATCH] add run script This commit was SVN r2470. --- test/mca/oob/run_tests | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100755 test/mca/oob/run_tests diff --git a/test/mca/oob/run_tests b/test/mca/oob/run_tests new file mode 100755 index 0000000000..1a718346cb --- /dev/null +++ b/test/mca/oob/run_tests @@ -0,0 +1,62 @@ +#! /bin/csh -f +# Name +# ==== +# run script for mca oob tests + +# Arguements +# ========== +# +# test_list = no args runs all tests +# or +# oob_test runs ompi mca oob_test +# oob_test_self runs ompi mca oob_test_self test +# oob_test_packed runs ompi mca oob_test_packed test + +# Usage +# +# ===== +# To invoke this script, enter either +# run_tests +# with no arguments to run all tests, or +# run_tests + +MPIRUN = mpirun +umask 007 + +if ("x$1" == "x") then + mpirun -np 2 -- ./oob_test; + mpirun -np 1 -- ./oob_test_self; + mpirun -np 2 -- ./oob_test_packed; +else + foreach target ($argv) + switch ($target) + case "all": + mpirun -np 2 -- ./oob_test; + mpirun -np 1 -- ./oob_test_self; + mpirun -np 2 -- ./oob_test_packed; + breaksw + case "oob_test_self": + mpirun -np 1 -- ./oob_test_self; + breaksw + case "oob_test": + case "oob_test_packed": + mpirun -np 2 -- ./$target; + breaksw + case "help" + echo "correct use: " + echo " run_tests help (this message)" + echo " run_tests (to run all oob tests)" + echo "or run_tests " + break + breaksw + default + echo "There is no test <$target> to run" + echo "correct use: " + echo " run_tests (to run all oob tests)" + echo "or run_tests " + break + endsw + end +endif + +