diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2003-09-25 19:40:08 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2003-09-25 19:40:08 +0000 |
commit | c256bbfffb3c2e058b5ca42600e9a58e685f9291 (patch) | |
tree | 5829be078af1ba373a6742b55a9f99383a43e684 /regress/usr.bin/bc/Makefile | |
parent | e9850d76124894fe91666de6cc13715ebaed1083 (diff) |
A set of regression tests for bc(1).
Diffstat (limited to 'regress/usr.bin/bc/Makefile')
-rw-r--r-- | regress/usr.bin/bc/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
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 <bsd.regress.mk> |