From 1e303100f8ca32e60b154bf997a9102f36eb23d0 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 12 Feb 2020 13:22:26 +0100 Subject: [PATCH] Revert "remove dead code test_nimhcr_integration.(bat,sh) (#13388)" (#13396) This reverts commit 90491ea0a98aaca198bebf3ce99a1f86559f18ec. --- tests/dll/test_nimhcr_integration.bat | 10 ++++++++++ tests/dll/test_nimhcr_integration.sh | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/dll/test_nimhcr_integration.bat create mode 100755 tests/dll/test_nimhcr_integration.sh diff --git a/tests/dll/test_nimhcr_integration.bat b/tests/dll/test_nimhcr_integration.bat new file mode 100644 index 0000000000..66e6beac4e --- /dev/null +++ b/tests/dll/test_nimhcr_integration.bat @@ -0,0 +1,10 @@ +set NIM=nim +set NIM_FLAGS=-d:debug + +%NIM% c --outdir:"." %NIM_FLAGS% ../../lib/nimrtl.nim +%NIM% c --outdir:"." %NIM_FLAGS% ../../lib/nimhcr.nim + +set HCR_FLAGS=--forceBuild --hotCodeReloading:on --nimcache:nimcache %NIM_FLAGS% + +%NIM% %HCR_FLAGS% c nimhcr_integration.nim +nimhcr_integration %NIM% %HCR_FLAGS% c nimhcr_integration.nim diff --git a/tests/dll/test_nimhcr_integration.sh b/tests/dll/test_nimhcr_integration.sh new file mode 100755 index 0000000000..a2e2d04835 --- /dev/null +++ b/tests/dll/test_nimhcr_integration.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -e + +rm -rf nimcache + +NIM_FLAGS=${*:- -d:debug} +NIM=nim + +$NIM c --outdir:"." $NIM_FLAGS ../../lib/nimrtl.nim +$NIM c --outdir:"." $NIM_FLAGS ../../lib/nimhcr.nim + +echo ===== Compiling HCR Integration Test ===== +HCR_FLAGS="--forceBuild --hotCodeReloading:on --nimcache:nimcache $NIM_FLAGS" +$NIM $HCR_FLAGS c nimhcr_integration.nim +export LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH +./nimhcr_integration $NIM $HCR_FLAGS c nimhcr_integration.nim