]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
test: Add new headers unit test
authorGuillem Jover <guillem@hadrons.org>
Sat, 24 Mar 2012 19:37:55 +0000 (20:37 +0100)
committerGuillem Jover <guillem@hadrons.org>
Tue, 29 May 2012 02:36:23 +0000 (04:36 +0200)
test/.gitignore [new file with mode: 0644]
test/Makefile.am
test/headers.c [new file with mode: 0644]

diff --git a/test/.gitignore b/test/.gitignore
new file mode 100644 (file)
index 0000000..4237ec7
--- /dev/null
@@ -0,0 +1 @@
+headers
index 6977948ed8554445161d3483c2376618b8ca10d5..30749c21bdfb5c955233dd20703e2d9ddfa1f8a1 100644 (file)
@@ -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 (file)
index 0000000..bc429fd
--- /dev/null
@@ -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;
+}