Home | History | Annotate | Line # | Download | only in testsuite
Makefile revision 1.4
      1 #	$eterna: Makefile,v 1.14 2009/05/22 21:51:39 mrg Exp $
      2 
      3 SIMPLETESTS=	t1 t2 t3 t4 t5 t6 t7 t8 t9 t10
      4 BIGFILETESTS=	partial4000 partial8000
      5 
      6 BOZOHTTPD?=	../bozohttpd
      7 BOZOHTTPD?=	../debug/bozohttpd-debug
      8 WGET?=		wget
      9 
     10 all:
     11 
     12 clean:
     13 	for a in $(SIMPLETESTS); do \
     14 		rm -f tmp.$$a.out; \
     15 	done
     16 
     17 check: check-simple check-bigfile
     18 
     19 check-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 
     26 check-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