@@ -65,6 +65,17 @@ class MSpecScript
65
65
"spec/ruby/core" ,
66
66
]
67
67
68
+ # Specs that need Sulong and should be tested in the Sulong gate
69
+ library_cext_specs = %w[
70
+ spec/ruby/library/etc
71
+ spec/ruby/library/openssl
72
+ spec/ruby/library/rbconfig/sizeof
73
+ spec/ruby/library/syslog
74
+ spec/ruby/library/yaml
75
+ spec/ruby/library/zlib
76
+ spec/ruby/security/cve_2017_17742_spec.rb
77
+ ]
78
+
68
79
set :library , [
69
80
"spec/ruby/library" ,
70
81
@@ -78,23 +89,10 @@ class MSpecScript
78
89
"^spec/ruby/library/win32ole" ,
79
90
80
91
# Tested separately as they need Sulong
81
- "^spec/ruby/library/etc" ,
82
- "^spec/ruby/library/openssl" ,
83
- "^spec/ruby/library/rbconfig/sizeof" ,
84
- "^spec/ruby/library/syslog" ,
85
- "^spec/ruby/library/yaml" ,
86
- "^spec/ruby/library/zlib" ,
92
+ *library_cext_specs . map { |path | "^#{ path } " }
87
93
]
88
94
89
- set :library_cext , [
90
- "spec/ruby/library/etc" ,
91
- "spec/ruby/library/openssl" ,
92
- "spec/ruby/library/rbconfig/sizeof" ,
93
- "spec/ruby/library/syslog" ,
94
- "spec/ruby/library/yaml" ,
95
- "spec/ruby/library/zlib" ,
96
- "spec/ruby/security/cve_2017_17742_spec.rb" ,
97
- ]
95
+ set :library_cext , library_cext_specs
98
96
99
97
set :capi , [
100
98
"spec/ruby/optional/capi"
0 commit comments