summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2002-06-11 09:12:39 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2002-06-11 09:12:39 +0000
commit21f5addf573d07009d6c62de98ac9ce74ba02590 (patch)
tree61081f2131d2f6867206a1b22984bf296996c4a4 /regress/sys
parente0fb37478431df199a05989448ca4add3d47c7d0 (diff)
Check that "the rule" is in db_hangman.c, and that it is not violated.
Prodded by Theo.
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/ddb/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/regress/sys/ddb/Makefile b/regress/sys/ddb/Makefile
new file mode 100644
index 00000000000..aa69de6e74f
--- /dev/null
+++ b/regress/sys/ddb/Makefile
@@ -0,0 +1,29 @@
+# $OpenBSD: Makefile,v 1.1 2002/06/11 09:12:38 niklas Exp $
+
+REGRESSTARGETS= comment
+.if (${MACHINE} == "i386")
+REGRESSTARGETS+= size
+.endif
+
+SRC= ${.CURDIR}/../../..
+
+comment:
+ fgrep -q '* if [ `size db_hangman.o | awk '"'"'BEGIN {getline} {print $$1+$$2}'"'"'` -gt 1024 ];' ${SRC}/sys/ddb/db_hangman.c
+
+size: clean
+ mkdir build
+ /usr/sbin/config -s ${SRC}/sys -b build \
+ ${SRC}/sys/arch/${MACHINE}/conf/GENERIC
+ cd build; \
+ make db_hangman.o; \
+ if [ `size db_hangman.o | \
+ awk 'BEGIN {getline} {print $$1+$$2}'` -gt 1024 ]; \
+ then \
+ echo 'hangman is too big!!!'; \
+ false; \
+ fi
+
+clean:
+ rm -rf build
+
+.include <bsd.regress.mk>