[Pkg-javascript-commits] [node-sorted-object] 04/04: enable build-time tests and autopkgtests
Paolo Greppi
paolog-guest at moszumanska.debian.org
Fri Dec 23 10:31:34 UTC 2016
This is an automated email from the git hooks/post-receive script.
paolog-guest pushed a commit to branch master
in repository node-sorted-object.
commit 0594318c9b6c8eee7971430013f2727144816095
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date: Fri Dec 23 10:23:02 2016 +0000
enable build-time tests and autopkgtests
---
debian/changelog | 4 ++--
debian/control | 1 +
debian/patches/00-use-tap-instead-of-tape.diff | 17 +++++++++++++++++
debian/patches/series | 1 +
debian/rules | 6 ++----
debian/tests/control | 3 +++
6 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index e466413..619f821 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-node-sorted-object (2.0.1-1) UNRELEASED; urgency=low
+node-sorted-object (2.0.1-1) unstable; urgency=low
* Initial release (Closes: #849179)
- -- Paolo Greppi <paolo.greppi at libpf.com> Fri, 23 Dec 2016 09:37:05 +0000
+ -- Paolo Greppi <paolo.greppi at libpf.com> Fri, 23 Dec 2016 10:21:10 +0000
diff --git a/debian/control b/debian/control
index 8ae97dd..5dc4e8b 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Uploaders: Paolo Greppi <paolo.greppi at libpf.com>
Build-Depends:
debhelper (>= 9)
, dh-buildinfo
+ , node-tap
, nodejs
Standards-Version: 3.9.8
Homepage: https://github.com/domenic/sorted-object#readme
diff --git a/debian/patches/00-use-tap-instead-of-tape.diff b/debian/patches/00-use-tap-instead-of-tape.diff
new file mode 100644
index 0000000..c66b3aa
--- /dev/null
+++ b/debian/patches/00-use-tap-instead-of-tape.diff
@@ -0,0 +1,17 @@
+Description: Use tap instead of tape
+ Because node-tap is in Debian and tape is not.
+Author: Paolo Greppi <paolo.greppi at libpf.com>
+Forwarded: not-needed
+
+Index: node-sorted-object/test/tests.js
+===================================================================
+--- node-sorted-object.orig/test/tests.js
++++ node-sorted-object/test/tests.js
+@@ -1,6 +1,6 @@
+ "use strict";
+
+-var test = require("tape");
++var test = require("tap").test;
+ var sortedObject = require("..");
+
+ test("does not return the same object", function (t) {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e351b5c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+00-use-tap-instead-of-tape.diff
diff --git a/debian/rules b/debian/rules
index de57af0..b65d962 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,5 @@
#override_dh_auto_build:
-#override_dh_auto_test:
-
-
-
+override_dh_auto_test:
+ tap test/tests.js
diff --git a/debian/tests/control b/debian/tests/control
index 863303a..fd1864c 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
Tests: require
Depends: node-sorted-object
+
+Test-Command: tap test/tests.js
+Depends: @, @builddeps@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sorted-object.git
More information about the Pkg-javascript-commits
mailing list