blob: 3e93eac800f02190c1ccd4faacf8a049eaee9e5c (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# $OpenBSD: Makefile,v 1.12 2014/11/26 15:23:13 otto Exp $
BC=bc
LDFLAGS=-lm
REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18\
t19test
# .in: input file
# .out: desired result
# t1: bc.library
# t2: while loop
# t3: for loop
# t4: deeply 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
# t11: if else
# t12: print
# t13: alternive forms of define and return
# t14: compare
# t15: boolean and
# t16: boolean or
# t17: long var names
# t18: towers of hanoi
# t19: check precions of -l functions against native computed values
all: clean
.SUFFIXES: .in
.in:
@echo ${*}
@${BC} -d < ${.CURDIR}/${*}.in > ${*}.log
@cmp -s ${.CURDIR}/${*}.out ${*}.log || \
(echo "XXX ${*} failed" && false)
t19test: t19
./t19
# Clean all files generated
clean:
rm -f *.log t19
.include <bsd.regress.mk>
|