[polyml] 01/07: Added autopkgtest support for upstream's test suite

James Clarke jrtc27-guest at moszumanska.debian.org
Mon Apr 25 20:35:51 UTC 2016


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

jrtc27-guest pushed a commit to branch master
in repository polyml.

commit 2df3c8f25ba2e75bde12b18d7f50a8b299cc82bb
Author: James Clarke <jrtc27 at jrtc27.com>
Date:   Mon Apr 25 20:44:34 2016 +0100

    Added autopkgtest support for upstream's test suite
---
 debian/changelog                  |  6 ++++++
 debian/control                    |  1 +
 debian/tests/control              |  1 +
 debian/tests/upstream-poly-script |  3 +++
 debian/tests/upstream.sml         | 10 ++++++++++
 5 files changed, 21 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index db17006..de7c2b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+polyml (5.6-6) UNRELEASED; urgency=medium
+
+  * Added autopkgtest support for upstream's test suite
+
+ -- James Clarke <jrtc27 at jrtc27.com>  Mon, 25 Apr 2016 19:38:35 +0100
+
 polyml (5.6-5) unstable; urgency=low
 
   * Bump up Standards-Version to 3.9.8
diff --git a/debian/control b/debian/control
index 0bdd154..3a82bb9 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,7 @@ Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/polyml.git
 Homepage: http://www.polyml.org
 Build-Depends: debhelper (>= 9), dh-autoreconf, libffi-dev, libltdl-dev
 Standards-Version: 3.9.8
+Testsuite: autopkgtest
 
 Package: polyml
 Architecture: any
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..382aee2
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1 @@
+Tests: upstream-poly-script
diff --git a/debian/tests/upstream-poly-script b/debian/tests/upstream-poly-script
new file mode 100755
index 0000000..dd13a95
--- /dev/null
+++ b/debian/tests/upstream-poly-script
@@ -0,0 +1,3 @@
+#!/usr/bin/poly --script
+val _ = use "debian/tests/upstream.sml";
+val _ = main();
diff --git a/debian/tests/upstream.sml b/debian/tests/upstream.sml
new file mode 100644
index 0000000..5bf2307
--- /dev/null
+++ b/debian/tests/upstream.sml
@@ -0,0 +1,10 @@
+val _ = use "Tests/RunTests";
+
+fun main () =
+  let
+    val status = if runTests "Tests" then OS.Process.success
+                 else OS.Process.failure;
+    val _ = OS.Process.exit(status);
+  in
+    raise Fail "OS.Process.exit did not terminate the process!"
+  end

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



More information about the debian-science-commits mailing list