summaryrefslogtreecommitdiff
path: root/debian/tests/test-common.sh
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-12-01 17:44:24 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-12-01 17:44:24 +0300
commitc089c4500b0b78acf03ee5405ad250a84b0dfa66 (patch)
tree23870848d194569aff6e0e4e41bc7907960b1af1 /debian/tests/test-common.sh
parent377002e7300431b68f3548d9fd2c7f99cf883939 (diff)
downloadpython3.7-debian.tar.gz
Import python3.7 (3.7.5-2)debian/3.7.5-2debian
Diffstat (limited to 'debian/tests/test-common.sh')
-rw-r--r--debian/tests/test-common.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/debian/tests/test-common.sh b/debian/tests/test-common.sh
new file mode 100644
index 0000000..e85869e
--- /dev/null
+++ b/debian/tests/test-common.sh
@@ -0,0 +1,47 @@
+
+if dpkg-vendor --derives-from Ubuntu; then
+ vendor=Ubuntu
+elif dpkg-vendor --derives-from Debian; then
+ vendor=Debian
+else
+ vendor=Unknown
+fi
+
+export LOCPATH=$(pwd)/locales
+sh $debian_dir/locale-gen
+
+export LANG=C.UTF-8
+
+export DEB_PYTHON_INSTALL_LAYOUT=deb_system
+
+TESTOPTS="-j 1 -w -uall,-network,-urlfetch,-gui"
+
+# test_dbm: Fails from time to time ...
+#TESTEXCLUSIONS="$TESTEXCLUSIONS test_dbm"
+
+# test_ensurepip: not yet installed, http://bugs.debian.org/732703
+# ... and then test_venv fails too
+TESTEXCLUSIONS="$TESTEXCLUSIONS test_ensurepip test_venv "
+
+# test_lib2to3: see https://bugs.python.org/issue34286
+TESTEXCLUSIONS="$TESTEXCLUSIONS test_lib2to3"
+
+# test_tcl: see https://bugs.python.org/issue34178
+TESTEXCLUSIONS="$TESTEXCLUSIONS test_tcl"
+
+# FIXME: Failing with OpenSSL 1.2 ...
+# ssl.SSLError: [SSL: CA_MD_TOO_WEAK] ca md too weak (_ssl.c:3401)
+if [ "$vendor" = Debian ]; then
+ TESTEXCLUSIONS="$TESTEXCLUSIONS test_asyncio test_ftplib test_httplib test_imaplib test_nntplib test_poplib test_ssl"
+fi
+
+# FIXME: testWithTimeoutTriggeredSend: timeout not raised by _sendfile_use_sendfile
+TESTEXCLUSIONS="$TESTEXCLUSIONS test_socket"
+
+# FIXME: issue 34806: some distutils tests fail recently
+TESTEXCLUSIONS="$TESTEXCLUSIONS test_distutils"
+
+# FIXME, failing on the Ubuntu autopkg testers
+if [ "$vendor" = Ubuntu ]; then
+ TESTEXCLUSIONS="$TESTEXCLUSIONS test_code_module test_platform test_site"
+fi