You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mc...@apache.org on 2013/07/16 14:59:58 UTC

svn commit: r1503700 - /qpid/proton/trunk/proton-c/CMakeLists.txt

Author: mcpierce
Date: Tue Jul 16 12:59:58 2013
New Revision: 1503700

URL: http://svn.apache.org/r1503700
Log:
PROTON-352: Fixed the runtime environment for Ruby spec tests in Cmake.

The tests were not being run in the bindings/ruby directory, which
caused Rspec to fail to find the actual tests. The test now runs in the
ruby directory itself.

Modified:
    qpid/proton/trunk/proton-c/CMakeLists.txt

Modified: qpid/proton/trunk/proton-c/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/CMakeLists.txt?rev=1503700&r1=1503699&r2=1503700&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/CMakeLists.txt (original)
+++ qpid/proton/trunk/proton-c/CMakeLists.txt Tue Jul 16 12:59:58 2013
@@ -410,8 +410,11 @@ if (ruby_exe)
   # ruby spec tests
   find_program(rspec_exe rspec)
   if (rspec_exe)
-    add_test (ruby-spec-test python ${env_py} "PATH=${rb_path}" "RUBYLIB=${rb_rubylib}"
-      ${rspec_exe})
+    add_test (NAME ruby-spec-test
+              WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bindings/ruby
+              COMMAND python ${env_py} "PATH=${rb_path}" "RUBYLIB=${rb_rubylib}"
+                      ${rspec_exe})
+
   else(rspec_exe)
     message (STATUS "Cannot find rspec, skipping rspec tests")
   endif(rspec_exe)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org