Skip to content

Commit

Permalink
Revert "remove dead code test_nimhcr_integration.(bat,sh) (#13388)" (#…
Browse files Browse the repository at this point in the history
…13396)

This reverts commit 90491ea.
  • Loading branch information
Araq authored Feb 12, 2020
1 parent 2b368bc commit 1e30310
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/dll/test_nimhcr_integration.bat
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions tests/dll/test_nimhcr_integration.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1e30310

Please sign in to comment.