From 2741eec08249855cd5345800003aa170622a25d3 Mon Sep 17 00:00:00 2001 From: George Lemon Date: Mon, 8 Apr 2024 12:42:03 +0300 Subject: [PATCH] update Signed-off-by: George Lemon --- tests/test1.nim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test1.nim b/tests/test1.nim index 495f12d..01dd95f 100644 --- a/tests/test1.nim +++ b/tests/test1.nim @@ -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)": @@ -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 \ No newline at end of file