Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

100 lines (88 sloc) 4.787 kb
# -*-ruby-*-
#
# Config file for running RubySpecs / MSpec with MagLev
#
class MSpecScript
# Instead of passing "-t m", this sets the ruby-under-test to maglev-ruby.
set :target, File.dirname(__FILE__) + '/bin/maglev-ruby'
lang_files = ['spec/rubyspec/language',
"^spec/rubyspec/language/array_spec.rb",
"^spec/rubyspec/language/case_spec.rb",
"^spec/rubyspec/language/literal_lambda_spec.rb",
"^spec/rubyspec/language/for_spec.rb",
"^spec/rubyspec/language/block_spec.rb",
"^spec/rubyspec/language/match_spec.rb",
"^spec/rubyspec/language/send_spec.rb",
"^spec/rubyspec/language/super_spec.rb",
"^spec/rubyspec/language/symbol_spec.rb",
"^spec/rubyspec/language/predefined_spec.rb",
"^spec/rubyspec/language/break_spec.rb",
"^spec/rubyspec/language/predefined/data_spec.rb",
"^spec/rubyspec/language/variables_spec.rb"]
core_files = ['spec/rubyspec/core',
"^spec/rubyspec/core/argf/seek_spec.rb",
"^spec/rubyspec/core/basicobject/",
"^spec/rubyspec/core/fixnum/right_shift_spec.rb",
"^spec/rubyspec/core/kernel/define_singleton_method_spec.rb",
"^spec/rubyspec/core/method/parameters_spec.rb",
"^spec/rubyspec/core/module/define_method_spec.rb",
"^spec/rubyspec/core/numeric/to_c_spec.rb",
"^spec/rubyspec/core/proc/arity_spec.rb",
"^spec/rubyspec/core/proc/parameters_spec.rb",
"^spec/rubyspec/core/process/wait2_spec.rb",
"^spec/rubyspec/core/process/wait_spec.rb",
"^spec/rubyspec/core/process/waitall_spec.rb",
"^spec/rubyspec/core/string/unpack/a_spec.rb",
"^spec/rubyspec/core/symbol/encoding_spec.rb",
"^spec/rubyspec/core/symbol/length_spec.rb",
"^spec/rubyspec/core/symbol/size_spec.rb",
"^spec/rubyspec/core/thread/wakeup_spec.rb"]
lib_files = ['spec/rubyspec/library',
"^spec/rubyspec/library/erb/new_spec.rb",
"^spec/rubyspec/library/syslog/mask_spec.rb",
"^spec/rubyspec/library/zlib/inflate/append_spec.rb",
"^spec/rubyspec/library/zlib/inflate/inflate_spec.rb"]
cmdline_files = ['spec/rubyspec/command_line',
'^spec/rubyspec/dash_a_spec.rb']
ffi_files = ["spec/rubyspec/optional/ffi",
"^spec/rubyspec/optional/ffi/async_callback_spec.rb",
"^spec/rubyspec/optional/ffi/bool_spec.rb",
"^spec/rubyspec/optional/ffi/callback_spec.rb",
"^spec/rubyspec/optional/ffi/custom_type_spec.rb",
"^spec/rubyspec/optional/ffi/enum_spec.rb",
"^spec/rubyspec/optional/ffi/errno_spec.rb",
"^spec/rubyspec/optional/ffi/ffi_spec.rb",
"^spec/rubyspec/optional/ffi/function_spec.rb",
"^spec/rubyspec/optional/ffi/managed_struct_spec.rb",
"^spec/rubyspec/optional/ffi/number_spec.rb",
"^spec/rubyspec/optional/ffi/pointer_spec.rb",
"^spec/rubyspec/optional/ffi/rbx/",
"^spec/rubyspec/optional/ffi/string_spec.rb",
"^spec/rubyspec/optional/ffi/strptr_spec.rb",
"^spec/rubyspec/optional/ffi/struct_initialize_spec.rb",
"^spec/rubyspec/optional/ffi/struct_spec.rb",
"^spec/rubyspec/optional/ffi/union_spec.rb",
"^spec/rubyspec/optional/ffi/variadic_spec.rb"]
capi_files = ["spec/rubyspec/optional/capi",
"^spec/rubyspec/optional/capi/class_spec.rb",
"^spec/rubyspec/optional/capi/data_spec.rb",
"^spec/rubyspec/optional/capi/encoding_spec.rb",
"^spec/rubyspec/optional/capi/io_spec.rb",
"^spec/rubyspec/optional/capi/regexp_spec.rb",
"^spec/rubyspec/optional/capi/struct_spec.rb",
"^spec/rubyspec/optional/capi/thread_spec.rb"]
# On Orpheus and Grace, these used to fail. Possible add them
# conditionally based on ENV var
#
# "^spec/rubyspec/library/socket"
set :files, lang_files + core_files + lib_files + cmdline_files + ffi_files + capi_files
MSpec.enable_feature :fiber_library
MSpec.enable_feature :continuation_library
# The set of substitutions to transform a spec filename into a tag
# filename. The transformations are applied, in the given sequence, to a
# filename, yielding a tag file name.
set :tags_patterns, [
[%r(spec/rubyspec/), 'spec/tags/'],
[/_spec.rb$/, '_tags.txt']
]
end
Jump to Line
Something went wrong with that request. Please try again.