blob: 36a6fb1fc60957344f8be727729917217d6b8a2d (
plain)
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/sh
set -e
set -x
test -n "$PYTHON" || PYTHON=python
test -n "$PYTEST" || PYTEST=pytest
mkdir -p tests/tmp
export PYTHONSUFFIX=$($PYTHON -V 2>&1 |awk '{print $2}' |awk -F. '{print $1 "." $2}')
export PYTHONPATH=$(ls -d build/lib.*$PYTHONSUFFIX):$PYTHONPATH
extra_attrs=
if test "$CI" = true; then
if test -n "$USECURL" && echo "$USECURL" |grep -q gssapi; then
:
else
extra_attrs="$extra_attrs",\!gssapi
fi
if test -n "$USECURL" && echo "$USECURL" |grep -q libssh2; then
:
else
extra_attrs="$extra_attrs",\!ssh
fi
fi
$PYTHON -c 'import pycurl; print(pycurl.version)'
$PYTEST
|