#!/bin/csh
#
#   gen_tests
#
#   This script is a wrapper for the configuration file generator,
#   gen_config.perl.  It takes a test name as input.
#
#   Operation:
#     1.  Go to the gated test directory with the same name as the
#         indicated test.
#     2.  Run gen_config.perl on the .cfg file with the test name.
#
set count=$#argv

# No arguments, run perl generator with usage message.
#
if ( $count == 0 ) then
   $gated_perl_cmd $gated_script_dir/gen_config.perl -h
endif

# List of tests - process each one.
#
foreach arg ( $argv )
   cd $gated_test_dir/$arg
   $gated_perl_cmd $gated_script_dir/gen_config.perl -t $arg
end
