summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
new file mode 100644
index 0000000..0e1d5bd
--- /dev/null
+++ b/test/Makefile
@@ -0,0 +1,17 @@
+
+SOURCES = $(shell ls *.c)
+
+regress:
+ @echo "Testing deheader: no output is good news."
+ @deheader -v -v . >/tmp/regress
+ @diff -u regress.chk /tmp/regress
+ @rm /tmp/regress
+makeregress:
+ @deheader -v -v . >regress.chk
+
+# Verify that the test sources build correctly when unaltered
+verify:
+ for x in $(SOURCES:.c=.o); do make CFLAGS='-Werror -Wfatal-errors' $$x; done
+
+clean:
+ rm -f *.o *~