make test now automatically runs the ruby unit tests (forgot to commit new CMakeLists)

This commit is contained in:
Sears Russell 2011-09-26 04:20:33 +00:00
parent 98375ec945
commit f89bb28543

8
lang/ruby/CMakeLists.txt Normal file
View file

@ -0,0 +1,8 @@
MACRO(CREATE_CHECK_RUBY NAME)
ADD_TEST(${NAME} bash -c "LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/src/stasis ruby1.9.1 -I ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${NAME}")
ENDMACRO(CREATE_CHECK_RUBY)
CREATE_CHECK_RUBY(stasis/test/tc_string.rb)
CREATE_CHECK_RUBY(stasis/test/tc_iterator.rb)
CREATE_CHECK_RUBY(stasis/test/tc_hash.rb)