Commit abf14c3940a5ec08bb9fce9ddfb7375309a4d97f

Guillem Jover 2012-03-24T20:37:55

test: Add new headers unit test

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;
+}