Create rspec test structure for build tests
This commit is contained in:
1 parent
07579fea35
commit
22e332e1fe
5 files changed
+23
No files matched your search
@@ -0,0 +1,13 @@
|
||||
require 'fileutils'
|
||||
|
||||
describe Rscons do
|
||||
FileUtils.rm_rf('build_tests/test')
|
||||
test_dirs = Dir['build_tests/*/']
|
||||
test_dirs.each do |build_test_rel_path|
|
||||
FileUtils.cp_r(build_test_rel_path, 'build_tests/test')
|
||||
Dir.chdir('build_tests/test') do
|
||||
instance_eval(File.read('spec.rb'))
|
||||
end
|
||||
FileUtils.rm_rf('build_tests/test')
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1 @@
|
||||
require "rscons"
|
||||
Reference in new issue
Block a user