Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.4
    • Fix Version/s: 0.5
    • Component/s: proton-c
    • Labels:
      None
    • Environment:
      Linux Fedora 18

      Description

      1] From a fresh checkout
      mkdir b64; cd b64; cmake ..; make; make test

      Start 2: ruby-unit-test
      2/3 Test #2: ruby-unit-test ...................***Failed 0.08 sec

      2] And getting past
      gem install minitest

      3] ctest -VV shows

      2: Test command: /usr/bin/python "/home/chug/svn/proton/trunk/proton-c/env.py" "PATH=/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/sbin:/usr/sbin:/home/chug/svn/qpid/trunk/qpid/tools/src/py:/home/chug/svn/proton/trunk/b64/proton-c/bindings/ruby:/home/chug/svn/proton/trunk/b64/proton-c" "RUBYLIB=/home/chug/svn/proton/trunk/tests/ruby:/home/chug/svn/proton/trunk/proton-c/bindings/ruby:/home/chug/svn/proton/trunk/b64/proton-c/bindings/ruby:/home/chug/svn/proton/trunk/b64/proton-c:/home/chug/svn/proton/trunk/proton-c/bindings/ruby/lib" "/home/chug/svn/proton/trunk/tests/ruby/proton-test"
      2: Test timeout computed to be: 1500
      2: Warning: you should require 'minitest/autorun' instead.
      2: Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
      2: From:
      2: /usr/share/ruby/test/unit.rb:3:in `<top (required)>'
      2: /home/chug/svn/proton/trunk/tests/ruby/proton-test:3:in `<main>'
      2: MiniTest::Unit::TestCase is now Minitest::Test. From /usr/share/ruby/test/unit/testcase.rb:8:in `<module:Unit>'
      2: /usr/share/ruby/test/unit.rb:328:in `autorun': uninitialized class variable @@installed_at_exit in Test::Unit::Runner (NameError)
      2: from /usr/share/ruby/test/unit.rb:640:in `<top (required)>'
      2: from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
      2: from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
      2: from /home/chug/svn/proton/trunk/tests/ruby/proton-test:3:in `<main>'

        Activity

        Hide
        Darryl L. Pierce added a comment - - edited

        I'm seeing a slightly different error. The unit tests pass but the spec tests fail (for Ruby) as follows:

        mcpierce@mcpierce-laptop:cmake (master) $ ctest -VV -R ruby-spec-test
        UpdateCTestConfiguration from :/home/mcpierce/Programming/Proton/cmake/DartConfiguration.tcl
        Parse Config file:/home/mcpierce/Programming/Proton/cmake/DartConfiguration.tcl
        UpdateCTestConfiguration from :/home/mcpierce/Programming/Proton/cmake/DartConfiguration.tcl
        Parse Config file:/home/mcpierce/Programming/Proton/cmake/DartConfiguration.tcl
        Test project /home/mcpierce/Programming/Proton/cmake
        Constructing a list of tests
        Done constructing a list of tests
        Checking test dependency graph...
        Checking test dependency graph end
        test 5
        Start 5: ruby-spec-test

        5: Test command: /usr/bin/python "/home/mcpierce/Programming/Proton/proton-c/env.py" "PATH=/home/mcpierce/.rvm/gems/ruby-2.0.0-p195/bin:/home/mcpierce/.rvm/gems/ruby-2.0.0-p195@global/bin:/home/mcpierce/.rvm/rubies/ruby-2.0.0-p195/bin:/home/mcpierce/.rvm/bin:/home/mcpierce/bin:/home/mcpierce/bin/tools:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/mcpierce/.gems/bin:/home/mcpierce/Programming/Proton/tests/tools/apps/python:/home/mcpierce/Programming/Proton/tests/python:/home/mcpierce/Programming/Proton/cmake/proton-c/bindings/ruby:/home/mcpierce/Programming/Proton/cmake/proton-c" "RUBYLIB=/home/mcpierce/Programming/Proton/tests/ruby:/home/mcpierce/Programming/Proton/proton-c/bindings/ruby:/home/mcpierce/Programming/Proton/cmake/proton-c/bindings/ruby:/home/mcpierce/Programming/Proton/cmake/proton-c:/home/mcpierce/Programming/Proton/proton-c/bindings/ruby/lib" "/home/mcpierce/.gems/bin/rspec"
        5: Test timeout computed to be: 1500
        5: /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/configuration.rb:896:in `load': cannot load such file – /home/mcpierce/Programming/Proton/cmake/proton-c/spec (LoadError)
        5: from /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
        5: from /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/configuration.rb:896:in `each'
        5: from /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/configuration.rb:896:in `load_spec_files'
        5: from /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/command_line.rb:22:in `run'
        5: from /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/runner.rb:80:in `run'
        5: from /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/runner.rb:17:in `block in autorun'
        1/1 Test #5: ruby-spec-test ...................***Failed 0.09 sec

        0% tests passed, 1 tests failed out of 1

        Total Test time (real) = 0.10 sec

        The following tests FAILED:
        5 - ruby-spec-test (Failed)
        Errors while running CTest

        There is no proton-c/spec file below the cmake build directory, so I'm not sure what it's looking for there. And the only spec directory I can find is the one below the bindings/ruby directory that contains Rspec tests.

        Show
        Darryl L. Pierce added a comment - - edited I'm seeing a slightly different error. The unit tests pass but the spec tests fail (for Ruby) as follows: mcpierce@mcpierce-laptop:cmake (master) $ ctest -VV -R ruby-spec-test UpdateCTestConfiguration from :/home/mcpierce/Programming/Proton/cmake/DartConfiguration.tcl Parse Config file:/home/mcpierce/Programming/Proton/cmake/DartConfiguration.tcl UpdateCTestConfiguration from :/home/mcpierce/Programming/Proton/cmake/DartConfiguration.tcl Parse Config file:/home/mcpierce/Programming/Proton/cmake/DartConfiguration.tcl Test project /home/mcpierce/Programming/Proton/cmake Constructing a list of tests Done constructing a list of tests Checking test dependency graph... Checking test dependency graph end test 5 Start 5: ruby-spec-test 5: Test command: /usr/bin/python "/home/mcpierce/Programming/Proton/proton-c/env.py" "PATH=/home/mcpierce/.rvm/gems/ruby-2.0.0-p195/bin:/home/mcpierce/.rvm/gems/ruby-2.0.0-p195@global/bin:/home/mcpierce/.rvm/rubies/ruby-2.0.0-p195/bin:/home/mcpierce/.rvm/bin:/home/mcpierce/bin:/home/mcpierce/bin/tools:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/mcpierce/.gems/bin:/home/mcpierce/Programming/Proton/tests/tools/apps/python:/home/mcpierce/Programming/Proton/tests/python:/home/mcpierce/Programming/Proton/cmake/proton-c/bindings/ruby:/home/mcpierce/Programming/Proton/cmake/proton-c" "RUBYLIB=/home/mcpierce/Programming/Proton/tests/ruby:/home/mcpierce/Programming/Proton/proton-c/bindings/ruby:/home/mcpierce/Programming/Proton/cmake/proton-c/bindings/ruby:/home/mcpierce/Programming/Proton/cmake/proton-c:/home/mcpierce/Programming/Proton/proton-c/bindings/ruby/lib" "/home/mcpierce/.gems/bin/rspec" 5: Test timeout computed to be: 1500 5: /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/configuration.rb:896:in `load': cannot load such file – /home/mcpierce/Programming/Proton/cmake/proton-c/spec (LoadError) 5: from /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/configuration.rb:896:in `block in load_spec_files' 5: from /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/configuration.rb:896:in `each' 5: from /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/configuration.rb:896:in `load_spec_files' 5: from /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/command_line.rb:22:in `run' 5: from /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/runner.rb:80:in `run' 5: from /home/mcpierce/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/runner.rb:17:in `block in autorun' 1/1 Test #5: ruby-spec-test ...................***Failed 0.09 sec 0% tests passed, 1 tests failed out of 1 Total Test time (real) = 0.10 sec The following tests FAILED: 5 - ruby-spec-test (Failed) Errors while running CTest There is no proton-c/spec file below the cmake build directory, so I'm not sure what it's looking for there. And the only spec directory I can find is the one below the bindings/ruby directory that contains Rspec tests.
        Hide
        Darryl L. Pierce added a comment -

        This seems to be related to the version of minitest in use. Minitest 5.0 (the latest) seems to be the culprit. If we go back to using minitest 4.0 then the tests all seem to be passing.

        Show
        Darryl L. Pierce added a comment - This seems to be related to the version of minitest in use. Minitest 5.0 (the latest) seems to be the culprit. If we go back to using minitest 4.0 then the tests all seem to be passing.
        Hide
        ASF subversion and git services added a comment -

        Commit 1503700 from Darryl L. Pierce in branch 'proton/trunk'
        [ https://svn.apache.org/r1503700 ]

        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.

        Show
        ASF subversion and git services added a comment - Commit 1503700 from Darryl L. Pierce in branch 'proton/trunk' [ https://svn.apache.org/r1503700 ] 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.

          People

          • Assignee:
            Darryl L. Pierce
            Reporter:
            Chuck Rolke
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development