mirror of
https://github.com/daylinmorgan/bbansi.git
synced 2024-11-13 22:17:53 -06:00
tests: add indication that it's compiling a binary
This commit is contained in:
parent
0285a823b8
commit
ddd3242cbd
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ suite "cli":
|
||||||
srcDir = pathToSrc / ".." / "src"
|
srcDir = pathToSrc / ".." / "src"
|
||||||
cmd = "nim c -o:" & cli & " " & (srcDir / "bbansi.nim")
|
cmd = "nim c -o:" & cli & " " & (srcDir / "bbansi.nim")
|
||||||
if not cli.fileExists or getFileInfo(cli).lastWriteTime < getFileInfo(srcDir).lastWriteTime:
|
if not cli.fileExists or getFileInfo(cli).lastWriteTime < getFileInfo(srcDir).lastWriteTime:
|
||||||
check execCmdEx(cmd).exitCode == 0
|
echo " -> compiling test binary"
|
||||||
|
require execCmdEx(cmd).exitCode == 0
|
||||||
test "simple":
|
test "simple":
|
||||||
check "\e[31mRed\e[0m" == cliRun "[red]Red[/]"
|
check "\e[31mRed\e[0m" == cliRun "[red]Red[/]"
|
||||||
check "\e[1;31mRed\e[0m\e[1m Not Red but Bold\e[0m" ==
|
check "\e[1;31mRed\e[0m\e[1m Not Red but Bold\e[0m" ==
|
||||||
|
|
Loading…
Reference in a new issue