]> infiniteadaptability.org Git - seeder/commitdiff
...
authoralex <[email protected]>
Mon, 25 Apr 2022 05:44:53 +0000 (22:44 -0700)
committeralex <[email protected]>
Mon, 25 Apr 2022 05:44:53 +0000 (22:44 -0700)
Makefile.am
configure.ac
test/integration/Makefile.am [new file with mode: 0644]

index 8f6d016dd94b9f0f2b9534a2d08f5de920c9df80..fd615a7b2e84e84071e759ffc3af15b8aab6de41 100644 (file)
@@ -122,4 +122,4 @@ seederd_SOURCES += \
        inc/usage.h \
        inc/watch.h
 
-SUBDIRS = . test/unit bench
+SUBDIRS = . test/unit test/integration bench
index 7f5e0849685a5650c982ef83aa877ee8fdaf09d7..34121483e9343dfd1782ff010ee9ab9a7357de80 100644 (file)
@@ -79,5 +79,6 @@ AC_CHECK_FUNCS([atexit memmove memset mkdir setenv socket strchr strdup strndup
 
 AC_CONFIG_FILES([Makefile
                 bench/Makefile
+                test/integration/Makefile
                 test/unit/Makefile])
 AC_OUTPUT
diff --git a/test/integration/Makefile.am b/test/integration/Makefile.am
new file mode 100644 (file)
index 0000000..24046e9
--- /dev/null
@@ -0,0 +1,29 @@
+AM_CPPFLAGS = \
+       -DPREFIX=\".test\" \
+       -Wall \
+       -Werror
+
+EXTRA_DIST = \
+       test_utils.h \
+       test_macros.h
+
+if ENABLE_DEBUG
+else
+AM_CPPFLAGS += \
+       -DNDEBUG
+endif
+
+check_PROGRAMS = basic.test
+TESTS = $(check_PROGRAMS)
+
+if ENABLE_MEMCHECK
+LOG_COMPILER = $(VALGRIND)
+AM_LOG_FLAGS = --leak-check=full -v --track-origins=yes --error-exitcode=1
+endif
+
+common_SOURCES = \
+       test_utils.c
+
+basic_test_SOURCES = \
+       $(common_SOURCES) \
+       basic.test.c