mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tools: add a test for v -os wasm32_emscripten examples/2048
in v test-all
This commit is contained in:
parent
30d4e25385
commit
d97423d385
@ -180,6 +180,15 @@ fn get_all_commands() []Command {
|
|||||||
okmsg: 'V can compile 2048 with -skip-unused.'
|
okmsg: 'V can compile 2048 with -skip-unused.'
|
||||||
rmfile: 'examples/2048/2048'
|
rmfile: 'examples/2048/2048'
|
||||||
}
|
}
|
||||||
|
if _ := os.find_abs_path_of_executable('emcc') {
|
||||||
|
res << Command{
|
||||||
|
line: '${vexe} -os wasm32_emscripten examples/2048'
|
||||||
|
okmsg: 'V can compile 2048 with -os wasm32_emscripten, using emcc.'
|
||||||
|
rmfile: 'examples/2048/2048'
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
println('> emcc not found, skipping `v -os wasm32_emscripten examples/2048`.')
|
||||||
|
}
|
||||||
res << Command{
|
res << Command{
|
||||||
line: '${vexe} -skip-unused -live examples/hot_reload/bounce.v'
|
line: '${vexe} -skip-unused -live examples/hot_reload/bounce.v'
|
||||||
okmsg: 'V can compile the hot code reloading bounce.v example with both: -skip-unused -live'
|
okmsg: 'V can compile the hot code reloading bounce.v example with both: -skip-unused -live'
|
||||||
|
Loading…
Reference in New Issue
Block a user