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

Paolo Greppi paolog-guest at moszumanska.debian.org
Fri Dec 23 12:30:09 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-mute-stream.

commit 8bded411211d2b179e98c5a2cedac8f755dfaba3
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Fri Dec 23 12:29:44 2016 +0000

    enable build-time tests and autopkgtests
---
 debian/control       | 2 +-
 debian/rules         | 3 +++
 debian/tests/control | 5 +++++
 debian/tests/require | 3 +++
 4 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 4f89489..2a83ff8 100644
--- a/debian/control
+++ b/debian/control
@@ -5,13 +5,13 @@ Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.deb
 Uploaders: Jérémy Lal <kapouer at melix.org>
 Build-Depends:
  debhelper (>= 9.0.0)
+ , node-tap
  , dh-buildinfo
 Standards-Version: 3.9.8
 Homepage: https://github.com/isaacs/mute-stream
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-mute-stream.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-mute-stream.git
 
-
 Package: node-mute-stream
 Architecture: all
 Depends:
diff --git a/debian/rules b/debian/rules
index 218df65..cd15852 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,3 +6,6 @@
 
 %:
 	dh $@
+
+override_dh_auto_test:
+	tap test
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..97343f4
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: require
+Depends: node-mute-stream
+
+Test-Command: tap test
+Depends: @, @builddeps@
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..a27cfbc
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('string-width');"

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



More information about the Pkg-javascript-commits mailing list