Code

t/: Make it possibly to easily run unit and integration tests separately.
authorSebastian Harl <sh@tokkee.org>
Sun, 1 Mar 2015 14:41:17 +0000 (15:41 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 1 Mar 2015 14:41:17 +0000 (15:41 +0100)
README
t/Makefile.am

diff --git a/README b/README
index 7e493db..43f6f29 100644 (file)
--- 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
index f01e35b..3218c7b 100644 (file)
@@ -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