2004-08-11 17:25:56 +00:00
|
|
|
#! /bin/csh -f
|
|
|
|
# Name
|
|
|
|
# ====
|
|
|
|
# run script for mca tests
|
|
|
|
|
|
|
|
# Arguements
|
|
|
|
# ==========
|
|
|
|
#
|
2004-09-03 14:23:37 +00:00
|
|
|
# test_list = no args or all runs all tests
|
2004-08-11 17:25:56 +00:00
|
|
|
# or
|
2004-08-12 21:38:21 +00:00
|
|
|
# llm runs ompi mca llm tests
|
|
|
|
# ns runs ompi mca ns tests
|
|
|
|
# oob runs ompi mca oob tests
|
|
|
|
# pcm runs ompi mca pcm tests
|
2004-08-11 17:25:56 +00:00
|
|
|
|
|
|
|
# Usage
|
|
|
|
#
|
|
|
|
# =====
|
|
|
|
# To invoke this script, enter either
|
|
|
|
# run_tests
|
|
|
|
# with no arguments to run all tests, or
|
|
|
|
# run_tests <test_name>
|
|
|
|
|
|
|
|
umask 007
|
|
|
|
|
|
|
|
if ("x$1" == "x") then
|
2004-09-03 14:31:36 +00:00
|
|
|
cd gpr; ./run_tests all; cd ..;
|
|
|
|
cd llm; ./run_tests all; cd ..;
|
|
|
|
# cd ../ns; ./run_tests all; cd ..;
|
2004-09-03 14:39:53 +00:00
|
|
|
cd oob; ./run_tests all; cd ..;
|
|
|
|
cd pcm; ./run_tests all; cd ..;
|
2004-08-11 17:25:56 +00:00
|
|
|
else
|
2004-09-03 14:23:37 +00:00
|
|
|
|
|
|
|
foreach target ($argv)
|
|
|
|
switch ($target)
|
|
|
|
case "all":
|
2004-09-03 14:31:36 +00:00
|
|
|
cd gpr; ./run_tests all; cd ..;
|
|
|
|
cd llm; ./run_tests all; cd ..;
|
2004-09-03 14:39:53 +00:00
|
|
|
# cd ns; ./run_tests all; cd ..;
|
|
|
|
cd oob; ./run_tests all; cd ..;
|
|
|
|
cd pcm; ./run_tests all; cd ..;
|
2004-09-03 14:23:37 +00:00
|
|
|
breaksw
|
|
|
|
case "gpr":
|
|
|
|
case "llm":
|
|
|
|
# case "ns":
|
|
|
|
case "oob":
|
|
|
|
case "pcm":
|
|
|
|
cd $target
|
|
|
|
./run_tests;
|
|
|
|
cd ..;
|
|
|
|
breaksw
|
2004-09-03 14:31:36 +00:00
|
|
|
case "help": echo "correct use: "
|
2004-09-03 14:23:37 +00:00
|
|
|
echo " run_tests help (this message)"
|
|
|
|
echo " run_tests all (to run all mca tests)"
|
|
|
|
echo "or run_tests <llm | ns | oob | pcm>"
|
|
|
|
breaksw
|
|
|
|
default
|
|
|
|
echo "There is no part of mca called program <$target> to run"
|
|
|
|
echo "correct use: "
|
|
|
|
echo " run_tests all (to run all mca tests)"
|
|
|
|
echo "or run_tests <llm | ns | oob | pcm>"
|
|
|
|
break
|
|
|
|
endsw
|
|
|
|
end
|
|
|
|
|
2004-08-11 17:25:56 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|