Skip to content

Commit

Permalink
Copy mod files out-of-tree when testing wheels (#3311)
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran authored Jan 21, 2025
1 parent 74dcdd5 commit 2b47764
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packaging/python/test_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,14 @@ run_mpi_test () {
# coreneuron execution via neuron
if [[ "$has_coreneuron" == "true" ]]; then
rm -rf $ARCH_DIR
TEMP_DIR="${TMPDIR:-/tmp}/test/coreneuron/mod files/"
if [ ! -d "${TEMP_DIR}" ]; then
mkdir -p "${TEMP_DIR}"
fi
cp "test/coreneuron/mod files/"* "${TEMP_DIR}/"
# also copy one MOD file containing sparse solver
cp share/examples/nrniv/nmodl/capmp.mod "test/coreneuron/mod files/"
nrnivmodl -coreneuron "test/coreneuron/mod files/"
cp share/examples/nrniv/nmodl/capmp.mod "${TEMP_DIR}"
nrnivmodl -coreneuron "${TEMP_DIR}"

$mpi_launcher -n 1 $python_exe test/coreneuron/test_direct.py

Expand Down

0 comments on commit 2b47764

Please sign in to comment.