mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: add -raw-vsh-tmp-prefix tmp flag, to allow for executing scripts without .vsh extension (#15829)
This commit is contained in:
@@ -263,6 +263,22 @@ fn get_all_commands() []Command {
|
||||
rmfile: 'v.c'
|
||||
}
|
||||
}
|
||||
$if !windows {
|
||||
res << Command{
|
||||
line: '$vexe -raw-vsh-tmp-prefix tmp vlib/v/tests/script_with_no_extension'
|
||||
okmsg: 'V can crun a script, that lacks a .vsh extension'
|
||||
runcmd: .execute
|
||||
expect: 'Test\n'
|
||||
rmfile: 'vlib/v/tests/tmp.script_with_no_extension'
|
||||
}
|
||||
|
||||
res << Command{
|
||||
line: '$vexe -raw-vsh-tmp-prefix tmp run vlib/v/tests/script_with_no_extension'
|
||||
okmsg: 'V can run a script, that lacks a .vsh extension'
|
||||
runcmd: .execute
|
||||
expect: 'Test\n'
|
||||
}
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user