/
default.mspec
132 lines (109 loc) · 3.09 KB
/
default.mspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
require 'spec/custom/utils/script'
class MSpecScript
# Language features specs
set :language, [
'spec/ruby/language',
'spec/language'
]
# Core library specs
set :core, [
'spec/ruby/core',
'spec/core',
# 1.9
'^core/basicobject'
]
# Standard library specs
set :library, [
'spec/ruby/library',
'spec/library',
# 1.9 features
'^library/cmath',
'^library/continuation',
'^library/coverage',
'^library/fiber',
'^library/json',
'^library/minitest',
'^library/prime',
'^library/ripper',
'^library/rake',
'^library/rubygems',
]
set :capi, [
'spec/capi',
'^spec/capi/globals',
'^spec/capi/module',
'^spec/capi/proc',
'^spec/capi/struct'
]
set :command_line, [ 'spec/command_line' ]
set :compiler, [ 'spec/compiler' ]
set :build, [ 'spec/build' ]
# An ordered list of the directories containing specs to run
set :files, get(:language) + get(:core) + get(:library) +
get(:capi) + get(:compiler) + get(:build)
set :ruby, [
'spec/ruby/language',
'spec/ruby/core',
'spec/ruby/library',
# 1.9 features
'^spec/ruby/core/basicobject',
'^spec/ruby/library/cmath',
'^spec/ruby/library/continuation',
'^spec/ruby/library/coverage',
'^spec/ruby/library/fiber',
'^spec/ruby/library/json',
'^spec/ruby/library/minitest',
'^spec/ruby/library/prime',
'^spec/ruby/library/ripper',
'^spec/ruby/library/rake',
'^spec/ruby/library/rubygems',
]
# An ordered list of the directories containing specs to run
# as the CI process.
set :ci_files, [
'spec/ruby/core',
'spec/ruby/language',
'spec/core',
'spec/compiler',
'spec/command_line',
'spec/capi',
'spec/ruby/library/digest',
'spec/build',
# Disable until Kernel#require/load is rewritten
'^spec/core/kernel/require',
'^spec/core/kernel/load',
'^spec/ruby/language/file',
'^spec/ruby/language/line',
'^spec/ruby/core/kernel/require',
'^spec/ruby/core/kernel/load',
'^spec/core/compiledmethod',
'^spec/core/module',
'^spec/capi/globals',
'^spec/capi/module',
'^spec/capi/proc',
'^spec/capi/struct',
# These additional directories will be enabled as the
# specs in them are updated for the C++ VM.
# 'spec/debugger',
]
# The set of substitutions to transform a spec filename
# into a tag filename.
set :tags_patterns, [
[%r(spec/), 'spec/tags/'],
[/_spec.rb$/, '_tags.txt']
]
# Prepended to file names when resolving spec files. Enables
# commands like 'bin/mspec core/array' to be equivalent to
# 'bin/mspec spec/ruby/core/array'
set :prefix, 'spec/ruby'
# The default implementation to run the specs.
set :target, 'bin/rbx'
# Leave out MSpec lines from backtraces
set :backtrace_filter, %r[(mspec/bin|mspec/lib/mspec)]
# Enable language features
MSpec.enable_feature :fork
if Object.const_defined?(:Rubinius) && Rubinius.const_get(:Fiber)
::Fiber = Rubinius::Fiber
MSpec.enable_feature :fiber
end
end