#!/bin/sh # # this script, when executed in the directory containing the test-driver # scripts (~/test/system) will loop through the default test # lists for pre and post tag testing of clm and create an html file # (test_table.html) with the specifics of each test detailed outfile="./test_table.html" echo '' > $outfile echo '' >> $outfile echo '' >> $outfile echo '' >> $outfile echo 'CLM Testing Information Page' >> $outfile echo '' >> $outfile echo '' >> $outfile ######################################################################################### for input_file in `ls tests_*` ; do echo '' >> $outfile echo "" >> $outfile echo "" >> $outfile echo "" >> $outfile echo "" >> $outfile echo "" >> $outfile echo "" >> $outfile echo "" >> $outfile echo "" >> $outfile echo "" >> $outfile test_list="" while read input_line; do test_list="${test_list}${input_line} " done < ./${input_file} count=0 ##loop through the tests of input file for test_id in ${test_list}; do echo "" >> $outfile count=`expr $count + 1` while [ ${#count} -lt 3 ]; do count="0${count}" done echo "" >> $outfile master_line=`grep $test_id ./input_tests_master` dir="" for arg in ${master_line}; do arg1=${arg%^*} arg2=${arg#*^} if [ -d ../../tools/$arg ]; then dir=$arg elif [ -f ./nl_files/$arg ]; then echo "" >> $outfile elif [ -f ./config_files/$arg ]; then echo "" >> $outfile elif [ -f ./nl_files/$arg1 ] && [ -f ./nl_files/$arg2 ]; then echo "" >> $outfile elif [ -f ./nl_files/$arg1 ] && [ -f ./config_files/$arg2 ]; then echo "" >> $outfile elif [ -f ../../tools/$dir/$dir.$arg ]; then echo "" >> $outfile else echo "" >> $outfile fi done echo '' >> $outfile done echo '
$input_file
test# testid test script arg1 arg2 arg3
$count $arg $arg $arg1^" \ "$arg2$arg1^" \ "$arg2$arg $arg
' >> $outfile echo '
' >> $outfile
    echo ' ' >> $outfile
    echo '
' >> $outfile done echo '' >> $outfile echo '' >> $outfile exit 0