1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/bin/sh
set -e -u
export PYTHONWARNINGS=d
cp pytest.ini "$ADTTMP"
cd "$ADTTMP"
# opencl needs somewhere to cache compiled objects
export POCL_CACHE_DIR="$PWD/.cache/"
export XDG_CACHE_HOME="$PWD/.cache/"
mkdir "$POCL_CACHE_DIR"
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
for py in $(pyversions -i); do
echo "##### These tests are likely to fail #####"
$py -m pytest -v --pyargs sasmodels || true
done
|