2004-08-09 21:40:50 +04:00
|
|
|
#! /bin/csh -f
|
|
|
|
# Name
|
|
|
|
# ====
|
2004-08-11 21:22:28 +04:00
|
|
|
# run script for class tests
|
2004-08-09 21:40:50 +04:00
|
|
|
|
|
|
|
# Arguements
|
|
|
|
# ==========
|
|
|
|
#
|
2004-09-03 16:43:50 +04:00
|
|
|
# test_list = no args or all runs all tests
|
2004-08-09 21:40:50 +04:00
|
|
|
# or
|
2004-09-03 16:43:50 +04:00
|
|
|
# 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
|
2004-08-09 21:40:50 +04:00
|
|
|
|
|
|
|
# Usage
|
|
|
|
#
|
|
|
|
# =====
|
|
|
|
# To invoke this script, enter either
|
2004-08-11 21:22:28 +04:00
|
|
|
# run_tests
|
2004-08-09 21:40:50 +04:00
|
|
|
# with no arguments to run all tests, or
|
2004-08-11 21:22:28 +04:00
|
|
|
# run_tests <test_name>
|
2004-08-09 21:40:50 +04:00
|
|
|
|
|
|
|
umask 007
|
|
|
|
|
2004-09-03 16:43:50 +04:00
|
|
|
if ("x$1" == "x") then
|
|
|
|
echo "do all - no args"
|
2004-08-09 21:40:50 +04:00
|
|
|
./ompi_bitmap
|
|
|
|
./ompi_hash_table
|
|
|
|
./ompi_list
|
|
|
|
./ompi_pointer_array
|
|
|
|
./ompi_rb_tree
|
|
|
|
./ompi_value_array
|
2004-09-03 16:43:50 +04:00
|
|
|
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
|
2004-09-03 16:52:04 +04:00
|
|
|
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
|
2004-09-03 16:43:50 +04:00
|
|
|
default
|
2004-09-03 16:52:04 +04:00
|
|
|
echo "There is no program <$target> to run"
|
2004-09-03 16:43:50 +04:00
|
|
|
echo "correct use: "
|
2004-09-03 16:52:04 +04:00
|
|
|
echo " run_tests help (this message)"
|
|
|
|
echo " run_tests all (to run all class tests)"
|
2004-09-03 16:43:50 +04:00
|
|
|
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
|
|
|
|
|
2004-08-09 21:40:50 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
|