v/vlib/builtin/linux_bare/.checks/checks.v

33 lines
498 B
V
Raw Normal View History

module main
import os
fn failed (msg string) {
println ("!!! failed: $msg")
}
fn passed (msg string) {
println (">>> passed: $msg")
}
fn vcheck(vfile string) {
run_check := "v -user_mod_path . -freestanding run "
if 0 == os.system("$run_check $vfile/${vfile}.v") {
passed(run_check)
} else {
failed(run_check)
}
os.system("ls -lh $vfile/$vfile")
os.system("rm -f $vfile/$vfile")
}
fn main() {
vcheck("linuxsys")
vcheck("string")
2019-12-03 23:40:26 +01:00
vcheck("consts")
vcheck("structs")
exit(0)
}