summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 20:19:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 20:19:53 +0000
commitf42a25756b9133ae9c62fa7a86112bfc603391c8 (patch)
tree51bf1ba3aad37d5913d230724bd1969d4d466286 /debian/tests
parentAdding upstream version 0.91.0. (diff)
downloadpython-ruyaml-debian.tar.xz
python-ruyaml-debian.zip
Adding debian version 0.91.0-3.debian/0.91.0-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control7
-rw-r--r--debian/tests/smoke16
2 files changed, 23 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..bbc131c
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,7 @@
+Tests: smoke
+Depends:
+# @builddeps@,
+ python3-all,
+ python3-pytest,
+ @,
+Restrictions: allow-stderr
diff --git a/debian/tests/smoke b/debian/tests/smoke
new file mode 100644
index 0000000..c635fe9
--- /dev/null
+++ b/debian/tests/smoke
@@ -0,0 +1,16 @@
+#! /bin/bash
+
+cp -r _test ${AUTOPKGTEST_TMP}
+
+for py3vers in $(py3versions -s); do
+ echo
+ echo "***************************"
+ echo "*** Testing with ${py3vers}"
+ echo "***************************"
+ echo
+ cd ${AUTOPKGTEST_TMP} && \
+ echo -e "Content of current working folder:\n" && \
+ ls -la && \
+ echo -e "Running tests...\n" && \
+ PYTHONPATH=. ${py3vers} -m pytest
+done