Merge lp:~dobey/unity-scope-click/check-valgrind into lp:unity-scope-click/devel

Proposed by dobey
Status: Merged
Approved by: Alejandro J. Cura
Approved revision: 256
Merged at revision: 256
Proposed branch: lp:~dobey/unity-scope-click/check-valgrind
Merge into: lp:unity-scope-click/devel
Diff against target: 54 lines (+28/-0)
2 files modified
CMakeLists.txt (+19/-0)
scope/tests/CMakeLists.txt (+9/-0)
To merge this branch: bzr merge lp:~dobey/unity-scope-click/check-valgrind
Reviewer Review Type Date Requested Status
Alejandro J. Cura (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+219609@code.launchpad.net

Commit message

Add rules for running the unit tests under valgrind.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alejandro J. Cura (alecu) wrote :

Wonderful

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2014-05-13 19:32:29 +0000
+++ CMakeLists.txt 2014-05-14 22:01:40 +0000
@@ -74,6 +74,17 @@
74 DEPENDS test-integration-click-scope74 DEPENDS test-integration-click-scope
75)75)
7676
77# Add a custom target for running the tests under valgrind.
78add_custom_target (test-valgrind
79 DEPENDS test-click-scope-valgrind
80)
81
82# Add a custom target for running the tests under valgrind with the
83# full leak checks enabled.
84add_custom_target (test-leaks
85 DEPENDS test-click-scope-leaks
86)
87
77# Also let "make check" and partners work.88# Also let "make check" and partners work.
78add_custom_target (check89add_custom_target (check
79 DEPENDS test90 DEPENDS test
@@ -82,3 +93,11 @@
82add_custom_target (check-integration93add_custom_target (check-integration
83 DEPENDS test-integration94 DEPENDS test-integration
84)95)
96
97add_custom_target (check-valgrind
98 DEPENDS test-valgrind
99)
100
101add_custom_target (check-leaks
102 DEPENDS test-leaks
103)
85\ No newline at end of file104\ No newline at end of file
86105
=== modified file 'scope/tests/CMakeLists.txt'
--- scope/tests/CMakeLists.txt 2014-05-13 19:32:29 +0000
+++ scope/tests/CMakeLists.txt 2014-05-14 22:01:40 +0000
@@ -61,6 +61,15 @@
61 DEPENDS ${CLICKSCOPE_TESTS_TARGET}61 DEPENDS ${CLICKSCOPE_TESTS_TARGET}
62)62)
6363
64add_custom_target(test-click-scope-valgrind
65 COMMAND valgrind --tool=memcheck ${CMAKE_CURRENT_BINARY_DIR}/${CLICKSCOPE_TESTS_TARGET}
66 DEPENDS ${CLICKSCOPE_TESTS_TARGET}
67)
68
69add_custom_target(test-click-scope-leaks
70 COMMAND valgrind --tool=memcheck --track-origins=yes --num-callers=40 --leak-resolution=high --leak-check=full ${CMAKE_CURRENT_BINARY_DIR}/${CLICKSCOPE_TESTS_TARGET}
71 DEPENDS ${CLICKSCOPE_TESTS_TARGET}
72)
64add_custom_target (test-click-scope-disabled73add_custom_target (test-click-scope-disabled
65 COMMAND GTEST_ALSO_RUN_DISABLED_TESTS=1 ${CMAKE_CURRENT_BINARY_DIR}/${CLICKSCOPE_TESTS_TARGET}74 COMMAND GTEST_ALSO_RUN_DISABLED_TESTS=1 ${CMAKE_CURRENT_BINARY_DIR}/${CLICKSCOPE_TESTS_TARGET}
66 DEPENDS ${CLICKSCOPE_TESTS_TARGET}75 DEPENDS ${CLICKSCOPE_TESTS_TARGET}

Subscribers

People subscribed via source and target branches

to all changes: