Skip to content

Commit 252df04

Browse files
committed
ci: use -silent for the longer test runs (suppress most OK lines, to reduce scrolling on failure)
1 parent 0f58a02 commit 252df04

File tree

3 files changed

+30
-23
lines changed

3 files changed

+30
-23
lines changed

ci/freebsd_ci.vsh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ fn build_fast_script() {
2929
}
3030

3131
fn check_math() {
32-
exec('v test vlib/math')
32+
exec('v -silent test vlib/math')
3333
println('Test the math module, using only the pure V versions,')
3434
println(' without the .c.v overrides.')
35-
exec('v -exclude @vlib/math/*.c.v test vlib/math')
35+
exec('v -silent -exclude @vlib/math/*.c.v test vlib/math')
3636
}
3737
3838
fn check_compress() {
39-
exec('v test vlib/compress')
39+
exec('v -silent test vlib/compress')
4040
}
4141
4242
fn run_essential_tests() {
4343
if common.is_github_job {
44-
exec('VTEST_JUST_ESSENTIAL=1 v test-self')
44+
exec('VTEST_JUST_ESSENTIAL=1 v -silent test-self')
4545
} else {
4646
exec('VTEST_JUST_ESSENTIAL=1 v -progress test-self')
4747
}

ci/linux_ci.vsh

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import common { Task, exec }
55
//
66
fn all_code_is_formatted() {
77
if common.is_github_job {
8-
exec('VJOBS=1 v test-cleancode')
8+
exec('VJOBS=1 v -silent test-cleancode')
99
} else {
1010
exec('v -progress test-cleancode')
1111
}
@@ -18,20 +18,20 @@ fn verify_v_test_works() {
1818
}
1919

2020
fn test_pure_v_math_module() {
21-
exec('v -exclude @vlib/math/*.c.v test vlib/math/')
21+
exec('v -silent -exclude @vlib/math/*.c.v test vlib/math/')
2222
}
2323
2424
fn self_tests() {
2525
if common.is_github_job {
26-
exec('VJOBS=1 v test-self vlib')
26+
exec('VJOBS=1 v -silent test-self vlib')
2727
} else {
2828
exec('v -progress test-self vlib')
2929
}
3030
}
3131
3232
fn build_examples() {
3333
if common.is_github_job {
34-
exec('v build-examples')
34+
exec('v -silent build-examples')
3535
} else {
3636
exec('v -progress build-examples')
3737
}
@@ -129,11 +129,11 @@ fn v_self_compilation_usecache_tcc() {
129129
}
130130
131131
fn test_password_input_tcc() {
132-
exec('v test examples/password/')
132+
exec('v -silent test examples/password/')
133133
}
134134
135135
fn test_readline_tcc() {
136-
exec('v test examples/readline/')
136+
exec('v -silent test examples/readline/')
137137
}
138138
139139
fn test_leak_detector_tcc() {
@@ -178,12 +178,17 @@ fn run_sanitizers_gcc() {
178178
}
179179
180180
fn v_self_compilation_gcc() {
181-
exec('v -o v2 cmd/v && ./v2 -o v3 cmd/v && ./v3 -o v4 cmd/v')
181+
exec('v -o v2 cmd/v')
182+
exec('./v2 -o v3 cmd/v')
183+
exec('./v3 -o v4 cmd/v')
182184
}
183185
184186
fn v_self_compilation_usecache_gcc() {
185187
exec('unset VFLAGS')
186-
exec('v -usecache examples/hello_world.v && examples/hello_world')
188+
189+
exec('v -usecache examples/hello_world.v')
190+
exec('examples/hello_world')
191+
187192
exec('v -o v2 -usecache cmd/v')
188193
exec('./v2 -o v3 -usecache cmd/v')
189194
exec('./v3 version')
@@ -203,11 +208,12 @@ fn self_tests_gcc() {
203208
}
204209
205210
fn self_tests_prod_gcc() {
206-
exec('v -o vprod -prod cmd/v && ./vprod test-self vlib')
211+
exec('v -o vprod -prod cmd/v')
212+
exec('./vprod -silent test-self vlib')
207213
}
208214
209215
fn self_tests_cstrict_gcc() {
210-
exec('VTEST_JUST_ESSENTIAL=1 V_CI_CSTRICT=1 v -cc gcc -cstrict test-self vlib')
216+
exec('VTEST_JUST_ESSENTIAL=1 V_CI_CSTRICT=1 v -cc gcc -cstrict -silent test-self vlib')
211217
}
212218
213219
fn build_examples_gcc() {
@@ -313,11 +319,12 @@ fn self_tests_clang() {
313319
}
314320
315321
fn self_tests_vprod_clang() {
316-
exec('v -o vprod -prod cmd/v && ./vprod test-self vlib')
322+
exec('v -o vprod -prod cmd/v')
323+
exec('./vprod -silent test-self vlib')
317324
}
318325
319326
fn self_tests_cstrict_clang() {
320-
exec('VTEST_JUST_ESSENTIAL=1 V_CI_CSTRICT=1 ./vprod -cstrict test-self vlib')
327+
exec('VTEST_JUST_ESSENTIAL=1 V_CI_CSTRICT=1 ./vprod -cstrict -silent test-self vlib')
321328
}
322329
323330
fn build_examples_clang() {

ci/macos_ci.vsh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fn build_with_cstrict() {
1515

1616
fn all_code_is_formatted() {
1717
if common.is_github_job {
18-
exec('VJOBS=1 v test-cleancode')
18+
exec('VJOBS=1 v -silent test-cleancode')
1919
} else {
2020
exec('v -progress test-cleancode')
2121
}
@@ -42,20 +42,20 @@ fn install_iconv() {
4242
}
4343

4444
fn test_pure_v_math_module() {
45-
exec('v -progress -exclude @vlib/math/*.c.v test vlib/math/')
45+
exec('v -silent -exclude @vlib/math/*.c.v test vlib/math/')
4646
}
4747
4848
fn self_tests() {
4949
if common.is_github_job {
50-
exec('VJOBS=1 v test-self vlib')
50+
exec('VJOBS=1 v -silent test-self vlib')
5151
} else {
5252
exec('v -progress test-self vlib')
5353
}
5454
}
5555
5656
fn build_examples() {
5757
if common.is_github_job {
58-
exec('v build-examples')
58+
exec('v -silent build-examples')
5959
} else {
6060
exec('v -progress build-examples')
6161
}
@@ -65,7 +65,7 @@ fn build_examples_v_compiled_with_tcc() {
6565
exec('v -o vtcc -cc tcc cmd/v')
6666
if common.is_github_job {
6767
// ensure that examples/veb/veb_example.v etc compiles
68-
exec('./vtcc build-examples')
68+
exec('./vtcc -silent build-examples')
6969
} else {
7070
exec('./vtcc -progress build-examples')
7171
}
@@ -104,11 +104,11 @@ fn v_self_compilation_parallel_cc() {
104104
}
105105
106106
fn test_password_input() {
107-
exec('v -progress test examples/password/')
107+
exec('v -silent test examples/password/')
108108
}
109109
110110
fn test_readline() {
111-
exec('v -progress test examples/readline/')
111+
exec('v -silent test examples/readline/')
112112
}
113113
114114
const all_tasks = {

0 commit comments

Comments
 (0)