[Pkg-javascript-commits] [sax.js] 04/08: enable tests
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Mon Jan 15 18:12:28 UTC 2018
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository sax.js.
commit 582dd6285129d333c44756af6b956fffee07bac2
Author: Pirate Praveen <praveen at debian.org>
Date: Mon Jan 15 23:22:58 2018 +0530
enable tests
---
debian/control | 4 ++--
debian/rules | 5 ++---
debian/tests/control | 5 +++++
debian/tests/require | 3 +++
4 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/debian/control b/debian/control
index 0e4dc40..8dfc07d 100644
--- a/debian/control
+++ b/debian/control
@@ -4,8 +4,8 @@ Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
Uploaders: David Paleino <dapal at debian.org>,
Jérémy Lal <kapouer at melix.org>
-Build-Depends:
- debhelper (>= 11~)
+Build-Depends: debhelper (>= 11~)
+ , node-tap
Standards-Version: 4.1.3
Homepage: https://github.com/isaacs/sax-js
Vcs-Git: git://anonscm.debian.org/collab-maint/sax.js.git
diff --git a/debian/rules b/debian/rules
index f10fa3f..7a76ecc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,5 @@
%:
dh $@
-override_dh_install:
- dh_install
- dh_buildinfo
+override_dh_auto_test:
+ tap test/*.js -j4
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..4f09f6e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: require
+Depends: node-sax
+
+Test-Command: tap test/*.js -j4
+Depends: @, node-tap
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..b890601
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('sax');"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/sax.js.git
More information about the Pkg-javascript-commits
mailing list