1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: fix some noise in the output of v test-all

This commit is contained in:
Delyan Angelov
2023-08-03 23:12:45 +03:00
parent 598992b208
commit 5bb02b3dd7
5 changed files with 24 additions and 17 deletions

View File

@ -142,25 +142,28 @@ fn get_all_commands() []Command {
line: '${vexe} run examples/v_script.vsh > /dev/null'
okmsg: 'V can run the .VSH script file examples/v_script.vsh'
}
// Note: -experimental is used here, just to suppress the warningss,
// that are otherwise printed by the native backend,
// until globals and hash statements *are implemented*:
$if linux {
res << Command{
line: '${vexe} -b native run examples/native/hello_world.v > /dev/null'
line: '${vexe} -experimental -b native run examples/native/hello_world.v > /dev/null'
okmsg: 'V compiles and runs examples/native/hello_world.v on the native backend for linux'
}
}
// only compilation:
res << Command{
line: '${vexe} -os linux -b native -o hw.linux examples/hello_world.v'
line: '${vexe} -os linux -experimental -b native -o hw.linux examples/hello_world.v'
okmsg: 'V compiles hello_world.v on the native backend for linux'
rmfile: 'hw.linux'
}
res << Command{
line: '${vexe} -os macos -b native -o hw.macos examples/hello_world.v'
line: '${vexe} -os macos -experimental -b native -o hw.macos examples/hello_world.v'
okmsg: 'V compiles hello_world.v on the native backend for macos'
rmfile: 'hw.macos'
}
res << Command{
line: '${vexe} -os windows -b native -o hw.exe examples/hello_world.v'
line: '${vexe} -os windows -experimental -b native -o hw.exe examples/hello_world.v'
okmsg: 'V compiles hello_world.v on the native backend for windows'
rmfile: 'hw.exe'
}