]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
build: Add a test suite infrastructure
authorGuillem Jover <guillem@hadrons.org>
Fri, 23 Mar 2012 09:43:33 +0000 (10:43 +0100)
committerGuillem Jover <guillem@hadrons.org>
Tue, 29 May 2012 02:36:23 +0000 (04:36 +0200)
Makefile.am
configure.ac
test/Makefile.am [new file with mode: 0644]

index 4a6a32671a9395cd3d66edd4af5a53275d68891c..ae7cd209fec45ec42079c080c03078493d9da728 100644 (file)
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 
-SUBDIRS = include man src
+SUBDIRS = include man src test
 
 ACLOCAL_AMFLAGS = -I m4
 
index b34b4161177461d1953f33a394d6bdc673301cc7..06a02b7a12aad3a73414abe1b6b15ce62e53ca61 100644 (file)
@@ -45,6 +45,7 @@ AC_CONFIG_FILES([
        src/Makefile
        src/libbsd.pc
        src/libbsd-overlay.pc
+       test/Makefile
 ])
 AC_CONFIG_HEADERS([config.h])
 AC_OUTPUT
diff --git a/test/Makefile.am b/test/Makefile.am
new file mode 100644 (file)
index 0000000..6977948
--- /dev/null
@@ -0,0 +1,16 @@
+## Process this file with automake to produce Makefile.in
+
+# Set default values for user variables
+CFLAGS = -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter
+
+AM_CPPFLAGS = \
+       -I$(top_builddir) \
+       -isystem $(top_srcdir)/include/bsd/ \
+       -include $(top_builddir)/config.h \
+       -DLIBBSD_OVERLAY -DLIBBSD_DISABLE_DEPRECATED \
+       -D__REENTRANT
+
+check_PROGRAMS = \
+       $(nil)
+
+TESTS = $(check_PROGRAMS)