[Pkg-javascript-commits] [node-read] 05/05: enable build-time tests and autopkgtests

Paolo Greppi paolog-guest at moszumanska.debian.org
Fri Dec 23 12:48:58 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-read.

commit 13571558f9bfc6f75ce234cd2dbe40d98b9367aa
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Fri Dec 23 12:48:29 2016 +0000

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

diff --git a/debian/control b/debian/control
index b523f29..8e4fa8f 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ 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/read
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..25315dc
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: require
+Depends: node-read
+
+Test-Command: tap test
+Depends: @, @builddeps@
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..557b684
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('read');"

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



More information about the Pkg-javascript-commits mailing list