summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-10 18:10:13 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-10 18:10:13 +0900
commit01dda86681385f1eb55e4d4494bfc264a2a3c968 (patch)
treee8fb62811bfdeed70e23c6e8fa82de28407a180f /Rakefile
parent9d5de51f6aa042cde24579534b465fee585fde4a (diff)
downloadpsych-01dda86681385f1eb55e4d4494bfc264a2a3c968.zip
Import test assertions from ruby/ruby
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index d08e096..ec02f00 100644
--- a/Rakefile
+++ b/Rakefile
@@ -3,8 +3,8 @@ Bundler::GemHelper.install_tasks
require "rake/testtask"
Rake::TestTask.new(:test) do |t|
- t.libs << "test"
- t.libs << "lib"
+ t.libs << "test/lib" << "test"
+ t.ruby_opts << "-rhelper"
t.test_files = FileList['test/**/test_*.rb']
t.verbose = true
t.warning = true
@@ -31,4 +31,11 @@ else
Rake::ExtensionTask.new("psych")
end
+task :sync_tool do
+ require 'fileutils'
+ FileUtils.cp "../ruby/tool/lib/test/unit/core_assertions.rb", "./test/lib"
+ FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
+ FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
+end
+
task :default => [:compile, :test]