Skip to content

Commit

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

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

test "can run myaddon (NodeJS)":
Expand All @@ -37,5 +39,4 @@ test "can run myobject (NodeJS)":

test "can run myexceptions (NodeJS)":
let status = execCmdEx("node tests/js/myexceptions.js")
echo status.output.strip()
assert status.exitCode == 1

0 comments on commit 2741eec

Please sign in to comment.