From: alex Date: Mon, 25 Apr 2022 05:44:53 +0000 (-0700) Subject: ... X-Git-Url: http://git.infiniteadaptability.org/?a=commitdiff_plain;h=850fa43cea49e0abc698db9a6936787f070076b4;p=seeder ... --- diff --git a/Makefile.am b/Makefile.am index 8f6d016..fd615a7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -122,4 +122,4 @@ seederd_SOURCES += \ inc/usage.h \ inc/watch.h -SUBDIRS = . test/unit bench +SUBDIRS = . test/unit test/integration bench diff --git a/configure.ac b/configure.ac index 7f5e084..3412148 100644 --- a/configure.ac +++ b/configure.ac @@ -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 index 0000000..24046e9 --- /dev/null +++ b/test/integration/Makefile.am @@ -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