1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/bin/sh
set -e -u
export PYTHONWARNINGS=d
cp pyproject.toml conftest.py "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"
# opencl needs somewhere to cache compiled objects
export POCL_CACHE_DIR="$PWD/.cache/"
export XDG_CACHE_HOME="$PWD/.cache/"
mkdir "$POCL_CACHE_DIR"
export HOME="$PWD"
export SAS_MODELPATH="$PWD/.sasmodels/"
mkdir "$SAS_MODELPATH"
# and also tell pyopencl not to cache
export PYOPENCL_NO_CACHE=1
# stop matplotlib from thinking it should display plots
export MPLBACKEND=Agg
export SAS_OPENCL=none
for py in $(py3versions -s); do
$py -m pytest -v -p conftest --pyargs sasmodels
done
|