From 22bc29e50a7ac3a155789a7196507e2bf418c1ca Mon Sep 17 00:00:00 2001 From: Laura Casswell Date: Fri, 3 Sep 2004 14:23:08 +0000 Subject: [PATCH] fix typos in help and make more general This commit was SVN r2473. --- test/mca/llm/base/run_tests | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/test/mca/llm/base/run_tests b/test/mca/llm/base/run_tests index 545145f8b2..1c610de78a 100755 --- a/test/mca/llm/base/run_tests +++ b/test/mca/llm/base/run_tests @@ -22,13 +22,29 @@ umask 007 if ("x$1" == "x") then ./parse_hostfile; -else if ("$1" == "parse_hostfile") then - ./parse_hostfile; -else - echo "correct use: " - echo " run (to run all class tests)" - echo "or run < parse_hostfile >" - exit -1 +else + foreach target ($argv) + switch ($target) + case "all" + ./parse_hostfile + breaksw + case "parse_hostfile": + ./$target + breaksw + case "help": + echo "correct use: " + echo " run_tests help (this message)" + echo " run_tests all (to run all class tests)" + echo "or run_tests < parse_hostfile >" + break + breaksw + default: + echo "There is no test program <$target> to run." + echo " run_tests all (to run all class tests)" + echo "or run_tests < parse_hostfile >" + break + endsw + end endif