1 #! /bin/sh 2 # $NetBSD: test-simple,v 1.1 2016/09/23 16:55:56 schmonz Exp $ 3 4 test="$1" 5 bozohttpd="$2" 6 datadir="$3" 7 verbose="$4" 8 9 if [ "yes" = "$verbose" ]; then 10 echo "Running test $test" 11 else 12 exec 2>tmp.$test.err 13 fi 14 15 bozotestport=11111 16 17 ${bozohttpd} ${datadir} < $test.in > tmp.$test.out 18 if ./html_cmp $test.out tmp.$test.out; then 19 exit 0 20 else 21 [ "yes" = "$verbose" ] || echo "Failed test $test: `cat tmp.$test.err; echo; cat $test.out`" 22 fi 23