File: python-sasmodels-opencl

package info (click to toggle)
sasmodels 0.99-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,760 kB
  • sloc: python: 22,292; ansic: 6,140; makefile: 149; sh: 91
file content (22 lines) | stat: -rw-r--r-- 573 bytes parent folder | download
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