summaryrefslogtreecommitdiff
path: root/macros/neon-test.m4
diff options
context:
space:
mode:
authorJoe Orton <joe@manyfish.uk>2023-01-29 14:18:25 +0000
committerJoe Orton <jorton@apache.org>2023-01-29 14:33:58 +0000
commitb0e18e5d7f78c89c0f37c8c2cc1600c9f8aa9175 (patch)
treef9d0bdd3c0ac596aebb9ac621d1c35574b27431e /macros/neon-test.m4
parenta18a1628ad788934af5c3fde66a8bff20c5f9f48 (diff)
downloadneon-git-b0e18e5d7f78c89c0f37c8c2cc1600c9f8aa9175.tar.gz
Allow suppressing build of test suite child/server handling functions
for embedded neon build, via NEON_TEST_WITHOUT_CHILD m4 macro. * macros/neon-test.m4: Define NEON_TEST_WITHOUT_CHILD. * test/common/child.c, test/common/tests.c: Suppress code dealing with child/server processes if NEON_TEST_NO_CHILD is defined.
Diffstat (limited to 'macros/neon-test.m4')
-rw-r--r--macros/neon-test.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/macros/neon-test.m4 b/macros/neon-test.m4
index 0eb70f1..469e26c 100644
--- a/macros/neon-test.m4
+++ b/macros/neon-test.m4
@@ -43,3 +43,7 @@ AC_CHECK_FUNCS(pipe isatty usleep shutdown setlocale gethostname)
AC_REQUIRE([NE_FIND_AR])
])
+
+AC_DEFUN([NEON_TEST_WITHOUT_CHILD], [
+AC_DEFINE([NEON_TEST_NO_CHILD], 1, [Define if test suite child process handling is not needed])
+])