[Pkg-javascript-commits] [node-dateformat] 03/06: Enable tests

Sruthi Chandran srud-guest at moszumanska.debian.org
Thu Nov 3 14:47:34 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-dateformat.

commit 848acf4fdad9bae7e083fc129bbaa1e3a6838c57
Author: Sruthi <srud at disroot.org>
Date:   Thu Nov 3 19:54:16 2016 +0530

    Enable tests
---
 debian/control       | 14 ++++++++++++--
 debian/rules         |  3 +++
 debian/tests/control |  5 +++++
 debian/tests/require |  3 +++
 4 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 486e87d..ad0a62d 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,16 @@ Vcs-Git: https://anonscm.debian.org/cgit/pkg-javascript/node-dateformat.git
 
 Package: node-dateformat
 Architecture: all
-Depends: ${misc:Depends}, nodejs (>= 0.6.19~dfsg1-3), libjs-dateformat
+Build-Depends: debhelper (>= 9)
+ , dh-buildinfo 
+ , nodejs, mocha
+ , node-get-stdin
+ , node-meow
+Depends: ${misc:Depends}
+ , nodejs
+ , libjs-dateformat
+ , node-get-stdin
+ , node-meow
 Description: JavaScript Date Format
  Although JavaScript provides a bunch of methods for getting and setting
  parts of a date object, it lacks a simple way to format dates and times
@@ -23,7 +32,8 @@ Description: JavaScript Date Format
 
 Package: libjs-dateformat
 Architecture: all
-Depends: ${misc:Depends}, nodejs (>= 0.6.19~dfsg1-3)
+Depends: ${misc:Depends}
+ , nodejs
 Recommends: javascript-common
 Description: JavaScript Date Format
  Although JavaScript provides a bunch of methods for getting and setting
diff --git a/debian/rules b/debian/rules
index b4854f7..2bfa924 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,3 +7,6 @@ override_dh_auto_build:
 
 override_dh_auto_clean:
 	rm -f lib/*.min.js
+
+override_dh_auto_test:
+	mocha -R spec
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..0d01257
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: require
+Depends: node-dateformat
+
+Test-Command: mocha -R spec
+Depends: @, @builddeps@
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..be5dda8
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('dateformat');"

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



More information about the Pkg-javascript-commits mailing list