From c256bbfffb3c2e058b5ca42600e9a58e685f9291 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 25 Sep 2003 19:40:08 +0000 Subject: A set of regression tests for bc(1). --- regress/usr.bin/bc/Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 regress/usr.bin/bc/Makefile (limited to 'regress/usr.bin/bc/Makefile') diff --git a/regress/usr.bin/bc/Makefile b/regress/usr.bin/bc/Makefile new file mode 100644 index 00000000000..d2c3919f40d --- /dev/null +++ b/regress/usr.bin/bc/Makefile @@ -0,0 +1,31 @@ +# $OpenBSD: Makefile,v 1.1 2003/09/25 19:40:07 otto Exp $ + +BC=bc + +REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 + +# .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 + +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 -- cgit v1.2.3