From 4486b89ee1c889fc9996dea50006523db6cf218c Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 1 Mar 2015 15:41:17 +0100 Subject: [PATCH] t/: Make it possibly to easily run unit and integration tests separately. --- README | 6 +++++- t/Makefile.am | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README b/README index 7e493db..43f6f29 100644 --- a/README +++ b/README @@ -113,7 +113,11 @@ Testing ------- Unit and integration tests for SysDB are shipped along with the source code - in the ‘t’ subdirectory. Run ‘make test’ to run all available tests. + in the ‘t’ subdirectory. Run ‘make test’ to run all available tests or use + the following commands to run unit and integration tests separately: + + make test TESTS='$(UNIT_TESTS)' + make test TESTS='$(INTEGRATION_TESTS)' Some tests require the ‘fopencookie’ function as provided by the GNU libc library. It used used to mock I/O related functions. In case this function diff --git a/t/Makefile.am b/t/Makefile.am index f01e35b..3218c7b 100644 --- a/t/Makefile.am +++ b/t/Makefile.am @@ -132,13 +132,15 @@ endif # if INTEGRATION_TESTING -TESTS += \ +INTEGRATION_TESTS = \ integration/config.sh \ integration/ssl.sh \ integration/query.sh \ integration/matching.sh \ integration/filter.sh +TESTS += $(INTEGRATION_TESTS) + check_LTLIBRARIES += integration/mock_plugin.la integration_mock_plugin_la_SOURCES = integration/mock_plugin.c # -rpath is a work-around to enforce a shared library -- 2.30.2