File: test_script.sh

package info (click to toggle)
python-csa 0.1.13-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 572 kB
  • sloc: python: 2,444; cpp: 320; sh: 49; makefile: 39
file content (21 lines) | stat: -rw-r--r-- 465 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
#!/bin/bash

set -e

python --version
python -c "import numpy; print('numpy %s' % numpy.__version__)"
python -c "import matplotlib; print('matplotlib %s' % matplotlib.__version__)"

# build csa inplace
python setup.py build_ext -i

# run tests, but if mystery segmentation fault occurr, rerun tests as an
# attempt at a clean exit
while true; do
    nosetests --with-coverage --cover-package=csa
    if [ $? -eq 0 ]
    then
        exit 0
        break
    fi
done