From f89bb285434b22edfff30be1c70152573fb319c5 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Mon, 26 Sep 2011 04:20:33 +0000 Subject: [PATCH] make test now automatically runs the ruby unit tests (forgot to commit new CMakeLists) --- lang/ruby/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lang/ruby/CMakeLists.txt diff --git a/lang/ruby/CMakeLists.txt b/lang/ruby/CMakeLists.txt new file mode 100644 index 0000000..ac4db6b --- /dev/null +++ b/lang/ruby/CMakeLists.txt @@ -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) +