#!/bin/csh -f
#
# maketests - make a long script to run many test files
#  This script can then be run using rpl's runsuite program.
#  Here we assume 20 procs.
#
# usage:
#   maketests [-elog] testfile...
#
# output is to stdout. The -elog argument is passed on to driver.

if ($#argv == 0) then
    echo usage: 'maketests [-elog] testfile...'
    exit 1
endif

if ("$1" =~ -*) then
    set opt="$1"
    shift
else
    set opt=""
endif

echo 'echo > script'
foreach i ($*)
	   echo runtest 20 $opt $i '>> script 2>&1'
end


