mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
20 lines
351 B
V
20 lines
351 B
V
import os
|
|
import term
|
|
|
|
fn test_all() {
|
|
$if !linux {
|
|
println('Valgrind tests can only be run on Linux.')
|
|
exit(0)
|
|
}
|
|
exe := os.executable()
|
|
dir := os.dir(exe)
|
|
println(dir)
|
|
println(111)
|
|
// files := os.ls('$dir/vlib/v/tests/valgrind/') or {
|
|
files := os.ls(dir) or {
|
|
panic(err)
|
|
}
|
|
tests := files.filter(it.ends_with('.vv'))
|
|
println(tests)
|
|
}
|