File: test.sh

package info (click to toggle)
llvmlite 0.46.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,140 kB
  • sloc: python: 13,605; cpp: 3,192; makefile: 185; sh: 168
file content (28 lines) | stat: -rwxr-xr-x 615 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
23
24
25
26
27
28
#!/bin/bash

source activate $CONDA_ENV

# Make sure any error below is reported as such
set -v -e

# Run test suite

python --version

if [ "$OPAQUE_POINTERS" == "yes" ]; then
    export LLVMLITE_ENABLE_IR_LAYER_TYPED_POINTERS=0
    echo "Testing with IR layer opaque pointers enabled"
else
    echo "Testing with IR layer opaque pointers disabled"
fi

if [ "$WHEEL" == "yes" ]; then
    cd dist
    python -m llvmlite.tests -v
elif [ "$DIST_TEST" == "yes" ]; then
    LLVMLITE_DIST_TEST=1 python runtests.py -v
else
    python runtests.py -v
fi

if [ "$RUN_COVERAGE" == "yes" ]; then coverage run runtests.py; fi