mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
test v -live message.v
This commit is contained in:
@ -3,12 +3,21 @@ module main
|
||||
import (
|
||||
os
|
||||
testing
|
||||
)
|
||||
)
|
||||
|
||||
fn main() {
|
||||
args := os.args
|
||||
args_string := args[1..].join(' ')
|
||||
if testing.v_build_failing(args_string.all_before('build-examples'), 'examples') {
|
||||
if testing.v_build_failing(
|
||||
args_string.all_before('build-examples'), 'examples')
|
||||
{
|
||||
exit(1)
|
||||
}
|
||||
// Test -live
|
||||
vexe := args[1]
|
||||
ret := os.system('$vexe -live examples/hot_reload/message.v')
|
||||
if ret != 0 {
|
||||
println('-live message.v failed')
|
||||
exit(1)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user