Files
Nim/tests/vm/tgorge.nim
2016-10-24 20:10:10 +02:00

13 lines
320 B
Nim

import os
template getScriptDir(): string =
parentDir(instantiationInfo(-1, true).filename)
const
execName = when defined(windows): "tgorge.bat" else: "sh tgorge.sh"
relOutput = gorge(execName)
absOutput = gorge(getScriptDir() / execName)
doAssert relOutput == "gorge test"
doAssert absOutput == "gorge test"