mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v2: compiler_test.v should fail on errors.
This commit is contained in:
parent
d41b7bc813
commit
61f79270a8
@ -5,6 +5,7 @@ fn test_all() {
|
||||
$if windows {
|
||||
return
|
||||
}
|
||||
mut total_errors := 0
|
||||
vexe := os.getenv('VEXE')
|
||||
vroot := os.dir(vexe)
|
||||
dir := os.join_path(vroot,'vlib/v/tests/inout')
|
||||
@ -25,7 +26,7 @@ fn test_all() {
|
||||
panic(err)
|
||||
}
|
||||
os.rm('exe')
|
||||
x := os.exec('v -o exe -cflags "-w" -cg -backend experimental $program') or {
|
||||
x := os.exec('$vexe -o exe -cflags "-w" -cg -backend experimental $program') or {
|
||||
panic(err)
|
||||
}
|
||||
// os.rm(program)
|
||||
@ -50,9 +51,11 @@ fn test_all() {
|
||||
println('\nfound:')
|
||||
println(found)
|
||||
println('============')
|
||||
total_errors++
|
||||
}
|
||||
else {
|
||||
println(term.green('OK'))
|
||||
}
|
||||
}
|
||||
assert total_errors == 0
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
CODE_OF_CONDUCT.md
|
||||
CHANGELOG.md
|
||||
README.md
|
||||
CODE_OF_CONDUCT.md
|
||||
CONTRIBUTING.md
|
||||
README.md
|
||||
|
@ -3,7 +3,8 @@ import os
|
||||
fn main() {
|
||||
vexe := os.getenv('VEXE')
|
||||
vroot := os.dir(vexe)
|
||||
files := os.ls(vroot) or { panic(err) }
|
||||
mut files := os.ls(vroot) or { panic(err) }
|
||||
files.sort()
|
||||
for file in files {
|
||||
if file.ends_with('.md') {
|
||||
println(file)
|
||||
|
Loading…
Reference in New Issue
Block a user