Skip to content
Newer
Older
100644 112 lines (93 sloc) 2.6 KB
58a50ec Added experimental 2.0 support.
Brian Ford authored
1 # vim: filetype=ruby
2
3 class MSpecScript
4 # Language features specs
5 set :language, [
6 'spec/ruby/language',
7 'spec/language'
8 ]
9
10 # Core library specs
11 set :core, [
12 'spec/ruby/core',
13 'spec/core',
14 ]
15
e25c6b9 @brixen Updated mspec excludes for 2.0 mode.
brixen authored
16 set :obsolete_library, [
58a50ec Added experimental 2.0 support.
Brian Ford authored
17 # obsolete libraries
18 '^library/cgi-lib',
19 '^library/date2',
20 '^library/enumerator',
21 '^library/eregex',
22 '^library/finalize',
23 '^library/ftools',
24 '^library/generator',
25 '^library/getopts',
26 '^library/importenv',
27 '^library/jcode',
28 '^library/mailread',
29 '^library/parsearg',
30 '^library/parsedate',
31 '^library/ping',
32 '^library/readbytes',
33 '^library/rubyunit',
34 '^library/runit',
35 '^library/soap',
36 '^library/wsdl',
37 '^library/xsd',
38 '^library/Win32API',
39
40 '^library/test/unit/collector',
41 '^library/test/unit/ui',
42 '^library/test/unit/util',
43
44 '^library/dl', # reimplemented and API changed
45 ]
46
e25c6b9 @brixen Updated mspec excludes for 2.0 mode.
brixen authored
47 set :unsupported_library, [
48 # Libraries that Rubinius does not support
49
50 '^library/mathn'
51 ]
52
53 # Standard library specs
54 set :library, [
55 'spec/ruby/library',
56 'spec/library',
57 ] + get(:obsolete_library) + get(:unsupported_library)
58
58a50ec Added experimental 2.0 support.
Brian Ford authored
59 # An ordered list of the directories containing specs to run
60 set :files, get(:language) + get(:core) + get(:library) +
61 get(:capi) + get(:compiler) + get(:build) + get(:command_line)
62
63 set :ruby, [
64 'spec/ruby/language',
65 'spec/ruby/core',
66 'spec/ruby/library',
e25c6b9 @brixen Updated mspec excludes for 2.0 mode.
brixen authored
67 ] + get(:obsolete_library) + get(:unsupported_library)
58a50ec Added experimental 2.0 support.
Brian Ford authored
68
69 # An ordered list of the directories containing specs to run
70 # as the CI process.
71 set :ci_files, [
72 'spec/ruby/core',
73 'spec/ruby/language',
74 'spec/ruby/command_line',
75 'spec/core',
76 'spec/language',
77 'spec/compiler',
78 'spec/command_line',
79 'spec/ruby/optional/capi',
80 'spec/ruby/library',
81 'spec/library',
82
83 'spec/build',
84
85 # Excluded because the specs are extremely system dependent.
86 '^spec/ruby/library/syslog',
e25c6b9 @brixen Updated mspec excludes for 2.0 mode.
brixen authored
87 ] + get(:obsolete_library) + get(:unsupported_library)
58a50ec Added experimental 2.0 support.
Brian Ford authored
88
89 # The set of substitutions to transform a spec filename
90 # into a tag filename.
91 set :tags_patterns, [
92 [%r(spec/), 'spec/tags/20/'],
93 [/_spec.rb$/, '_tags.txt']
94 ]
95
96 # Enable language features
97 MSpec.enable_feature :encoding
98
99 # These are encoding-aware methods backported to 1.8.7+ (eg String#bytes)
100 MSpec.enable_feature :encoding_transition
ec8d495 Update rbx-specific mspec config files.
Brian Ford authored
101
102 if Rubinius::Config["hash.hamt"]
103 MSpec.enable_feature :hash_hamt
104 else
105 MSpec.enable_feature :hash_bucket
106 end
e25c6b9 @brixen Updated mspec excludes for 2.0 mode.
brixen authored
107
108 module ::Kernel
109 alias_method :require, :gem_original_require
110 end
58a50ec Added experimental 2.0 support.
Brian Ford authored
111 end
Something went wrong with that request. Please try again.