diff options
Diffstat (limited to 'spec/ruby/default.mspec')
| -rw-r--r-- | spec/ruby/default.mspec | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/spec/ruby/default.mspec b/spec/ruby/default.mspec index 90f4c1ccaa..c8b1215f56 100644 --- a/spec/ruby/default.mspec +++ b/spec/ruby/default.mspec @@ -1,3 +1,4 @@ +# -*- ruby -*- # Configuration file for Ruby >= 2.0 implementations. class MSpecScript @@ -19,8 +20,11 @@ class MSpecScript # C extension API specs set :capi, [ 'optional/capi' ] + # Thread safety specs + set :thread_safety, [ 'optional/thread_safety' ] + # A list of _all_ optional specs - set :optional, get(:capi) + set :optional, get(:capi) + get(:thread_safety) # An ordered list of the directories containing specs to run set :files, get(:command_line) + get(:language) + get(:core) + get(:library) + get(:security) + get(:optional) @@ -29,24 +33,22 @@ class MSpecScript set :ci_files, get(:files) # The default implementation to run the specs. - # TODO: this needs to be more sophisticated since the - # executable is not consistently named. set :target, 'ruby' set :backtrace_filter, /mspec\// set :tags_patterns, [ - [%r(language/), 'tags/1.9/language/'], - [%r(core/), 'tags/1.9/core/'], - [%r(command_line/), 'tags/1.9/command_line/'], - [%r(library/), 'tags/1.9/library/'], - [%r(security/), 'tags/1.9/security/'], - [/_spec.rb$/, '_tags.txt'] + [%r(language/), 'tags/language/'], + [%r(core/), 'tags/core/'], + [%r(command_line/), 'tags/command_line/'], + [%r(library/), 'tags/library/'], + [%r(security/), 'tags/security/'], + [/_spec\.rb$/, '_tags.txt'] ] - # Enable features - MSpec.enable_feature :fiber - MSpec.enable_feature :fiber_library - MSpec.enable_feature :fork if respond_to?(:fork, true) - MSpec.enable_feature :encoding + set :toplevel_constants_excludes, [ + /\wSpecs?$/, + /^CS_CONST/, + /^CSL_CONST/, + ] end |
