Alan Conway created PROTON-1765: ----------------------------------- Summary: [ruby] auto-test of installed gem Key: PROTON-1765 URL: https://issues.apache.org/jira/browse/PROTON-1765 Project: Qpid Proton Issue Type: Improvement Reporter: Alan Conway Assignee: Alan Conway
Restore this test to the ruby/CMakeLists.txt {code:java} # Test running examples against the installed gem add_test( NAME ruby-gem-examples COMMAND ${gem_env} ${RUBY_EXECUTABLE} example_test.rb -v WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/examples/ruby ) SET_TESTS_PROPERTIES(ruby-gem-examples PROPERTIES DEPENDS ruby-gem-install){code} This works on some platforms (fedora 26) but fails on Travis CI builds, e.g. [https://travis-ci.org/alanconway/qpid-proton/jobs/342502018] Doesn't seem to indicate a problem with the Gem, but rather with the test setup. The error is like this: {code:java} 2: Test command: /opt/pyenv/shims/python "/home/travis/build/alanconway/qpid-proton/proton-c/env.py" "--" "GEM_HOME=/home/travis/build/alanconway/qpid-proton/build/proton-c/bindings/ruby/install" "LD_LIBRARY_PATH=/home/travis/build/alanconway/qpid-proton/build/proton-c" "/home/travis/.rvm/rubies/ruby-2.4.1/bin/ruby" "example_test.rb" "-v" 2: Test timeout computed to be: 1500 2: /home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': incompatible library version - /home/travis/build/alanconway/qpid-proton/build/proton-c/bindings/ruby/install/gems/qpid_proton-0.21.0/lib/cproton.so (LoadError) 2: from /home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' 2: from /home/travis/build/alanconway/qpid-proton/build/proton-c/bindings/ruby/install/gems/qpid_proton-0.21.0/lib/qpid_proton.rb:19:in `<top (required)>' 2: from /home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `require' 2: from /home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require' 2: from /home/travis/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:40:in `require' 2: from example_test.rb:22:in `<main>' 2/32 Test #2: ruby-gem-examples ................***Failed 0.15 sec{code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org