lib/autobuild/packages/ruby.rb in autobuild-1.10.0.rc13 vs lib/autobuild/packages/ruby.rb in autobuild-1.10.0.rc14
- old
+ new
@@ -7,19 +7,22 @@
# Set to nil to disable documentation generation
attr_accessor :rake_doc_task
# The Rake task that is used to run tests. Defaults to "test".
# Set to nil to disable tests for this package
attr_accessor :rake_test_task
+ # Options that should be passed to the rake task
+ attr_accessor :rake_test_options
# The Rake task that is used to run cleanup. Defaults to "clean".
# Set to nil to disable tests for this package
attr_accessor :rake_clean_task
def initialize(*args)
self.rake_setup_task = "default"
self.rake_doc_task = "redocs"
self.rake_clean_task = "clean"
self.rake_test_task = "test"
+ self.rake_test_options = []
super
exclude << /\.so$/
exclude << /Makefile$/
exclude << /mkmf.log$/
@@ -39,11 +42,11 @@
def with_tests
test_utility.task do
progress_start "running tests for %s", :done_message => 'tests passed for %s' do
run 'test',
- Autobuild.tool_in_path('ruby'), '-S', Autobuild.tool('rake'), rake_test_task,
- :working_directory => srcdir
+ Autobuild.tool_in_path('ruby'), '-S', Autobuild.tool('rake'), rake_test_task, *rake_test_options,
+ working_directory: srcdir
end
end
end
def invoke_rake(setup_task = rake_setup_task)