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

make sure "v test v" is run in the V repo

This commit is contained in:
Alexander Medvednikov 2019-09-18 14:43:44 +03:00
parent d180324413
commit 1c6cbdace5

View File

@ -960,6 +960,10 @@ fn install_v(args[]string) {
}
fn (v &V) test_v() {
if !os.dir_exists('vlib') {
println('run "v test v" next to the vlib/ directory')
exit(1)
}
args := env_vflags_and_os_args()
vexe := args[0]
// Emily: pass args from the invocation to the test