[Pkg-javascript-commits] [node-nopt] 02/04: Enable tests

Sruthi Chandran srud-guest at moszumanska.debian.org
Wed Nov 9 10:57:38 UTC 2016


This is an automated email from the git hooks/post-receive script.

srud-guest pushed a commit to branch master
in repository node-nopt.

commit a2559666a3e0dafedc5745dd1f0eeeddf1a8d689
Author: Sruthi <srud at disroot.org>
Date:   Wed Nov 9 16:16:46 2016 +0530

    Enable tests
---
 debian/control       | 3 ++-
 debian/rules         | 3 +++
 debian/tests/control | 5 +++++
 debian/tests/require | 3 +++
 4 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index e363cf2..f682442 100644
--- a/debian/control
+++ b/debian/control
@@ -4,9 +4,10 @@ Priority: extra
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Jérémy Lal <kapouer at melix.org>
 Build-Depends:
- debhelper (>= 8.0.0)
+ debhelper (>= 9)
  , nodejs
  , dh-buildinfo
+ , tap
 Standards-Version: 3.9.8
 Homepage: https://github.com/isaacs/nopt
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-nopt.git
diff --git a/debian/rules b/debian/rules
index 218df65..629ae8c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,3 +6,6 @@
 
 %:
 	dh $@
+
+override_dh_auto_test:
+	tap test/*.js
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..e14314d
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: require
+Depends: node-nopt
+
+Test-Command: tap test/*.js
+Depends: @, tap
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..a186a90
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('nopt');"

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



More information about the Pkg-javascript-commits mailing list