Skip to content

Commit fc4d10d

Browse files
committed
Fix run-tests
1 parent 8435fa6 commit fc4d10d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

scripts/run-tests.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@ source .venv/bin/activate
66

77
# Setting up LD_LIBRARY_PATH environment variable
88
# https://pyo3.rs/v0.28.2/building-and-distribution.html#dynamically-embedding-the-python-interpreter
9+
OS="$(uname)"
910
LIB_DIR=$(python3 -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
10-
export LD_LIBRARY_PATH="$LIB_DIR:${LD_LIBRARY_PATH:-}"
11+
12+
if [[ "$OS" == "Darwin" ]]; then
13+
export DYLD_LIBRARY_PATH="$LIB_DIR:${DYLD_LIBRARY_PATH:-}"
14+
else
15+
export LD_LIBRARY_PATH="$LIB_DIR:${LD_LIBRARY_PATH:-}"
16+
fi
1117

1218
pytest tests/
19+
1320
cargo test --workspace --locked

0 commit comments

Comments
 (0)