@@ -15,13 +15,16 @@ use tempfile::TempDir;
15
15
use wasmer_integration_tests_cli:: get_wasmer_path;
16
16
17
17
const RUST_LOG : & str = "info,wasmer_wasi::runners=debug" ;
18
- // const RUST_LOG: &str = "info,wasmer_wasi=trace";
19
18
20
19
mod webc_on_disk {
21
20
use super :: * ;
22
21
use rand:: Rng ;
23
22
24
23
#[ test]
24
+ #[ cfg_attr(
25
+ all( target_env = "musl" , target_os = "linux" ) ,
26
+ ignore = "wasmer run-unstable segfaults on musl"
27
+ ) ]
25
28
fn wasi_runner ( ) {
26
29
let assert = Command :: new ( get_wasmer_path ( ) )
27
30
. arg ( "run-unstable" )
@@ -35,6 +38,10 @@ mod webc_on_disk {
35
38
}
36
39
37
40
#[ test]
41
+ #[ cfg_attr(
42
+ all( target_env = "musl" , target_os = "linux" ) ,
43
+ ignore = "wasmer run-unstable segfaults on musl"
44
+ ) ]
38
45
fn wasi_runner_with_mounted_directories ( ) {
39
46
let temp = TempDir :: new ( ) . unwrap ( ) ;
40
47
std:: fs:: write ( temp. path ( ) . join ( "index.js" ) , "console.log('Hello, World!')" ) . unwrap ( ) ;
@@ -52,6 +59,10 @@ mod webc_on_disk {
52
59
53
60
#[ test]
54
61
#[ ignore = "WASI runners only give you access to the webc fs for now" ]
62
+ #[ cfg_attr(
63
+ all( target_env = "musl" , target_os = "linux" ) ,
64
+ ignore = "wasmer run-unstable segfaults on musl"
65
+ ) ]
55
66
fn wasi_runner_with_mounted_directories_and_webc_volumes ( ) {
56
67
let temp = TempDir :: new ( ) . unwrap ( ) ;
57
68
std:: fs:: write ( temp. path ( ) . join ( "main.py" ) , "print('Hello, World!')" ) . unwrap ( ) ;
@@ -68,6 +79,10 @@ mod webc_on_disk {
68
79
}
69
80
70
81
#[ test]
82
+ #[ cfg_attr(
83
+ all( target_env = "musl" , target_os = "linux" ) ,
84
+ ignore = "wasmer run-unstable segfaults on musl"
85
+ ) ]
71
86
fn webc_files_with_multiple_commands_require_an_entrypoint_flag ( ) {
72
87
let assert = Command :: new ( get_wasmer_path ( ) )
73
88
. arg ( "run-unstable" )
@@ -79,6 +94,10 @@ mod webc_on_disk {
79
94
}
80
95
81
96
#[ test]
97
+ #[ cfg_attr(
98
+ all( target_env = "musl" , target_os = "linux" ) ,
99
+ ignore = "wasmer run-unstable segfaults on musl"
100
+ ) ]
82
101
fn wasi_runner_with_env_vars ( ) {
83
102
let assert = Command :: new ( get_wasmer_path ( ) )
84
103
. arg ( "run-unstable" )
@@ -94,6 +113,10 @@ mod webc_on_disk {
94
113
}
95
114
96
115
#[ test]
116
+ #[ cfg_attr(
117
+ all( target_env = "musl" , target_os = "linux" ) ,
118
+ ignore = "wasmer run-unstable segfaults on musl"
119
+ ) ]
97
120
fn wcgi_runner ( ) {
98
121
// Start the WCGI server in the background
99
122
let port = rand:: thread_rng ( ) . gen_range ( 10_000_u16 ..u16:: MAX ) ;
@@ -123,6 +146,10 @@ mod webc_on_disk {
123
146
}
124
147
125
148
#[ test]
149
+ #[ cfg_attr(
150
+ all( target_env = "musl" , target_os = "linux" ) ,
151
+ ignore = "wasmer run-unstable segfaults on musl"
152
+ ) ]
126
153
fn wcgi_runner_with_mounted_directories ( ) {
127
154
let temp = TempDir :: new ( ) . unwrap ( ) ;
128
155
std:: fs:: write ( temp. path ( ) . join ( "file.txt" ) , "Hello, World!" ) . unwrap ( ) ;
@@ -155,6 +182,10 @@ mod wasm_on_disk {
155
182
use predicates:: str:: contains;
156
183
157
184
#[ test]
185
+ #[ cfg_attr(
186
+ all( target_env = "musl" , target_os = "linux" ) ,
187
+ ignore = "wasmer run-unstable segfaults on musl"
188
+ ) ]
158
189
fn wasi_executable ( ) {
159
190
let assert = Command :: new ( get_wasmer_path ( ) )
160
191
. arg ( "run-unstable" )
@@ -168,6 +199,10 @@ mod wasm_on_disk {
168
199
}
169
200
170
201
#[ test]
202
+ #[ cfg_attr(
203
+ all( target_env = "musl" , target_os = "linux" ) ,
204
+ ignore = "wasmer run-unstable segfaults on musl"
205
+ ) ]
171
206
fn no_abi ( ) {
172
207
let assert = Command :: new ( get_wasmer_path ( ) )
173
208
. arg ( "run-unstable" )
@@ -178,6 +213,10 @@ mod wasm_on_disk {
178
213
}
179
214
180
215
#[ test]
216
+ #[ cfg_attr(
217
+ all( target_env = "musl" , target_os = "linux" ) ,
218
+ ignore = "wasmer run-unstable segfaults on musl"
219
+ ) ]
181
220
fn error_if_no_start_function_found ( ) {
182
221
let assert = Command :: new ( get_wasmer_path ( ) )
183
222
. arg ( "run-unstable" )
@@ -190,6 +229,10 @@ mod wasm_on_disk {
190
229
}
191
230
192
231
#[ test]
232
+ #[ cfg_attr(
233
+ all( target_env = "musl" , target_os = "linux" ) ,
234
+ ignore = "wasmer run-unstable segfaults on musl"
235
+ ) ]
193
236
fn pre_compiled ( ) {
194
237
let temp = TempDir :: new ( ) . unwrap ( ) ;
195
238
let dest = temp. path ( ) . join ( "qjs.wasmu" ) ;
@@ -218,6 +261,10 @@ mod wasm_on_disk {
218
261
}
219
262
220
263
#[ test]
264
+ #[ cfg_attr(
265
+ all( target_env = "musl" , target_os = "linux" ) ,
266
+ ignore = "wasmer run-unstable segfaults on musl"
267
+ ) ]
221
268
fn wasmer_package_directory ( ) {
222
269
let temp = TempDir :: new ( ) . unwrap ( ) ;
223
270
std:: fs:: copy ( fixtures:: qjs ( ) , temp. path ( ) . join ( "qjs.wasm" ) ) . unwrap ( ) ;
@@ -238,6 +285,10 @@ mod remote_webc {
238
285
use super :: * ;
239
286
240
287
#[ test]
288
+ #[ cfg_attr(
289
+ all( target_env = "musl" , target_os = "linux" ) ,
290
+ ignore = "wasmer run-unstable segfaults on musl"
291
+ ) ]
241
292
fn quickjs_as_package_name ( ) {
242
293
let assert = Command :: new ( get_wasmer_path ( ) )
243
294
. arg ( "run-unstable" )
@@ -253,6 +304,10 @@ mod remote_webc {
253
304
}
254
305
255
306
#[ test]
307
+ #[ cfg_attr(
308
+ all( target_env = "musl" , target_os = "linux" ) ,
309
+ ignore = "wasmer run-unstable segfaults on musl"
310
+ ) ]
256
311
fn quickjs_as_url ( ) {
257
312
let assert = Command :: new ( get_wasmer_path ( ) )
258
313
. arg ( "run-unstable" )
0 commit comments