summaryrefslogtreecommitdiff
path: root/libexec/httpd/testsuite/Makefile
blob: 1c64fa0b30f44b11b883f40376f36af76a1ed4ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#	$eterna: Makefile,v 1.14 2009/05/22 21:51:39 mrg Exp $

SIMPLETESTS=	t1 t2 t3 t4 t5 t6 t7 t8 t9 t10
BIGFILETESTS=	partial4000 partial8000

BOZOHTTPD?=	../bozohttpd
BOZOHTTPD?=	../debug/bozohttpd-debug
WGET?=		wget

all:

clean:
	for a in $(SIMPLETESTS); do \
		rm -f tmp.$$a.out; \
	done

check: check-simple check-bigfile

check-simple:
.for a in $(SIMPLETESTS)
	echo "Running test $a"
	$(BOZOHTTPD) ./data < $(.CURDIR)/$a.in > tmp.$a.out || true
	$(.CURDIR)/html_cmp $(.CURDIR)/$a.out tmp.$a.out
.endfor

check-bigfile:
.for a in $(BIGFILETESTS)
	echo "Running test $a"
	$(.CURDIR)/test-bigfile "$a" "${BOZOHTTPD}" "${WGET}" "./data"
.endfor

.include <bsd.obj.mk>