xref: /minix3/libexec/httpd/testsuite/Makefile (revision 340f5e56603e4275faeb89a9aacace41ba22d661)
1#	$eterna: Makefile,v 1.14 2009/05/22 21:51:39 mrg Exp $
2
3SIMPLETESTS=	t1 t2 t3 t4 t5 t6 t7 t8 t9 t10
4BIGFILETESTS=	partial4000 partial8000
5
6BOZOHTTPD?=	../bozohttpd
7BOZOHTTPD?=	../debug/bozohttpd-debug
8WGET?=		wget
9
10all:
11
12clean:
13	for a in $(SIMPLETESTS); do \
14		rm -f tmp.$$a.out; \
15	done
16
17check: check-simple check-bigfile
18
19check-simple:
20.for a in $(SIMPLETESTS)
21	echo "Running test $a"
22	$(BOZOHTTPD) ./data < $(.CURDIR)/$a.in > tmp.$a.out || true
23	$(.CURDIR)/html_cmp $(.CURDIR)/$a.out tmp.$a.out
24.endfor
25
26check-bigfile:
27.for a in $(BIGFILETESTS)
28	echo "Running test $a"
29	$(.CURDIR)/test-bigfile "$a" "${BOZOHTTPD}" "${WGET}" "./data"
30.endfor
31
32.include <bsd.obj.mk>
33