[ 
https://issues.apache.org/jira/browse/PROTON-352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13707348#comment-13707348
 ] 

Darryl L. Pierce edited comment on PROTON-352 at 7/12/13 8:44 PM:
------------------------------------------------------------------

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.
                
      was (Author: mcpierce):
    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

                  
> Ruby test errors
> ----------------
>
>                 Key: PROTON-352
>                 URL: https://issues.apache.org/jira/browse/PROTON-352
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: 0.4
>         Environment: Linux Fedora 18
>            Reporter: Chuck Rolke
>
> 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>'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to