1# $OpenBSD: Makefile,v 1.21 2017/12/01 08:40:47 otto Exp $ 2 3DC?= dc 4DCFLAGS= -x 5CLEANFILES= *.log 6 7REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t8 t9 \ 8 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 \ 9 t20 t21 t22 t23 t24 t25 t26 t27 t28 10 11# .in: input file 12# .out: desired result 13 14# t1: basic operations, prints "dc: Runtime warning: non-zero scale in exponent" 15# t2: factoring program 16# t3: string handling 17# t4: more string ops 18# t5: bc output, computing exp 19# t6: nesting level and tail recursion 20# t7: number input and string handling 21# t8: bc output, array operations 22# t9: output for different bases and wrapping of long lines 23# t10: test J and M operators 24# t11: test extended comparison operators 25# t12: test r operator, prints two "stack empty" warnings 26# t13: test #, n and a 27# t14: test N, G, ( and { 28# t15: more N, G, ( and { 29# t16: even more N, G, ( and { 30# t17: test R (drop) 31# t18: read uninitialized and initialized array locations 32# t19: test extended registers 33# t20: towers of hanoi 34# t21: 500 decimals of pi 35# t22: sqrt 36# t23: factorial 1000 37# t24: line continuations 38# t25: exp 39# t26: non-decimal fractions 40# t27: fix a double free 41# t28: more extensive test of Z (new implementation) 42 43.SUFFIXES: .in 44 45.in: 46 @echo ${*} 47 @${DC} ${DCFLAGS} ${.CURDIR}/${*}.in > ${*}.log 48 @cmp -s ${.CURDIR}/${*}.out ${*}.log || \ 49 (echo "XXX ${*} failed" && false) 50 51.include <bsd.regress.mk> 52