[python-astropy] 01/01: Put te test scripts into separate files

Ole Streicher olebole at moszumanska.debian.org
Thu Apr 9 08:52:28 UTC 2015


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

olebole pushed a commit to branch debian
in repository python-astropy.

commit 85188f47ec55f4463e8e92ef17096ad3c98a0882
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Thu Apr 9 10:52:28 2015 +0200

    Put te test scripts into separate files
---
 debian/tests/control         | 5 ++---
 debian/tests/python-astropy  | 8 ++++++++
 debian/tests/python3-astropy | 9 +++++++++
 3 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/debian/tests/control b/debian/tests/control
index f59c72f..5fd4b49 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,6 +1,5 @@
-Test-Command: python -c "import astropy; astropy.test()"
+Test: python-astropy
 Depends: python-astropy
 
-Test-Command: python3 -c "import astropy; astropy.test()"
+Test: python3-astropy
 Depends: python3-astropy
-
diff --git a/debian/tests/python-astropy b/debian/tests/python-astropy
new file mode 100755
index 0000000..cb52670
--- /dev/null
+++ b/debian/tests/python-astropy
@@ -0,0 +1,8 @@
+#!/usr/bin/env python
+
+import os
+os.chdir(os.getenv('ADTTMP', '/tmp'))
+
+import astropy
+res = astropy.test()
+exit(res)
diff --git a/debian/tests/python3-astropy b/debian/tests/python3-astropy
new file mode 100755
index 0000000..8451992
--- /dev/null
+++ b/debian/tests/python3-astropy
@@ -0,0 +1,9 @@
+#!/usr/bin/env python3
+
+import os
+os.chdir(os.getenv('ADTTMP', '/tmp'))
+
+import astropy
+res = astropy.test()
+exit(res)
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/python-astropy.git



More information about the debian-science-commits mailing list