1
+ #[ cfg_attr( not( feature = "online_tests" ) , ignore) ]
1
2
#[ test]
2
3
fn test_script_explicit ( ) {
3
4
let out = rust_script ! ( "-d" , "boolinator" , "tests/data/script-explicit.rs" ) . unwrap ( ) ;
@@ -7,6 +8,7 @@ fn test_script_explicit() {
7
8
. unwrap ( )
8
9
}
9
10
11
+ #[ cfg_attr( not( feature = "online_tests" ) , ignore) ]
10
12
#[ test]
11
13
fn test_script_full_block ( ) {
12
14
let out = rust_script ! ( "tests/data/script-full-block.rs" ) . unwrap ( ) ;
@@ -16,6 +18,7 @@ fn test_script_full_block() {
16
18
. unwrap ( )
17
19
}
18
20
21
+ #[ cfg_attr( not( feature = "online_tests" ) , ignore) ]
19
22
#[ test]
20
23
fn test_script_full_line ( ) {
21
24
let out = rust_script ! ( "tests/data/script-full-line.rs" ) . unwrap ( ) ;
@@ -25,6 +28,7 @@ fn test_script_full_line() {
25
28
. unwrap ( )
26
29
}
27
30
31
+ #[ cfg_attr( not( feature = "online_tests" ) , ignore) ]
28
32
#[ test]
29
33
fn test_script_full_line_without_main ( ) {
30
34
let out = rust_script ! ( "tests/data/script-full-line-without-main.rs" ) . unwrap ( ) ;
@@ -61,6 +65,7 @@ fn test_script_no_deps() {
61
65
. unwrap ( )
62
66
}
63
67
68
+ #[ cfg_attr( not( feature = "online_tests" ) , ignore) ]
64
69
#[ test]
65
70
fn test_script_short ( ) {
66
71
let out = rust_script ! ( "tests/data/script-short.rs" ) . unwrap ( ) ;
@@ -70,6 +75,7 @@ fn test_script_short() {
70
75
. unwrap ( )
71
76
}
72
77
78
+ #[ cfg_attr( not( feature = "online_tests" ) , ignore) ]
73
79
#[ test]
74
80
fn test_script_short_without_main ( ) {
75
81
let out = rust_script ! ( "tests/data/script-short-without-main.rs" ) . unwrap ( ) ;
@@ -133,6 +139,7 @@ fn test_script_including_relative() {
133
139
. unwrap ( )
134
140
}
135
141
142
+ #[ cfg_attr( not( feature = "online_tests" ) , ignore) ]
136
143
#[ test]
137
144
fn script_with_same_name_as_dependency ( ) {
138
145
let out = rust_script ! ( "tests/data/time.rs" ) . unwrap ( ) ;
@@ -150,6 +157,7 @@ fn script_without_main_question_mark() {
150
157
. starts_with( "Error: Os { code: 2, kind: NotFound, message:" ) ) ;
151
158
}
152
159
160
+ #[ cfg_attr( not( feature = "online_tests" ) , ignore) ]
153
161
#[ test]
154
162
fn test_script_async_main ( ) {
155
163
let out = rust_script ! ( "tests/data/script-async-main.rs" ) . unwrap ( ) ;
@@ -159,6 +167,7 @@ fn test_script_async_main() {
159
167
. unwrap ( )
160
168
}
161
169
170
+ #[ cfg_attr( not( feature = "online_tests" ) , ignore) ]
162
171
#[ test]
163
172
fn test_pub_fn_main ( ) {
164
173
let out = rust_script ! ( "tests/data/pub-fn-main.rs" ) . unwrap ( ) ;
@@ -177,6 +186,7 @@ fn test_cargo_target_dir_env() {
177
186
. unwrap ( )
178
187
}
179
188
189
+ #[ cfg_attr( not( feature = "online_tests" ) , ignore) ]
180
190
#[ test]
181
191
fn test_outer_line_doc ( ) {
182
192
let out = rust_script ! ( "tests/data/outer-line-doc.rs" ) . unwrap ( ) ;
@@ -262,6 +272,7 @@ fn test_same_flags() {
262
272
}
263
273
264
274
#[ cfg( unix) ]
275
+ #[ cfg_attr( not( feature = "online_tests" ) , ignore) ]
265
276
#[ test]
266
277
fn test_extern_c_main ( ) {
267
278
let out = rust_script ! ( "tests/data/extern-c-main.rs" ) . unwrap ( ) ;
0 commit comments