From 850fa43cea49e0abc698db9a6936787f070076b4 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 24 Apr 2022 22:44:53 -0700 Subject: [PATCH] ... --- Makefile.am | 2 +- configure.ac | 1 + test/integration/Makefile.am | 29 +++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 test/integration/Makefile.am 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 -- 2.30.2