add getCurrentCompilerExe to vmops (eg allows to get nim compiler at CT); add tests for vmops (#9925)

This commit is contained in:
Timothee Cour 2018-12-18 00:07:12 -08:00 • committed by Andreas Rumpf
commit c4e3c4ca2d
6 changed files with 65 additions and 2 deletions

View file

@ -10,6 +10,8 @@ import os
template getScriptDir(): string =
parentDir(instantiationInfo(-1, true).filename)
# See also simpler test in Nim/tests/vm/tvmops.nim for a simpler
# cross platform way.
block gorge:
const
execName = when defined(windows): "tgorge.bat" else: "./tgorge.sh"