xref: /openbsd/regress/usr.bin/bc/Makefile (revision 264ca280)
1# $OpenBSD: Makefile,v 1.12 2014/11/26 15:23:13 otto Exp $
2
3BC=bc
4
5LDFLAGS=-lm
6
7REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18\
8	t19test
9
10# .in: input file
11# .out: desired result
12
13# t1: bc.library
14# t2: while loop
15# t3: for loop
16# t4: deeply nested while loop
17# t5: function definition and call
18# t6: empty if statement
19# t7: assignment ops
20# t8: continue ops
21# t9: more continue
22# t10: for with empty E's
23# t11: if else
24# t12: print
25# t13: alternive forms of define and return
26# t14: compare
27# t15: boolean and
28# t16: boolean or
29# t17: long var names
30# t18: towers of hanoi
31# t19: check precions of -l functions against native computed values
32
33all: clean
34
35.SUFFIXES: .in
36
37.in:
38	@echo ${*}
39	@${BC} -d < ${.CURDIR}/${*}.in > ${*}.log
40	@cmp -s ${.CURDIR}/${*}.out ${*}.log || \
41		(echo "XXX ${*} failed" && false)
42
43t19test: t19
44	./t19
45
46# Clean all files generated
47clean:
48	rm -f *.log t19
49
50.include <bsd.regress.mk>
51