make more general
This commit was SVN r2483.
Этот коммит содержится в:
родитель
6889df19f0
Коммит
f52b0b17e5
@ -6,15 +6,15 @@
|
|||||||
# Arguements
|
# Arguements
|
||||||
# ==========
|
# ==========
|
||||||
#
|
#
|
||||||
# test_list = no args runs all tests
|
# test_list = no args or all runs all tests
|
||||||
# or
|
# or
|
||||||
# argv runs ompi_argv tests
|
# ompi_argv runs ompi_argv tests
|
||||||
# numtostr runs ompi_numtostr tests
|
# ompi_numtostr runs ompi_numtostr tests
|
||||||
# os_create_dirpath runs ompi_os_create_dirpath tests,
|
# ompi_os_create_dirpath runs ompi_os_create_dirpath tests,
|
||||||
# os_path runs ompi_os_path tests,
|
# ompi_os_path runs ompi_os_path tests,
|
||||||
# session_dir runs ompi_session_dir tests
|
# ompi_session_dir runs ompi_session_dir tests
|
||||||
# sys_info runs ompi_sys_info tests
|
# ompi_sys_info runs ompi_sys_info tests
|
||||||
# pack runs ompi_pack tests
|
# ompi_pack runs ompi_pack tests
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
#
|
#
|
||||||
@ -34,25 +34,46 @@ if ("x$1" == "x") then
|
|||||||
./ompi_os_path
|
./ompi_os_path
|
||||||
# ./ompi_session_dir
|
# ./ompi_session_dir
|
||||||
./ompi_sys_info
|
./ompi_sys_info
|
||||||
else if ("$1" == "argv") then
|
|
||||||
./ompi_argv
|
|
||||||
else if ("$1" == "numtostr") then
|
|
||||||
./ompi_numtostr
|
|
||||||
else if ("$1" == "os_create_dir_path") then
|
|
||||||
./ompi_os_create_dir_path
|
|
||||||
else if ("$1" == "os_path") then
|
|
||||||
./ompi_os_path
|
|
||||||
else if ("$1" == "pack") then
|
|
||||||
./ompi_pack
|
|
||||||
else if ("$1" == "session_dir") then
|
|
||||||
./ompi_session_dir
|
|
||||||
else if ("$1" == "sys_info") then
|
|
||||||
./ompi_sys_info
|
|
||||||
else
|
else
|
||||||
echo "correct use: "
|
foreach target ($argv)
|
||||||
echo " run (to run all class tests)"
|
switch ($target)
|
||||||
echo "or run <argv | numtostr | os_create_dir_path | os_path | session_dir | sys_info>"
|
case "all":
|
||||||
exit -1
|
# ./ompi_argv
|
||||||
|
./ompi_numtostr
|
||||||
|
./ompi_os_create_dirpath
|
||||||
|
./ompi_pack
|
||||||
|
./ompi_os_path
|
||||||
|
# ./ompi_session_dir
|
||||||
|
./ompi_sys_info
|
||||||
|
breaksw
|
||||||
|
case "ompi_argv":
|
||||||
|
case "ompi_numtostr":
|
||||||
|
case "ompi_os_create_dirpath":
|
||||||
|
case "ompi_pack":
|
||||||
|
case "ompi_os_path":
|
||||||
|
case "ompi_session_dir":
|
||||||
|
case "ompi_sys_info":
|
||||||
|
./$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 with any of the following: "
|
||||||
|
echo " <ompi_argv | ompi_numtostr | ompi_os_create_dirpath | "
|
||||||
|
echo " ompi_os_path | ompi_session_dir | ompi_sys_info>"
|
||||||
|
break
|
||||||
|
breaksw
|
||||||
|
default
|
||||||
|
echo "There is no test program <$target> to run"
|
||||||
|
echo "correct use: "
|
||||||
|
echo " run_tests (to run all class tests)"
|
||||||
|
echo "or run_tests with any of the following: "
|
||||||
|
echo " <ompi_argv | ompi_numtostr | ompi_os_create_dirpath | "
|
||||||
|
echo " ompi_os_path | ompi_session_dir | ompi_sys_info>"
|
||||||
|
break
|
||||||
|
endsw
|
||||||
|
end
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user