1
1

make script more flexible, add new test

This commit was SVN r2465.
Этот коммит содержится в:
Laura Casswell 2004-09-03 13:37:31 +00:00
родитель 80be42cc27
Коммит ed4fd14f1c

Просмотреть файл

@ -1,34 +1,57 @@
#! /bin/csh -f #! /bin/csh -f
# Name # Name
# ==== # ====
# run script for mca ns tests # run script for mca gpr tests
# Arguements # Arguements
# ========== # ==========
# #
# test_list = no args runs all tests # test_list = no args or all runs all tests
# or # or
# replica runs ompi ns replica tests # test_gpr_proxy runs ompi gpr proxy tests
# test_gpr_replica runs ompi gpr replica tests
# Usage # Usage
# #
# ===== # =====
# To invoke this script, enter either # To invoke this script, enter either
# run_tests # run_tests all
# with no arguments to run all tests, or # with no arguments to run all tests, or
# run_tests <test_name> # run_tests <test_name>
umask 007 umask 007
if ("x$1" == "x") then if ("x$1" == "x") then
./test_ns_replica; ./test_gpr_proxy;
else if ("$1" == "replica") then ./test_gpr_replica;
./test_ns_replica; else
else foreach target ($argv)
echo "correct use: " switch ($target)
echo " run_tests (to run all mca ns tests)" case "all":
echo "or run_tests < replica >" ./test_gpr_proxy;
exit -1 ./test_gpr_replica;
breaksw
case "test_gpr_replica":
case "test_gpr_proxy":
./$target;
breaksw
case "help":
echo "correct use: "
echo " run_tests help (this message)"
echo " run_tests all (to run all mca gpr tests)"
echo "or run_tests with any of the following: "
echo " < test_gpr_replica | test_gpr_proxy >"
break
breaksw
default
echo "There is no test <$target> to run"
echo "correct use: "
echo " run_tests help (this message)"
echo " run_tests all (to run all mca ns tests)"
echo "or run_tests < test_gpr_replica >"
break
endsw
end
endif endif