#!/bin/csh -f
#
# dummyruntest - run the given test file through driver
# First argument is the # procs needed.
# all other arguments are passed to driver.
# 

set procs=$1
shift

echo "-------------" START $* "-------------"
date

# Make any necessary data directories for this run of driver
# We must find the filename in $* -- any preceding argument might be
# of the form -number, and this is not likely a file, so this loop
# should catch the testfile only.
foreach i ($*)
	   if (-e "$i") then
	   		 echo makedata $i
	   		 makedata $i
    	   	  	 set statusfile=$i.status
    	   	  	 break
	   endif
end
 
echo Using $procs procs
cluster 5 -e dummydriver $* $statusfile

date
echo "-------------" END $* "-------------"
