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

Makefile: re-write make test in V

This commit is contained in:
Alexander Medvednikov
2019-08-16 15:05:11 +03:00
parent 5ea4b463bb
commit b188ecf680
7 changed files with 106 additions and 71 deletions

View File

@ -1434,6 +1434,26 @@ fn update_v() {
}
fn test_v() {
test_files := os.walk_ext('.', '_test.v')
for file in test_files {
print(file + ' ')
if os.system('v $file') != 0 {
println('failed')
exit(1)
} else {
println('OK')
}
}
println('\nBuilding examples...')
examples := os.walk_ext('examples', '.v')
for file in examples {
print(file + ' ')
if os.system('v $file') != 0 {
println('failed')
exit(1)
} else {
println('OK')
}
}
}