This section provides the results to the IPP compliance tests" >>$strfile echo "outlined in the CUPS Software Test Plan. These tests were run on" >>$strfile echo `date "+%Y-%m-%d"` by `whoami` on `hostname`. >>$strfile echo "
" >>$strfile fail=0 for file in 4*.test; do echo "Performing $file..." echo "" >>$strfile ./ipptest ipp://localhost:$port/printers $file >>$strfile status=$? if test $status != 0; then echo Test failed. fail=`expr $fail + 1` fi done echo "" >>$strfile # # Run the command tests... # echo "Running command tests..." echo "
This section provides the results to the command tests" >>$strfile echo "outlined in the CUPS Software Test Plan. These tests were run on" >>$strfile echo `date "+%Y-%m-%d"` by `whoami` on `hostname`. >>$strfile echo "
" >>$strfile for file in 5*.sh; do echo "Performing $file..." echo "" >>$strfile echo "\"$file\":" >>$strfile sh $file $pjobs >>$strfile status=$? if test $status != 0; then echo Test failed. fail=`expr $fail + 1` fi done echo "" >>$strfile # # Wait for jobs to complete... # while true; do jobs=`../systemv/lpstat 2>/dev/null` if test "x$jobs" = "x"; then break fi echo "Waiting for jobs to complete..." sleep 10 done # # Stop the server... # kill $cupsd # # Append the log files for post-mortim... # echo "
" >>$strfile cat /tmp/$user/log/access_log >>$strfile echo "" >>$strfile echo "
" >>$strfile cat /tmp/$user/log/error_log >>$strfile echo "" >>$strfile echo "
" >>$strfile cat /tmp/$user/log/page_log >>$strfile echo "" >>$strfile # # Format the reports and tell the user where to find them... # echo "Formatting reports..." cat str-trailer.html >>$strfile htmlfile=`basename $strfile .shtml`.html pdffile=`basename $strfile .shtml`.pdf htmldoc --numbered --verbose --titleimage ../doc/images/cups-large.gif \ -f $htmlfile $strfile htmldoc --numbered --verbose --titleimage ../doc/images/cups-large.gif \ -f $pdffile $strfile echo "" if test $fail != 0; then echo "$fail tests failed." else echo "All tests were successful." fi if test "x$valgrind" != x; then echo "Valgrind log files can be found in /tmp/$user/log." fi echo "" echo "See the following files for details:" echo "" echo " $htmlfile" echo " $pdffile" echo "" # # End of "$Id: run-stp-tests.sh,v 1.1.1.17 2005/01/04 19:16:48 jlovell Exp $" #