[Pkg-javascript-commits] [node-extend] 01/01: Use node-tap to run tests, instead of node-tape, enable build-time tests and autopkgtests

Paolo Greppi paolog-guest at moszumanska.debian.org
Wed Dec 14 08:29:25 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-extend.

commit 3747a1783ae84a6a3e03b838faa7324385ff17ac
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Wed Dec 14 08:27:47 2016 +0000

    Use node-tap to run tests, instead of node-tape, enable build-time tests and autopkgtests
---
 debian/changelog                               |  5 +++--
 debian/control                                 |  1 +
 debian/patches/00-use-tap-instead-of-tape.diff | 18 ++++++++++++++++++
 debian/patches/series                          |  1 +
 debian/rules                                   |  6 ++----
 debian/tests/control                           |  3 +++
 6 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 95df54b..e251956 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,12 +1,13 @@
-node-extend (3.0.0-1) UNRELEASED; urgency=medium
+node-extend (3.0.0-1) unstable; urgency=medium
 
   * Team upload.
 
   * Imported Upstream version 3.0.0 (Closes: #831568, #847091)
   * Bump Standards-Version 3.9.8
   * Bump debhelper compat version to 9
+  * Use node-tap to run tests, instead of node-tape.
 
- -- Paolo Greppi <paolo.greppi at libpf.com>  Wed, 14 Dec 2016 07:44:01 +0000
+ -- Paolo Greppi <paolo.greppi at libpf.com>  Wed, 14 Dec 2016 08:26:19 +0000
 
 node-extend (2.0.0-1) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index f6f8ba7..e4db618 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Uploaders: Leo Iannacone <l3on at ubuntu.com>, 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/justmoon/node-extend
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..fe16f3a
--- /dev/null
+++ b/debian/patches/00-use-tap-instead-of-tape.diff
@@ -0,0 +1,18 @@
+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-extend/test/index.js
+===================================================================
+--- node-extend.orig/test/index.js
++++ node-extend/test/index.js
+@@ -1,7 +1,7 @@
+ 'use strict';
+ 
+ var extend = require('../index');
+-var test = require('tape');
++var test = require('tap').test;
+ 
+ var str = 'me a test';
+ var integer = 10;
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..56aa6c9 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
diff --git a/debian/tests/control b/debian/tests/control
index ce5fe01..4e82c4f 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
 Tests: require
 Depends: node-extend
+
+Test-Command: tap test
+Depends: @, @builddeps@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-extend.git



More information about the Pkg-javascript-commits mailing list