Hello.
Rake tests is not worked with ruby from cvs.
[EMAIL PROTECTED]:/host/p3/b/rake$ ruby --version
ruby 1.9.0 (2005-11-18) [i686-linux]
[EMAIL PROTECTED]:/host/p3/b/rake$ ruby install.rb
...
[EMAIL PROTECTED]:/host/p3/b/rake$ rake
(in /host/p3/b/rake)
/host/p3/b/rake/Rakefile:246: warning: ambiguous first argument; put
parentheses or even spaces
/host/p3/b/rake/Rakefile:251: warning: ambiguous first argument; put
parentheses or even spaces
Package Target requires RubyGEMs
mkdir -p testdata
/host/p3/a/ruby/bin/ruby -w -Ilib
"/host/p3/a/ruby/lib/ruby/site_ruby/1.9/rake/rake_test_loader.rb"
"test/test_clean.rb" "test/test_definitions.rb"
"test/test_earlytime.rb" "test/test_file_creation_task.rb"
"test/test_file_task.rb" "test/test_filelist.rb"
"test/test_fileutils.rb" "test/test_ftp.rb"
"test/test_makefile_loader.rb" "test/test_multitask.rb"
"test/test_package_task.rb" "test/test_rake.rb" "test/test_rules.rb"
"test/test_task_manager.rb" "test/test_tasks.rb"
"test/test_test_task.rb" "test/contrib/testsys.rb"
"test/functional.rb"
WARNING: RubyGems not installed
WARNING: Unable to test GemPackaging ... requires RubyGems
UNABLE TO RUN FUNCTIONAL TESTS
No Session Found
Loaded suite /host/p3/a/ruby/lib/ruby/site_ruby/1.9/rake/rake_test_loader
Started
...
126 tests, 417 assertions, 0 failures, 12 errors
===================================================
[EMAIL PROTECTED]:/host/p3/b/rake$ patch -p0 <../rake_tests.patch
patching file Rakefile
patching file lib/rake.rb
patching file lib/rake/testtask.rb
patching file test/test_test_task.rb
[EMAIL PROTECTED]:/host/p3/b/rake$
====================================================
[EMAIL PROTECTED]:/host/p3/b/rake$ rake
(in /host/p3/b/rake)
Package Target requires RubyGEMs
mkdir -p testdata
/host/p3/a/ruby/bin/ruby -w -Ilib
"/host/p3/a/ruby/lib/ruby/site_ruby/1.9/rake/rake_test_loader.rb"
"test/test_clean.rb" "test/test_definitions.rb"
"test/test_earlytime.rb" "test/test_file_creation_task.rb"
"test/test_file_task.rb" "test/test_filelist.rb"
"test/test_fileutils.rb" "test/test_ftp.rb"
"test/test_makefile_loader.rb" "test/test_multitask.rb"
"test/test_package_task.rb" "test/test_rake.rb" "test/test_rules.rb"
"test/test_task_manager.rb" "test/test_tasks.rb"
"test/test_test_task.rb" "test/contrib/testsys.rb"
"test/functional.rb"
WARNING: RubyGems not installed
WARNING: Unable to test GemPackaging ... requires RubyGems
UNABLE TO RUN FUNCTIONAL TESTS
No Session Found
Loaded suite /host/p3/a/ruby/lib/ruby/site_ruby/1.9/rake/rake_test_loader
Started
..............................................................................................................................
Finished in 9.233951 seconds.
126 tests, 439 assertions, 0 failures, 0 errors
--
Regards,
Yuri Kozlov
Index: Rakefile
===================================================================
RCS file: /var/cvs/rake/rake/Rakefile,v
retrieving revision 1.69
diff -u -r1.69 Rakefile
--- Rakefile 4 Oct 2005 22:29:07 -0000 1.69
+++ Rakefile 20 Nov 2005 06:34:43 -0000
@@ -243,12 +243,12 @@
desc "Look for TODO and FIXME tags in the code"
task :todo do
- FileList['**/*.rb'].egrep /#.*(FIXME|TODO|TBD)/
+ FileList['**/*.rb'].egrep(/#.*(FIXME|TODO|TBD)/)
end
desc "Look for Debugging print lines"
task :dbg do
- FileList['**/*.rb'].egrep /\bDBG|\bbreakpoint\b/
+ FileList['**/*.rb'].egrep(/\bDBG|\bbreakpoint\b/)
end
desc "List all ruby files"
Index: lib/rake.rb
===================================================================
RCS file: /var/cvs/rake/rake/lib/rake.rb,v
retrieving revision 1.120
diff -u -r1.120 rake.rb
--- lib/rake.rb 14 Nov 2005 17:55:22 -0000 1.120
+++ lib/rake.rb 20 Nov 2005 06:34:45 -0000
@@ -1377,7 +1377,11 @@
when String
source = task_name.sub(/\.[^.]*$/, ext)
when Proc
- source = ext.call(task_name)
+ if ext.arity != 0
+ source = ext.call(task_name)
+ else
+ source = ext.call
+ end
else
fail "Don't know how to handle rule dependent: #{ext.inspect}"
end
Index: lib/rake/testtask.rb
===================================================================
RCS file: /var/cvs/rake/rake/lib/rake/testtask.rb,v
retrieving revision 1.28
diff -u -r1.28 testtask.rb
--- lib/rake/testtask.rb 20 Aug 2005 22:54:59 -0000 1.28
+++ lib/rake/testtask.rb 20 Nov 2005 06:34:45 -0000
@@ -125,7 +125,7 @@
end
def file_list # :nodoc:
- if ENV['TEST']
+ if ENV['TEST'] != '' && ENV['TEST']
FileList[ ENV['TEST'] ]
else
result = []
Index: test/test_test_task.rb
===================================================================
RCS file: /var/cvs/rake/rake/test/test_test_task.rb,v
retrieving revision 1.2
diff -u -r1.2 test_test_task.rb
--- test/test_test_task.rb 24 Aug 2005 12:18:47 -0000 1.2
+++ test/test_test_task.rb 20 Nov 2005 06:34:45 -0000
@@ -7,7 +7,7 @@
include Rake
def setup
Task.clear
- ENV['TEST'] = nil
+ ENV['TEST'] = ''
end
def teardown
@@ -43,7 +43,7 @@
end
def test_pattern
- ENV['TEST'] = nil
+ ENV['TEST'] = ''
tt = Rake::TestTask.new do |t|
t.pattern = '*.rb'
end
_______________________________________________
Rake-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rake-devel