Skip to content

Commit

Permalink
Import test assertions from ruby/ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed May 10, 2021
1 parent 9d5de51 commit 01dda86
Show file tree
Hide file tree
Showing 5 changed files with 1,176 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Rakefile
Expand Up @@ -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
Expand All @@ -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]

0 comments on commit 01dda86

Please sign in to comment.