File: py3

package info (click to toggle)
python-softlayer 6.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,508 kB
  • sloc: python: 57,195; makefile: 133; xml: 97; sh: 59
file content (27 lines) | stat: -rw-r--r-- 729 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
#!/bin/sh
set -efu

pys="$(py3versions -s 2> /dev/null)"

# copy data files for autopkgtest
DATA_DIR="SoftLayer/fixtures"
DEST_DIR="/usr/lib/python3/dist-packages/SoftLayer/fixtures/"
echo $DEST_DIR
cp  ${DATA_DIR}/sample_vs_template.conf \
    ${DATA_DIR}/id_rsa.pub \
    ${DATA_DIR}/realtest.com $AUTOPKGTEST_TMP

mkdir -p $AUTOPKGTEST_TMP/SoftLayer/fixtures
cp -r SoftLayer/fixtures/xmlrpc $AUTOPKGTEST_TMP/SoftLayer/fixtures

cp -a tests setup.cfg "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"

ln -s $AUTOPKGTEST_TMP/sample_vs_template.conf ${DEST_DIR}
ln -s $AUTOPKGTEST_TMP/id_rsa.pub ${DEST_DIR}
ln -s $AUTOPKGTEST_TMP/realtest.com ${DEST_DIR}

for py in $pys; do
	echo "=== $py ==="
	$py -m pytest --verbose tests 2>&1
done