From: Sebastian Harl Date: Sun, 1 Mar 2015 14:41:17 +0000 (+0100) Subject: t/: Make it possibly to easily run unit and integration tests separately. X-Git-Tag: sysdb-0.8.0~152 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4486b89ee1c889fc9996dea50006523db6cf218c;p=sysdb.git t/: Make it possibly to easily run unit and integration tests separately. --- 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