1
1
openmpi/test/class/run_tests
Laura Casswell 9aef410fcf fix comments and add messages
This commit was SVN r2463.
2004-09-03 12:52:04 +00:00

77 строки
1.9 KiB
Tcsh
Исполняемый файл

#! /bin/csh -f
# Name
# ====
# run script for class tests
# Arguements
# ==========
#
# test_list = no args or all runs all tests
# or
# ompi_bitmap runs ompi_bitmap tests
# ompi_hash_list runs ompi_hash_list tests
# ompi_pointer_array runs ompi_pointer_array tests,
# ompi_rb_tree runs ompi_rb_tree tests
# ompi_value_array runs ompi_value_array tests
# 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
echo "do all - no args"
./ompi_bitmap
./ompi_hash_table
./ompi_list
./ompi_pointer_array
./ompi_rb_tree
./ompi_value_array
else
foreach target ($argv)
switch ($target)
case "all":
./ompi_bitmap
./ompi_hash_table
./ompi_list
./ompi_pointer_array
./ompi_rb_tree
./ompi_value_array
breaksw
case "ompi_bitmap":
case "ompi_hash_table":
case "ompi_pointer_array":
case "ompi_rb_tree":
case "ompi_value_array":
case "ompi_list":
./$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 combination of the following: "
echo " <ompi_bimmap | ompi_hash_table | onpi_list | "
echo " ompi_pointer_array | ompi_rb_tree | ompi_value_array>"
break
default
echo "There is no program <$target> to run"
echo "correct use: "
echo " run_tests help (this message)"
echo " run_tests all (to run all class tests)"
echo "or run_tests with any combination of the following: "
echo " <ompi_bimmap | ompi_hash_table | onpi_list | "
echo " ompi_pointer_array | ompi_rb_tree | ompi_value_array>"
break
endsw
end
endif