test: Add new headers unit test

This commit is contained in:
Guillem Jover 2012-03-24 20:37:55 +01:00
parent 23973e2221
commit abf14c3940
3 changed files with 27 additions and 0 deletions

1
test/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
headers

View File

@ -11,6 +11,7 @@ AM_CPPFLAGS = \
-D__REENTRANT
check_PROGRAMS = \
headers \
$(nil)
TESTS = $(check_PROGRAMS)

25
test/headers.c Normal file
View File

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