tests: add indication that it's compiling a binary

This commit is contained in:
Daylin Morgan 2023-09-18 12:59:01 -05:00
parent 0285a823b8
commit ddd3242cbd
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -20,7 +20,8 @@ suite "cli":
srcDir = pathToSrc / ".." / "src"
cmd = "nim c -o:" & cli & " " & (srcDir / "bbansi.nim")
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":
check "\e[31mRed\e[0m" == cliRun "[red]Red[/]"
check "\e[1;31mRed\e[0m\e[1m Not Red but Bold\e[0m" ==