Merge pull request #4872 from flyx/gorgefix

Fixes #4871
This commit is contained in:
Andreas Rumpf
2016-10-24 17:40:32 +02:00
committed by GitHub
5 changed files with 23 additions and 4 deletions

1
tests/vm/tgorge.bat Normal file
View File

@@ -0,0 +1 @@
@echo gorge test

12
tests/vm/tgorge.nim Normal file
View File

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

2
tests/vm/tgorge.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
echo "gorge test"