[Pkg-javascript-commits] [node-osenv] 09/09: enable tests
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Fri Nov 10 07:18:21 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository node-osenv.
commit e11a42c4b9be1a08a3ca1cd70919ed1537390b7d
Author: Pirate Praveen <praveen at debian.org>
Date: Fri Nov 10 12:33:39 2017 +0530
enable tests
---
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 4a47911..716c6fb 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Uploaders: Jérémy Lal <kapouer at melix.org>
Build-Depends:
debhelper (>= 10)
, nodejs
+ , node-tap
Standards-Version: 4.1.1
Homepage: https://github.com/isaacs/osenv
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-osenv.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..c086382
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: require
+Depends: @
+
+Test-Command: tap test/*.js
+Depends: @, node-tap
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..422a76e
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('osenv');"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-osenv.git
More information about the Pkg-javascript-commits
mailing list