summary refs log tree commit diff stats
path: root/tests/vm/tgorge.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vm/tgorge.nim')
-rw-r--r--tests/vm/tgorge.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/vm/tgorge.nim b/tests/vm/tgorge.nim
new file mode 100644
index 000000000..596f5d667
--- /dev/null
+++ b/tests/vm/tgorge.nim
@@ -0,0 +1,12 @@
+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"