Skip to content

Commit

Permalink
t/: Make it possibly to easily run unit and integration tests separat…
Browse files Browse the repository at this point in the history
…ely.
  • Loading branch information
tokkee committed Mar 1, 2015
1 parent f64a776 commit 4486b89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion t/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4486b89

Please sign in to comment.