File: testall.sh

package info (click to toggle)
python-acora 2.5-0.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,084 kB
  • sloc: python: 996; makefile: 55; sh: 13
file content (18 lines) | stat: -rwxr-xr-x 509 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

[ -z "$1" ] && VERSIONS="2.5 2.6 2.7 3.0 3.1 3.2" || VERSIONS="$1"

FAILED=

for pyver in $VERSIONS
do
    which python${pyver} >/dev/null || continue
    echo "Running tests with Python $pyver ..."
    rm -f acora/*.so
    _CFLAGS="$CFLAGS -ggdb"
    [ -z "${pyver##2.*}" ] && _CFLAGS="$_CFLAGS -fno-strict-aliasing"
    CFLAGS="$_CFLAGS" python${pyver} setup.py build_ext -i
    python${pyver} test.py || FAILED="$FAILED $pyver"
done

[ -n "$FAILED" ] && echo "FAILED: $FAILED" || echo "DONE."