Skip to content

Commit

Permalink
Add new make option for valgrind
Browse files Browse the repository at this point in the history
'make valgrind-per-module' command runs valgrind on each
unit testing module separately.
(for Heiko with love ;)
  • Loading branch information
vigsterkr committed Mar 14, 2013
1 parent e7fd05f commit b03de59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/Makefile
Expand Up @@ -35,6 +35,11 @@ build: shogun-unit-test
valgrind: shogun-unit-test
@$(LIBRARY_PATH)=$(SHOGUNSRCTOP)/shogun:$$$(LIBRARY_PATH) valgrind $(VALGRINDOPTS) ./shogun-unit-test

valgrind-per-module:
@$(LIBRARY_PATH)=$(SHOGUNSRCTOP)/shogun:$$$(LIBRARY_PATH) ./shogun-unit-test --gtest_list_tests \
| grep -E '^[a-zA-Z0-9]*\.' \
| xargs -I{} valgrind $(VALGRINDOPTS) ./shogun-unit-test --gtest_filter={}\*

%$(EXT_OBJ_TEST): %$(EXT_SRC_TEST)
$(COMP_CPP) -I$(SHOGUNSRCTOP) $(COMPFLAGS_CPP) $(COMPFLAGS_GTEST_CPP) $(COMPFLAGS_GMOCK_CPP) $(DEFINES) -c $(INCLUDES) -o $@ $<

Expand Down

0 comments on commit b03de59

Please sign in to comment.