[Pkg-javascript-commits] [node-cli-width] 04/04: enable build-time tests and autopkgtests

Paolo Greppi paolog-guest at moszumanska.debian.org
Thu Dec 22 23:02:45 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-cli-width.

commit 80516be10fcc188501fd82df67c8b27f3e8af8da
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Thu Dec 22 23:01:13 2016 +0000

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

diff --git a/debian/control b/debian/control
index a2708b5..6bd3b57 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/knownasilya/cli-width
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..96ca5ad
--- /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-cli-width/test/index.js
+===================================================================
+--- node-cli-width.orig/test/index.js
++++ node-cli-width/test/index.js
+@@ -1,7 +1,7 @@
+ 'use strict';
+ 
+ var tty = require('tty');
+-var test = require('tape');
++var test = require('tap').test;
+ var lib = require('../');
+ 
+ 
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 786173c..4a8bfa0 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
 Tests: require
 Depends: node-cli-width
+
+Test-Command: tap test
+Depends: @, @builddeps@

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



More information about the Pkg-javascript-commits mailing list