From cb87f837d8c049b3cbaef358ab861041750c6bc4 Mon Sep 17 00:00:00 2001 From: Laura Casswell Date: Fri, 3 Sep 2004 14:40:32 +0000 Subject: [PATCH] add run script This commit was SVN r2477. --- test/mpi/run_tests | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100755 test/mpi/run_tests diff --git a/test/mpi/run_tests b/test/mpi/run_tests new file mode 100755 index 0000000000..78b7be4d26 --- /dev/null +++ b/test/mpi/run_tests @@ -0,0 +1,56 @@ +#! /bin/csh -f +# Name +# ==== +# run script for mpi tests + +# Arguements +# ========== +# +# test_list = no args or all runs all tests +# or +# llm runs ompi mpi llm tests +# ns runs ompi mpi ns tests +# oob runs ompi mpi oob tests +# pcm runs ompi mpi pcm tests + +# Usage +# +# ===== +# To invoke this script, enter either +# run_tests +# with no arguments to run all tests, or +# run_tests + +umask 007 + +if ("x$1" == "x") then + cd environment; ./run_tests all; cd ..; +else + + foreach target ($argv) + switch ($target) + case "all": + cd ../environment; ./run_tests all; cd ..; + breaksw + case "environment": + cd $target + ./run_tests; + cd ..; + breaksw + case "help": echo "correct use: " + echo " run_tests help (this message)" + echo " run_tests all (to run all mpi tests)" + echo "or run_tests " + breaksw + default + echo "There is no part of mpia tests called program <$target> to run" + echo "correct use: " + echo " run_tests all (to run all mpi tests)" + echo "or run_tests " + break + endsw + end + +endif + +