Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Apr 8, 2024
1 parent 284dbf0 commit bbd93ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test1.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ when not defined skipbuild:
var addons = ["myaddon", "myobject", "mypromise", "myexceptions"]
test "can build addons with node-gyp":
for addonName in addons:
let status = execCmdEx("denim build ./tests/" & addonName & ".nim --yes")
let status = execCmdEx("denim build ./tests/" & addonName & ".nim -y")
echo "[OK] " & addonName & ".nim"
if status.exitCode != 0:
echo status.output
assert status.exitCode == 0

test "can build addons with CMake":
for addonName in addons:
let status = execCmdEx("denim build ./tests/" & addonName & ".nim --cmake --yes")
let status = execCmdEx("denim build ./tests/" & addonName & ".nim --cmake -y")
echo "[OK] " & addonName & ".nim"
if status.exitCode != 0:
echo status.output
Expand Down

0 comments on commit bbd93ed

Please sign in to comment.