summaryrefslogtreecommitdiff
path: root/regress/usr.bin/bc/Makefile
blob: 2fda2dc6ea93d8de6ee2969eec5ca7b75478f380 (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
33
34
35
# $OpenBSD: Makefile,v 1.3 2003/10/19 19:22:48 otto Exp $

BC=bc

REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10

# .in: input file
# .out: desired result

# t1: bc.library
# t2: while loop
# t3: for loop
# t4: deep nested while loop
# t5: function definition and call
# t6: empty if statement
# t7: assignment ops
# t8: continue ops
# t9: more continue
# t10: for with empty E's

all: clean ${REGRESS_TARGET}

.SUFFIXES: .in

.in:
	@echo ${*}
	@${BC} -d < ${.CURDIR}/${*}.in > ${*}.log
	@cmp -s ${.CURDIR}/${*}.out ${*}.log || \
		(echo "XXX ${*} failed" && false)

# Clean all files generated
clean:
	rm -f *.log

.include <bsd.regress.mk>