#!/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 'test# | " >> $outfile echo "testid | " >> $outfile echo "test script | " >> $outfile echo "arg1 | " >> $outfile echo "arg2 | " >> $outfile echo "arg3 | " >> $outfile echo "|
---|---|---|---|---|---|---|
$count | " >> $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 "$arg | " >> $outfile elif [ -f ./config_files/$arg ]; then echo "$arg | " >> $outfile elif [ -f ./nl_files/$arg1 ] && [ -f ./nl_files/$arg2 ]; then echo "$arg1^" \ "$arg2 | " >> $outfile elif [ -f ./nl_files/$arg1 ] && [ -f ./config_files/$arg2 ]; then echo "$arg1^" \ "$arg2 | " >> $outfile elif [ -f ../../tools/$dir/$dir.$arg ]; then echo "$arg | " >> $outfile else echo "$arg | " >> $outfile fi done echo '
' >> $outfile echo ' ' >> $outfile echo '' >> $outfile done echo '' >> $outfile echo '' >> $outfile exit 0