diff options
Diffstat (limited to 'tools/hscript-validate')
-rw-r--r-- | tools/hscript-validate/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/hscript-validate/CMakeLists.txt b/tools/hscript-validate/CMakeLists.txt index a02d90b..f8b579a 100644 --- a/tools/hscript-validate/CMakeLists.txt +++ b/tools/hscript-validate/CMakeLists.txt @@ -6,12 +6,15 @@ target_link_libraries(hscript-validate hscript) install(TARGETS hscript-validate DESTINATION bin) +IF(RSPEC_EXECUTABLE) add_test(NAME "RSpecValidator" - COMMAND rspec spec/validator_spec.rb + COMMAND ${RSPEC_EXECUTABLE} spec/validator_spec.rb WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests) set_property(TEST "RSpecValidator" PROPERTY ENVIRONMENT "PATH=$PATH:${CMAKE_CURRENT_BINARY_DIR}") +ENDIF(RSPEC_EXECUTABLE) + IF(VALGRIND) add_test(NAME "ValgrindValidator" - COMMAND valgrind ${CMAKE_CURRENT_BINARY_DIR}/hscript-validate ${CMAKE_SOURCE_DIR}/tests/fixtures/0001-basic.installfile) + COMMAND ${VALGRIND_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/hscript-validate ${CMAKE_SOURCE_DIR}/tests/fixtures/0001-basic.installfile) ENDIF(VALGRIND) |