mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 02:42:05 +00:00
13 lines
320 B
Nim
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"
|