mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: enable checker_error_test on windows
This commit is contained in:
@ -2,13 +2,10 @@ import os
|
|||||||
import term
|
import term
|
||||||
|
|
||||||
fn test_all() {
|
fn test_all() {
|
||||||
$if windows {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
mut total_errors := 0
|
mut total_errors := 0
|
||||||
vexe := os.getenv('VEXE')
|
vexe := os.getenv('VEXE')
|
||||||
vroot := os.dir(vexe)
|
//vroot := os.dir(vexe)
|
||||||
dir := os.join_path(vroot,'vlib/v/checker/tests/inout')
|
dir := 'vlib/v/checker/tests/inout'
|
||||||
files := os.ls(dir) or {
|
files := os.ls(dir) or {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
@ -18,7 +15,7 @@ fn test_all() {
|
|||||||
assert false
|
assert false
|
||||||
}
|
}
|
||||||
for test in tests {
|
for test in tests {
|
||||||
path := os.join_path(dir,test)
|
path := os.join_path(dir, test).replace('\\', '/')
|
||||||
print(test + ' ')
|
print(test + ' ')
|
||||||
program := path.replace('.vv', '.v')
|
program := path.replace('.vv', '.v')
|
||||||
os.cp(path, program) or {
|
os.cp(path, program) or {
|
||||||
|
Reference in New Issue
Block a user