Skip to content

Commit 1e30310

Browse files
authored
Revert "remove dead code test_nimhcr_integration.(bat,sh) (#13388)" (#13396)
This reverts commit 90491ea.
1 parent 2b368bc commit 1e30310

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

tests/dll/test_nimhcr_integration.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set NIM=nim
2+
set NIM_FLAGS=-d:debug
3+
4+
%NIM% c --outdir:"." %NIM_FLAGS% ../../lib/nimrtl.nim
5+
%NIM% c --outdir:"." %NIM_FLAGS% ../../lib/nimhcr.nim
6+
7+
set HCR_FLAGS=--forceBuild --hotCodeReloading:on --nimcache:nimcache %NIM_FLAGS%
8+
9+
%NIM% %HCR_FLAGS% c nimhcr_integration.nim
10+
nimhcr_integration %NIM% %HCR_FLAGS% c nimhcr_integration.nim

tests/dll/test_nimhcr_integration.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
rm -rf nimcache
6+
7+
NIM_FLAGS=${*:- -d:debug}
8+
NIM=nim
9+
10+
$NIM c --outdir:"." $NIM_FLAGS ../../lib/nimrtl.nim
11+
$NIM c --outdir:"." $NIM_FLAGS ../../lib/nimhcr.nim
12+
13+
echo ===== Compiling HCR Integration Test =====
14+
HCR_FLAGS="--forceBuild --hotCodeReloading:on --nimcache:nimcache $NIM_FLAGS"
15+
$NIM $HCR_FLAGS c nimhcr_integration.nim
16+
export LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH
17+
./nimhcr_integration $NIM $HCR_FLAGS c nimhcr_integration.nim

0 commit comments

Comments
 (0)