#!/bin/sh # Install the Linux wheel into a private directory and run the bit-identity test against the # reference implementation in ~/sim-numerics. set -e T=~/simbracket_build/site rm -rf "$T" ~/torchenv/bin/python -m pip install --no-deps --target "$T" ~/simbracket_build/dist/simbracket-1.0.0-cp310-abi3-linux_x86_64.whl cd ~/sim-numerics PYTHONPATH="$T:." ~/torchenv/bin/python -m pytest tests/test_simbracket_equivalence.py -q -p no:cacheprovider 2>&1 | tail -5 PYTHONPATH="$T" ~/torchenv/bin/python -c "import simbracket._core as c; print(c.__file__)" echo CHECK_DONE