diff options
author | Sébastien Marie <semarie@users.noreply.github.com> | 2015-06-22 13:44:20 +0200 |
---|---|---|
committer | Sébastien Marie <semarie@users.noreply.github.com> | 2015-06-22 13:44:20 +0200 |
commit | 95318c663159a0143edbe41e2e8c94bc057276a8 (patch) | |
tree | 7456f63faf44ca9b62574f5e1161fc04f83cb66c /regress/patterns/Makefile | |
parent | f87380994e9d2df719d483664e776e475e27d221 (diff) | |
download | httpd-95318c663159a0143edbe41e2e8c94bc057276a8.tar.gz httpd-95318c663159a0143edbe41e2e8c94bc057276a8.zip |
add regress testsuite for patterns
Diffstat (limited to 'regress/patterns/Makefile')
-rw-r--r-- | regress/patterns/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/regress/patterns/Makefile b/regress/patterns/Makefile new file mode 100644 index 0000000..024f96e --- /dev/null +++ b/regress/patterns/Makefile @@ -0,0 +1,20 @@ +# $OpenBSD$ + +HTTPDSRC = ${.CURDIR}/../../httpd + +.PATH: ${HTTPDSRC} + +REGRESS_TARGETS= test-patterns + +CLEANFILES += patterns-tester + +patterns-tester: patterns-tester.c patterns.c patterns.h + ${CC} -o $@ ${CFLAGS} ${.CURDIR}/patterns-tester.c ${HTTPDSRC}/patterns.c -I${HTTPDSRC} + +test-patterns: patterns-tester test-patterns.out test-patterns.in + cat ${.CURDIR}/test-patterns.in | grep -v '^#' | \ + while IFS=' ' read string pattern comments ; do \ + ./patterns-tester "$${string}" "$${pattern}" 2>&1 || true; \ + done | diff -I 'OpenBSD' -u ${.CURDIR}/test-patterns.out - + +.include <bsd.regress.mk> |