blob: 98ec9e42c5451e052e3448af02e3deb342c50bae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
set(SIMULATOR_SRCS
simulator.cc
)
add_executable(hscript-simulate ${SIMULATOR_SRCS})
target_link_libraries(hscript-simulate hscript)
install(TARGETS hscript-simulate DESTINATION bin)
add_test(NAME "RSpecSimulator"
COMMAND rspec spec/simulator_spec.rb
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests)
set_property(TEST "RSpecSimulator"
PROPERTY ENVIRONMENT "PATH=$PATH:${CMAKE_CURRENT_BINARY_DIR}")
IF(VALGRIND)
add_test(NAME "ValgrindSimulator"
COMMAND valgrind ${CMAKE_CURRENT_BINARY_DIR}/hscript-simulate ${CMAKE_SOURCE_DIR}/tests/fixtures/0001-basic.installfile)
ENDIF(VALGRIND)
|