#!/bin/csh #--------------------------- # print help messages #--------------------------- set helpheader = 0 set helparg = 0 if ($#argv < 1) then set helpheader = 1 else set i = `echo $argv[1]|cut -c2-` if( $i == "help" ) then set helpheader = 1 set helparg = 1 endif endif if ( $helpheader ) then cat <> ${CASE}.test << EOF cd $CASEROOT setenv MACH $mach setenv CASEBASEID $clonename source env_conf || "problem sourcing env_conf" && exit -1 source env_run || "problem sourcing env_run" && exit -1 source env_mach.\$MACH || "problem sourcing env_mach.\$MACH" && exit -1 source env_pes.\$MACH || "problem sourcing env_pes.\$MACH" && exit -1 source $CASETOOLS/env_setcomp || "problem sourcing env_setcomp" && exit -1 EOF cat $UTILROOT/Tools/testcase_begin >> $CASE.test || exit -1 cat $UTILROOT/Testcases/${type}_script >> $CASE.test || exit -1 cat $UTILROOT/Tools/testcase_end >> $CASE.test || exit -1 #=================================================================== # copy over compare script #=================================================================== cp $UTILROOT/Tools/restart_compare.pl . || exit -1 chmod 755 $CASE* *pl echo "" echo "*************************************************************" echo "Please submit to run $testroot/$clonename/$clonename.test" echo " e.g. bsub < $testroot/$clonename/$clonename.test" echo " qsub $testroot/$clonename/$clonename.test" echo " llsubmit $testroot/$clonename/$clonename.test" echo "and check $testroot/$clonename/TestStatus for PASS or FAIL" echo " e.g. less $testroot/$clonename/TestStatus" echo "*************************************************************" echo ""