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