adding some failing caas tests
This commit is contained in:
parent
a8e12afc76
commit
4864447ba4
3 changed files with 21 additions and 2 deletions
9
tests/caas/compile-then-def.txt
Normal file
9
tests/caas/compile-then-def.txt
Normal file
|
|
@ -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
|
||||
7
tests/caas/def-then-compile.txt
Normal file
7
tests/caas/def-then-compile.txt
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
main.nim
|
||||
> idetools --track:main.nim,5,18 --def main.nim
|
||||
strutils.toUpper
|
||||
SuccessX
|
||||
> c
|
||||
SuccessX
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue