test: Add new headers unit test
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
diff --git a/test/.gitignore b/test/.gitignore
new file mode 100644
index 0000000..4237ec7
--- /dev/null
+++ b/test/.gitignore
@@ -0,0 +1 @@
+headers
diff --git a/test/Makefile.am b/test/Makefile.am
index 6977948..30749c2 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -11,6 +11,7 @@ AM_CPPFLAGS = \
-D__REENTRANT
check_PROGRAMS = \
+ headers \
$(nil)
TESTS = $(check_PROGRAMS)
diff --git a/test/headers.c b/test/headers.c
new file mode 100644
index 0000000..bc429fd
--- /dev/null
+++ b/test/headers.c
@@ -0,0 +1,25 @@
+/* Check that all libbsd overlayed headers preprocess. */
+#include <sys/cdefs.h>
+#include <sys/endian.h>
+#include <sys/bitstring.h>
+#include <sys/queue.h>
+#include <sys/tree.h>
+#include <sys/poll.h>
+
+#include <err.h>
+#include <getopt.h>
+#include <libutil.h>
+#include <md5.h>
+#include <nlist.h>
+#include <readpassphrase.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <vis.h>
+
+int
+main()
+{
+ return 0;
+}