diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-05-04 02:17:52 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-05-04 02:17:52 +0300 |
commit | 4864447ba4e9541f8987232ca3c3e611f0e69ede (patch) | |
tree | 79336f482195ca553fd15d99b1586d2279934ceb /tests | |
parent | a8e12afc76125fd7931e08d56d17c7b40c6e2065 (diff) | |
download | Nim-4864447ba4e9541f8987232ca3c3e611f0e69ede.tar.gz |
adding some failing caas tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/caas/compile-then-def.txt | 9 | ||||
-rw-r--r-- | tests/caas/def-then-compile.txt | 7 | ||||
-rw-r--r-- | tests/caasdriver.nim | 7 |
3 files changed, 21 insertions, 2 deletions
diff --git a/tests/caas/compile-then-def.txt b/tests/caas/compile-then-def.txt new file mode 100644 index 000000000..a5080c50d --- /dev/null +++ b/tests/caas/compile-then-def.txt @@ -0,0 +1,9 @@ +main.nim +> c +SuccessX +> idetools --track:main.nim,5,18 --def main.nim +strutils.toUpper +SuccessX +> idetools --track:main.nim,5,18 --def main.nim +strutils.toUpper +SuccessX diff --git a/tests/caas/def-then-compile.txt b/tests/caas/def-then-compile.txt new file mode 100644 index 000000000..efa4dcbb3 --- /dev/null +++ b/tests/caas/def-then-compile.txt @@ -0,0 +1,7 @@ +main.nim +> idetools --track:main.nim,5,18 --def main.nim +strutils.toUpper +SuccessX +> c +SuccessX + diff --git a/tests/caasdriver.nim b/tests/caasdriver.nim index ee2e5b571..3f3d3671e 100644 --- a/tests/caasdriver.nim +++ b/tests/caasdriver.nim @@ -6,8 +6,8 @@ type proc dirname(path: string): string = path.splitPath()[0] -const - TesterDir = CurrentSourcePath.dirname +var + TesterDir = getAppDir() NimrodBin = TesterDir / "../bin/nimrod" proc startNimrodSession*(project: string): TNimrodSession = @@ -26,6 +26,9 @@ proc doCommand*(session: var TNimrodSession, command: string): string = if session.nim.outputStream.readLine(line): if line.string == "": break result.add(line.string & "\n") + else: + result = "FAILED TO EXECUTE: " & command & "\n" & result + break proc close(session: var TNimrodSession) {.destructor.} = session.nim.close |