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 7e493db39ec92d894938d87c1ea930a25f58c737..43f6f29aeab6e23bef9fb282f8d9e626a51abb16 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 f01e35bc9e9d35bd247a71548b0ba5dd9cba5154..3218c7b5aafc01d5ac2726c6d5df018dd9471134 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