mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-02 03:54:44 +00:00
1
tests/vm/tgorge.bat
Normal file
1
tests/vm/tgorge.bat
Normal file
@@ -0,0 +1 @@
|
||||
@echo gorge test
|
||||
12
tests/vm/tgorge.nim
Normal file
12
tests/vm/tgorge.nim
Normal 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
2
tests/vm/tgorge.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
echo "gorge test"
|
||||
Reference in New Issue
Block a user