[sasview] 05/06: Add autopkgtest tests using upstream test suite

Stuart Prescott stuart at debian.org
Thu Nov 2 13:42:46 UTC 2017


This is an automated email from the git hooks/post-receive script.

stuart pushed a commit to branch master
in repository sasview.

commit 98b0c8bf627f4ade1ead349f40653bfc0ea846bf
Author: Stuart Prescott <stuart at debian.org>
Date:   Fri Nov 3 00:42:03 2017 +1100

    Add autopkgtest tests using upstream test suite
---
 debian/tests/control        |  6 ++++++
 debian/tests/python-sasview | 14 ++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..2416fa2
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,6 @@
+Tests: python-sasview
+Restrictions: allow-stderr
+Depends:
+ python-all,
+ python-pytest,
+ python-sasview
diff --git a/debian/tests/python-sasview b/debian/tests/python-sasview
new file mode 100755
index 0000000..ad7ed72
--- /dev/null
+++ b/debian/tests/python-sasview
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -e -u
+export PYTHONWARNINGS=d
+
+cp -a test "$ADTTMP"
+
+# SasView insists on writing to ~/sasview.log
+export HOME="$ADTTMP"
+
+cd "$ADTTMP/test"
+
+for py in $(pyversions -i); do
+  $py -m pytest -v -s
+done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sasview.git



More information about the debian-science-commits mailing list