* test/rake: get rid of name collision.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
664c7ef4f6
commit
746fe8af5a
@ -6,7 +6,7 @@ require_relative 'in_environment'
|
|||||||
TESTING_REQUIRE = [ ]
|
TESTING_REQUIRE = [ ]
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestApplication < Test::Unit::TestCase
|
class Rake::TestApplication < Test::Unit::TestCase
|
||||||
include CaptureStdout
|
include CaptureStdout
|
||||||
include InEnvironment
|
include InEnvironment
|
||||||
BASEDIR = File.dirname(__FILE__)
|
BASEDIR = File.dirname(__FILE__)
|
||||||
@ -298,7 +298,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestApplicationOptions < Test::Unit::TestCase
|
class Rake::TestApplicationOptions < Test::Unit::TestCase
|
||||||
include CaptureStdout
|
include CaptureStdout
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@ -589,7 +589,7 @@ class TestApplicationOptions < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestTaskArgumentParsing < Test::Unit::TestCase
|
class Rake::TestTaskArgumentParsing < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
@app = Rake::Application.new
|
@app = Rake::Application.new
|
||||||
end
|
end
|
||||||
@ -632,7 +632,7 @@ class TestTaskArgumentParsing < Test::Unit::TestCase
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestTaskArgumentParsing < Test::Unit::TestCase
|
class Rake::TestTaskArgumentParsing < Test::Unit::TestCase
|
||||||
include InEnvironment
|
include InEnvironment
|
||||||
|
|
||||||
def test_terminal_width_using_env
|
def test_terminal_width_using_env
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'rake/clean'
|
require 'rake/clean'
|
||||||
|
|
||||||
class TestClean < Test::Unit::TestCase
|
class Rake::TestClean < Test::Unit::TestCase
|
||||||
include Rake
|
include Rake
|
||||||
def test_clean
|
def test_clean
|
||||||
assert Task['clean'], "Should define clean"
|
assert Task['clean'], "Should define clean"
|
||||||
|
@ -4,7 +4,7 @@ require 'rake'
|
|||||||
require_relative 'filecreation'
|
require_relative 'filecreation'
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestDefinitions < Test::Unit::TestCase
|
class Rake::TestDefinitions < Test::Unit::TestCase
|
||||||
include Rake
|
include Rake
|
||||||
|
|
||||||
EXISTINGFILE = "testdata/existing"
|
EXISTINGFILE = "testdata/existing"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'rake'
|
require 'rake'
|
||||||
|
|
||||||
class TestEarlyTime < Test::Unit::TestCase
|
class Rake::TestEarlyTime < Test::Unit::TestCase
|
||||||
def test_create
|
def test_create
|
||||||
early = Rake::EarlyTime.instance
|
early = Rake::EarlyTime.instance
|
||||||
time = Time.mktime(1970, 1, 1, 0, 0, 0)
|
time = Time.mktime(1970, 1, 1, 0, 0, 0)
|
||||||
|
@ -3,7 +3,7 @@ require 'rake'
|
|||||||
require 'stringio'
|
require 'stringio'
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestExtension < Test::Unit::TestCase
|
class Rake::TestExtension < Test::Unit::TestCase
|
||||||
|
|
||||||
module Redirect
|
module Redirect
|
||||||
def error_redirect
|
def error_redirect
|
||||||
|
@ -4,7 +4,7 @@ require 'rake'
|
|||||||
require_relative 'filecreation'
|
require_relative 'filecreation'
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestFileCreationTask < Test::Unit::TestCase
|
class Rake::TestFileCreationTask < Test::Unit::TestCase
|
||||||
include Rake
|
include Rake
|
||||||
include FileCreation
|
include FileCreation
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ require 'rake'
|
|||||||
require_relative 'filecreation'
|
require_relative 'filecreation'
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestFileTask < Test::Unit::TestCase
|
class Rake::TestFileTask < Test::Unit::TestCase
|
||||||
include Rake
|
include Rake
|
||||||
include FileCreation
|
include FileCreation
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ class TestFileTask < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestDirectoryTask < Test::Unit::TestCase
|
class Rake::TestDirectoryTask < Test::Unit::TestCase
|
||||||
include Rake
|
include Rake
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
@ -4,7 +4,7 @@ require 'rake'
|
|||||||
|
|
||||||
require_relative 'capture_stdout'
|
require_relative 'capture_stdout'
|
||||||
|
|
||||||
class TestFileList < Test::Unit::TestCase
|
class Rake::TestFileList < Test::Unit::TestCase
|
||||||
FileList = Rake::FileList
|
FileList = Rake::FileList
|
||||||
include CaptureStdout
|
include CaptureStdout
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ require_relative 'filecreation'
|
|||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'stringio'
|
require 'stringio'
|
||||||
|
|
||||||
class TestFileUtils < Test::Unit::TestCase
|
class Rake::TestFileUtils < Test::Unit::TestCase
|
||||||
include FileCreation
|
include FileCreation
|
||||||
BASEDIR = File.dirname(__FILE__)
|
BASEDIR = File.dirname(__FILE__)
|
||||||
ShellCommand = "#{BASEDIR}/shellcommand.rb"
|
ShellCommand = "#{BASEDIR}/shellcommand.rb"
|
||||||
|
@ -13,7 +13,7 @@ class FakeDate
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
class TestFtpFile < Test::Unit::TestCase
|
class Rake::TestFtpFile < Test::Unit::TestCase
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
Rake::FtpFile.class_eval { @date_class = FakeDate; @time_class = FakeDate }
|
Rake::FtpFile.class_eval { @date_class = FakeDate; @time_class = FakeDate }
|
||||||
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||||||
require 'rake'
|
require 'rake'
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestAnEmptyInvocationChain < Test::Unit::TestCase
|
class Rake::TestAnEmptyInvocationChain < Test::Unit::TestCase
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@empty = Rake::InvocationChain::EMPTY
|
@empty = Rake::InvocationChain::EMPTY
|
||||||
@ -20,7 +20,7 @@ class TestAnEmptyInvocationChain < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestAnInvocationChainWithOneMember < Test::Unit::TestCase
|
class Rake::TestAnInvocationChainWithOneMember < Test::Unit::TestCase
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@empty = Rake::InvocationChain::EMPTY
|
@empty = Rake::InvocationChain::EMPTY
|
||||||
@ -47,7 +47,7 @@ class TestAnInvocationChainWithOneMember < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestAnInvocationChainWithMultipleMember < Test::Unit::TestCase
|
class Rake::TestAnInvocationChainWithMultipleMember < Test::Unit::TestCase
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@first_member = "A"
|
@first_member = "A"
|
||||||
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||||||
require 'rake'
|
require 'rake'
|
||||||
require 'rake/loaders/makefile'
|
require 'rake/loaders/makefile'
|
||||||
|
|
||||||
class TestMakefileLoader < Test::Unit::TestCase
|
class Rake::TestMakefileLoader < Test::Unit::TestCase
|
||||||
include Rake
|
include Rake
|
||||||
|
|
||||||
def test_parse
|
def test_parse
|
||||||
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||||||
require 'rake'
|
require 'rake'
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestMultiTask < Test::Unit::TestCase
|
class Rake::TestMultiTask < Test::Unit::TestCase
|
||||||
include Rake
|
include Rake
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'rake'
|
require 'rake'
|
||||||
|
|
||||||
class TestNameSpace < Test::Unit::TestCase
|
class Rake::TestNameSpace < Test::Unit::TestCase
|
||||||
|
|
||||||
class TM
|
class TM
|
||||||
include Rake::TaskManager
|
include Rake::TaskManager
|
||||||
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||||||
require 'rake'
|
require 'rake'
|
||||||
|
|
||||||
# ====================================================================
|
# ====================================================================
|
||||||
class TestPathMap < Test::Unit::TestCase
|
class Rake::TestPathMap < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_returns_self_with_no_args
|
def test_returns_self_with_no_args
|
||||||
assert_equal "abc.rb", "abc.rb".pathmap
|
assert_equal "abc.rb", "abc.rb".pathmap
|
||||||
@ -157,7 +157,7 @@ class TestPathMap < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestPathMapExplode < Test::Unit::TestCase
|
class Rake::TestPathMapExplode < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
String.class_eval { public :pathmap_explode }
|
String.class_eval { public :pathmap_explode }
|
||||||
end
|
end
|
||||||
@ -184,7 +184,7 @@ class TestPathMapExplode < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestPathMapPartial < Test::Unit::TestCase
|
class Rake::TestPathMapPartial < Test::Unit::TestCase
|
||||||
def test_pathmap_partial
|
def test_pathmap_partial
|
||||||
@path = "1/2/file"
|
@path = "1/2/file"
|
||||||
def @path.call(n)
|
def @path.call(n)
|
||||||
@ -200,7 +200,7 @@ class TestPathMapPartial < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestFileListPathMap < Test::Unit::TestCase
|
class Rake::TestFileListPathMap < Test::Unit::TestCase
|
||||||
def test_file_list_supports_pathmap
|
def test_file_list_supports_pathmap
|
||||||
assert_equal ['a', 'b'], FileList['dir/a.rb', 'dir/b.rb'].pathmap("%n")
|
assert_equal ['a', 'b'], FileList['dir/a.rb', 'dir/b.rb'].pathmap("%n")
|
||||||
end
|
end
|
||||||
|
@ -3,7 +3,7 @@ require 'rake'
|
|||||||
|
|
||||||
require_relative 'capture_stdout'
|
require_relative 'capture_stdout'
|
||||||
|
|
||||||
class PseudoStatusTest < Test::Unit::TestCase
|
class Rake::TestPseudoStatus < Test::Unit::TestCase
|
||||||
def test_with_zero_exit_status
|
def test_with_zero_exit_status
|
||||||
s = Rake::PseudoStatus.new
|
s = Rake::PseudoStatus.new
|
||||||
assert_equal 0, s.exitstatus
|
assert_equal 0, s.exitstatus
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'rake'
|
require 'rake'
|
||||||
|
|
||||||
class TestRake < Test::Unit::TestCase
|
class Rake::TestRake < Test::Unit::TestCase
|
||||||
def test_each_dir_parent
|
def test_each_dir_parent
|
||||||
assert_equal ['a'], alldirs('a')
|
assert_equal ['a'], alldirs('a')
|
||||||
assert_equal ['a/b', 'a'], alldirs('a/b')
|
assert_equal ['a/b', 'a'], alldirs('a/b')
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'rake/rdoctask'
|
require 'rake/rdoctask'
|
||||||
|
|
||||||
class TestRDocTask < Test::Unit::TestCase
|
class Rake::TestRDocTask < Test::Unit::TestCase
|
||||||
include Rake
|
include Rake
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||||||
require 'rake'
|
require 'rake'
|
||||||
|
|
||||||
# ====================================================================
|
# ====================================================================
|
||||||
class TestRequire < Test::Unit::TestCase
|
class Rake::TestRequire < Test::Unit::TestCase
|
||||||
RakeLibDir = File.dirname(__FILE__) + '/data/rakelib'
|
RakeLibDir = File.dirname(__FILE__) + '/data/rakelib'
|
||||||
|
|
||||||
def test_can_load_rake_library
|
def test_can_load_rake_library
|
||||||
|
@ -4,7 +4,7 @@ require 'rake'
|
|||||||
require_relative 'filecreation'
|
require_relative 'filecreation'
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestRules < Test::Unit::TestCase
|
class Rake::TestRules < Test::Unit::TestCase
|
||||||
include Rake
|
include Rake
|
||||||
include FileCreation
|
include FileCreation
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||||||
require 'rake'
|
require 'rake'
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestTaskArguments < Test::Unit::TestCase
|
class Rake::TestTaskArguments < Test::Unit::TestCase
|
||||||
def teardown
|
def teardown
|
||||||
ENV.delete('rev')
|
ENV.delete('rev')
|
||||||
ENV.delete('VER')
|
ENV.delete('VER')
|
||||||
|
@ -5,7 +5,7 @@ class TaskManager
|
|||||||
include Rake::TaskManager
|
include Rake::TaskManager
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestTaskManager < Test::Unit::TestCase
|
class Rake::TestTaskManager < Test::Unit::TestCase
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@tm = TaskManager.new
|
@tm = TaskManager.new
|
||||||
@ -146,7 +146,7 @@ class TestTaskManager < Test::Unit::TestCase
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class TestTaskManagerArgumentResolution < Test::Unit::TestCase
|
class Rake::TestTaskManagerArgumentResolution < Test::Unit::TestCase
|
||||||
def test_good_arg_patterns
|
def test_good_arg_patterns
|
||||||
assert_equal [:t, [], []], task(:t)
|
assert_equal [:t, [], []], task(:t)
|
||||||
assert_equal [:t, [], [:x]], task(:t => :x)
|
assert_equal [:t, [], [:x]], task(:t => :x)
|
||||||
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||||||
require 'rake/tasklib'
|
require 'rake/tasklib'
|
||||||
|
|
||||||
|
|
||||||
class TestTaskLib < Test::Unit::TestCase
|
class Rake::TestTaskLib < Test::Unit::TestCase
|
||||||
def test_paste
|
def test_paste
|
||||||
tl = Rake::TaskLib.new
|
tl = Rake::TaskLib.new
|
||||||
assert_equal :ab, tl.paste(:a, :b)
|
assert_equal :ab, tl.paste(:a, :b)
|
||||||
|
@ -5,7 +5,7 @@ require_relative 'filecreation'
|
|||||||
require_relative 'capture_stdout'
|
require_relative 'capture_stdout'
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestTask < Test::Unit::TestCase
|
class Rake::TestTask < Test::Unit::TestCase
|
||||||
include CaptureStdout
|
include CaptureStdout
|
||||||
include Rake
|
include Rake
|
||||||
|
|
||||||
@ -213,7 +213,7 @@ class TestTask < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
class TestTaskWithArguments < Test::Unit::TestCase
|
class Rake::TestTaskWithArguments < Test::Unit::TestCase
|
||||||
include CaptureStdout
|
include CaptureStdout
|
||||||
include Rake
|
include Rake
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ require 'tmpdir'
|
|||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'rake/testtask'
|
require 'rake/testtask'
|
||||||
|
|
||||||
class TestTestTask < Test::Unit::TestCase
|
class Rake::TestTestTask < Test::Unit::TestCase
|
||||||
include Rake
|
include Rake
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
@ -2,7 +2,7 @@ require 'test/unit'
|
|||||||
require_relative 'capture_stdout'
|
require_relative 'capture_stdout'
|
||||||
require 'rake'
|
require 'rake'
|
||||||
|
|
||||||
class TestTopLevelFunctions < Test::Unit::TestCase
|
class Rake::TestTopLevelFunctions < Test::Unit::TestCase
|
||||||
include CaptureStdout
|
include CaptureStdout
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
@ -3,7 +3,7 @@ require_relative 'in_environment'
|
|||||||
|
|
||||||
require 'rake'
|
require 'rake'
|
||||||
|
|
||||||
class TestWin32 < Test::Unit::TestCase
|
class Rake::TestWin32 < Test::Unit::TestCase
|
||||||
include InEnvironment
|
include InEnvironment
|
||||||
|
|
||||||
Win32 = Rake::Win32
|
Win32 = Rake::Win32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user