test-simple revision 1.1
1#! /bin/sh
2# $NetBSD: test-simple,v 1.1 2016/09/23 16:55:56 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 $test.out tmp.$test.out; then
19	exit 0
20else
21	[ "yes" = "$verbose" ] || echo "Failed test $test: `cat tmp.$test.err; echo; cat $test.out`"
22fi
23