[Rake-devel] CVS HEAD unit tests

Damphyr damphyr at freemail.gr
Sat Dec 10 08:25:52 EST 2005


Jim, I'm trying to test a patch I made to check for 'Changing task 
dependencies from another task' using the unit tests in the Rake Rakefile.
I get several failures, and I wanted to ask if it's stuff that hasn't 
been fixed yet or it's just that I need to set omehting for the tests to 
be succesful?
Also, what's the session required for functional tests?
Here's the output (bear in mind that I have a 0.6.2 installation with 
patched RDoc and SSHPublisher on Windows XP)
(in D:/projects/rubyforge/rake/rake)
mkdir -p testdata
d:/dev/ruby/bin/ruby -w -Ilib 
"d:/dev/ruby/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb" 
"te
st/test_clean.rb" "test/test_definitions.rb" "test/test_earlytime.rb" 
"test/test_filelist.rb" "test/test_fileu
tils.rb" "test/test_file_creation_task.rb" "test/test_file_task.rb" 
"test/test_ftp.rb" "test/test_makefile_loa
der.rb" "test/test_multitask.rb" "test/test_package_task.rb" 
"test/test_rake.rb" "test/test_rules.rb" "test/te
st_tasks.rb" "test/test_task_manager.rb" "test/test_test_task.rb" 
"test/contrib/testsys.rb" "test/functional.r
b"
UNABLE TO RUN FUNCTIONAL TESTS
No Session Found
Loaded suite 
d:/dev/ruby/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader
Started
........E.E......................................................-e:1:in 
`exit': no implicit conversion from n
il to integer (TypeError)
         from -e:1
FE.EF.................F..........................................
Finished in 13.569 seconds.

   1) Error:
test_create(TestEarlyTime):
ArgumentError: argument out of range
     ./test/test_earlytime.rb:9:in `mktime'
     ./test/test_earlytime.rb:9:in `test_create'

   2) Error:
test_original_time_compare_is_not_messed_up(TestEarlyTime):
ArgumentError: argument out of range
     ./test/test_earlytime.rb:24:in `mktime'
     ./test/test_earlytime.rb:24:in 
`test_original_time_compare_is_not_messed_up'

   3) Failure:
test_ruby(TestFileUtils)
     [./test/test_fileutils.rb:109:in `test_ruby'
      ./test/test_fileutils.rb:107:in `call'
      ./lib/rake.rb:558:in `sh'
      ./lib/rake.rb:641:in `sh'
      ./lib/rake.rb:636:in `sh'
      ./lib/rake.rb:576:in `ruby'
      ./lib/rake.rb:641:in `ruby'
      ./lib/rake.rb:636:in `ruby'
      ./test/test_fileutils.rb:107:in `test_ruby'
      ./test/test_fileutils.rb:103:in `verbose'
      ./test/test_fileutils.rb:103:in `test_ruby']:
<123> expected but was
<1>.

   4) Error:
test_sh(TestFileUtils):
RuntimeError: Command failed with status (1): [test/shellcommand.rb]
     ./lib/rake.rb:551:in `sh'
     ./lib/rake.rb:550:in `call'
     ./lib/rake.rb:558:in `sh'
     ./lib/rake.rb:641:in `sh'
     ./lib/rake.rb:636:in `sh'
     ./test/test_fileutils.rb:64:in `test_sh'
     ./test/test_fileutils.rb:64:in `verbose'
     ./test/test_fileutils.rb:64:in `test_sh'

   5) Error:
test_sh_multiple_arguments(TestFileUtils):
RuntimeError: Command failed with status (1): [test $RAKE_TEST_SH = someval]
     ./lib/rake.rb:551:in `sh'
     ./lib/rake.rb:550:in `call'
     ./lib/rake.rb:558:in `sh'
     ./lib/rake.rb:641:in `sh'
     ./lib/rake.rb:636:in `sh'
     ./test/test_fileutils.rb:71:in `test_sh_multiple_arguments'
     ./test/test_fileutils.rb:71:in `verbose'
     ./test/test_fileutils.rb:71:in `test_sh_multiple_arguments'

   6) Failure:
test_sh_special_handling(TestFileUtils)
     [./test/test_fileutils.rb:89:in `test_sh_special_handling'
      ./test/test_fileutils.rb:88:in `call'
      ./lib/rake.rb:558:in `sh'
      ./lib/rake.rb:641:in `sh'
      ./lib/rake.rb:636:in `sh'
      ./test/test_fileutils.rb:88:in `test_sh_special_handling'
      ./test/test_fileutils.rb:87:in `verbose'
      ./test/test_fileutils.rb:87:in `test_sh_special_handling']:
<false> is not true.

   7) Failure:
test_each_dir_parent(TestRake) [./test/test_rake.rb:11]:
<["c:/a/b", "c:/a", "c:"]> expected but was
<["c:/a/b", "c:/a", "c:/"]>.

130 tests, 425 assertions, 3 failures, 4 errors
rake aborted!

-- 
http://www.braveworld.net/riva

____________________________________________________________________
http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.
http://www.freemail.gr - free email service for the Greek-speaking.


More information about the Rake-devel mailing list