This repository has been archived by the owner on Mar 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
default.mspec
109 lines (98 loc) · 5.01 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
# -*-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/ensure_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/encoding/converter/",
"^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/abort_on_exception_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"
if ENV["CAPI_SPECS"] == "1"
set :files, capi_files
elsif ENV["FFI_SPECS"] == "1"
set :files, ffi_files
else
set :files, lang_files + core_files + lib_files + cmdline_files + ffi_files
end
MSpec.enable_feature :fiber_library
MSpec.enable_feature :continuation_library
MSpec.enable_feature :encoding
# 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