Don't use autpkgtest-pkg-python: the module name is cx_Oracle and not cx_oracle
Sophie Brun
4 years ago
|
0 |
python-cx-oracle (7.1-0kali2) kali-dev; urgency=medium
|
|
1 |
|
|
2 |
* Don't use autpkgtest-pkg-python: the module name is cx_Oracle and not
|
|
3 |
cx_oracle
|
|
4 |
|
|
5 |
-- Sophie Brun <[email protected]> Thu, 27 Jun 2019 10:38:58 +0200
|
|
6 |
|
0 | 7 |
python-cx-oracle (7.1-0kali1) kali-dev; urgency=medium
|
1 | 8 |
|
2 | 9 |
* Initial release
|
7 | 7 |
Homepage: https://oracle.github.io/python-cx_Oracle/index.html
|
8 | 8 |
Vcs-Browser: https://gitlab.com/kalilinux/packages/python-cx-oracle
|
9 | 9 |
Vcs-Git: https://gitlab.com/kalilinux/packages/python-cx-oracle.git
|
10 | |
Testsuite: autopkgtest-pkg-python
|
11 | 10 |
|
12 | 11 |
Package: python-cx-oracle
|
13 | 12 |
Architecture: any
|
|
0 |
#!/bin/sh
|
|
1 |
|
|
2 |
set -e
|
|
3 |
|
|
4 |
test_install_python2() {
|
|
5 |
|
|
6 |
echo "Testing python2 package"
|
|
7 |
for py in $(pyversions -r 2>/dev/null) ; do
|
|
8 |
cd "$AUTOPKGTEST_TMP" ;
|
|
9 |
echo "Testing with $py:" ;
|
|
10 |
$py -c "import cx_Oracle; print(cx_Oracle)" ;
|
|
11 |
done
|
|
12 |
|
|
13 |
}
|
|
14 |
|
|
15 |
test_install_python3() {
|
|
16 |
|
|
17 |
echo "Testing python3 package"
|
|
18 |
for py in $(py3versions -r 2>/dev/null) ; do
|
|
19 |
cd "$AUTOPKGTEST_TMP" ;
|
|
20 |
echo "Testing with $py:" ;
|
|
21 |
$py -c "import cx_Oracle; print(cx_Oracle)" ;
|
|
22 |
done
|
|
23 |
|
|
24 |
}
|
|
25 |
|
|
26 |
###################################
|
|
27 |
# Main
|
|
28 |
###################################
|
|
29 |
|
|
30 |
for function in "$@"; do
|
|
31 |
$function
|
|
32 |
done
|
|
0 |
Test-Command: debian/tests/basic-test.sh test_install_python2
|
|
1 |
Depends: python-cx-oracle
|
|
2 |
Restrictions: allow-stderr, superficial
|
|
3 |
|
|
4 |
Test-Command: debian/tests/basic-test.sh test_install_python3
|
|
5 |
Depends: python3-cx-oracle
|
|
6 |
Restrictions: allow-stderr, superficial
|