Pbs testing startup

From CajunBot Wiki

Jump to: navigation, search


This script starts distributed testing using pbs scheduler. When provided with an rndf file and a sample mdf file, the script generates checkpoints in an iterative manner and runs each sequence to determine the outcome (failure, success). The rndf is required to determine which checkpoints should be created and the mdf is desired for reference of speed limits.

Usage for pbs_testing_startup
        [-j #]  Max number of jobs to have in queue at one time. [3]
        [-m file]       MDF file (for getting speedlimits) [not required]
        [-r file]       RNDF file (for getting checkpoints) [required]
        [-s]            Skip generation of checkpoint list and use one in current testing directory.
        [-w #]  Wait interval between checking job status and adding new jobs [1s] 

Additionally, the following default values are set in the script:

mdf=
rndf=   
if [ ! -n "$TESTING_DIR" ] ; then   
testing_dir=$HOME/testing   
else
testing_dir=$TESTING_DIR
fi  
rndf_template=$testing_dir/rndf_file.rndf   
mdf_template=$testing_dir/mdf_template.mdf  
testing_list=$testing_dir/checkpoint_list.txt   
pbs_template_script=$CBHOME/src/scripts/pbs.sh  
daemon_script=pbs_testing_daemon
logfile=$HOME/autotesting_speedchecker_log.xml  
max_jobs=3  
wait_interval=1