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

fix v test v

This commit is contained in:
Alexander Medvednikov
2019-08-17 01:15:35 +03:00
parent 1c1c3925fc
commit 37a607dce5
2 changed files with 4 additions and 12 deletions

View File

@@ -1434,10 +1434,11 @@ fn update_v() {
}
fn test_v() {
vexe := os.args[0]
test_files := os.walk_ext('.', '_test.v')
for file in test_files {
print(file + ' ')
if os.system('v $file') != 0 {
if os.system('$vexe $file') != 0 {
println('failed')
exit(1)
} else {
@@ -1448,7 +1449,7 @@ fn test_v() {
examples := os.walk_ext('examples', '.v')
for file in examples {
print(file + ' ')
if os.system('v $file') != 0 {
if os.system('$vexe $file') != 0 {
println('failed')
exit(1)
} else {