fix typos in help and make more general
This commit was SVN r2473.
Этот коммит содержится в:
родитель
1049bf79ca
Коммит
22bc29e50a
@ -22,13 +22,29 @@ umask 007
|
|||||||
|
|
||||||
if ("x$1" == "x") then
|
if ("x$1" == "x") then
|
||||||
./parse_hostfile;
|
./parse_hostfile;
|
||||||
else if ("$1" == "parse_hostfile") then
|
else
|
||||||
./parse_hostfile;
|
foreach target ($argv)
|
||||||
else
|
switch ($target)
|
||||||
echo "correct use: "
|
case "all"
|
||||||
echo " run (to run all class tests)"
|
./parse_hostfile
|
||||||
echo "or run < parse_hostfile >"
|
breaksw
|
||||||
exit -1
|
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
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user