diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-07 22:19:55 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-11-07 22:19:55 -0600 |
commit | 2d7893cc3944d4818123d3d98cf5e00c2e1c54a3 (patch) | |
tree | c8f0bc69c4530bb288977d404356563a143982d7 /owner | |
parent | 9d3e81fe4dcb381c7e61393c7147fc127d5145c9 (diff) | |
download | horizon-2d7893cc3944d4818123d3d98cf5e00c2e1c54a3.tar.gz horizon-2d7893cc3944d4818123d3d98cf5e00c2e1c54a3.tar.bz2 horizon-2d7893cc3944d4818123d3d98cf5e00c2e1c54a3.tar.xz horizon-2d7893cc3944d4818123d3d98cf5e00c2e1c54a3.zip |
owner: Add tests to CMake
Diffstat (limited to 'owner')
-rw-r--r-- | owner/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/owner/CMakeLists.txt b/owner/CMakeLists.txt index 961efe7..05c2d36 100644 --- a/owner/CMakeLists.txt +++ b/owner/CMakeLists.txt @@ -4,3 +4,16 @@ set(OWNER_SRCS add_executable(hscript-printowner ${OWNER_SRCS}) install(TARGETS hscript-printowner DESTINATION bin) + +IF(RSPEC_EXECUTABLE) +add_test(NAME "RSpecOwner" + COMMAND ${RSPEC_EXECUTABLE} spec/owner_spec.rb + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests) +set_property(TEST "RSpecOwner" + PROPERTY ENVIRONMENT "PATH=$ENV{PATH}:${CMAKE_CURRENT_BINARY_DIR}") +ENDIF(RSPEC_EXECUTABLE) + +IF(VALGRIND) +add_test(NAME "ValgrindOwner" + COMMAND ${VALGRIND_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/hscript-printowner ${CMAKE_SOURCE_DIR}) +ENDIF(VALGRIND) |