[Pkg-javascript-commits] [node-retry] 09/09: enable build-time tests and autopkgtests

Paolo Greppi paolog-guest at moszumanska.debian.org
Wed Dec 14 18:53:30 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-retry.

commit 8f74b9f5f9d61bcfa0d7c269b24b42d35765ed1e
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Wed Dec 14 18:49:40 2016 +0000

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

diff --git a/debian/rules b/debian/rules
index 1b0be05..8f0a4db 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,9 @@
 	dh $@
 
 override_dh_auto_build:
-override_dh_auto_test:
 override_dh_auto_install:
 override_dh_auto_clean:
 	# nothing
+
+override_dh_auto_test:
+	debian/tests/manual
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..4fa0c4e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: require
+Depends: node-string-width
+
+Test-Command: mocha -u tdd
+Depends: @, @builddeps@
diff --git a/debian/tests/manual b/debian/tests/manual
new file mode 100755
index 0000000..32cdea1
--- /dev/null
+++ b/debian/tests/manual
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+nodejs test/integration/test-forever.js    
+nodejs test/integration/test-retry-operation.js 
+nodejs test/integration/test-retry-wrap.js 
+nodejs test/integration/test-timeouts.js
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..a27cfbc
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('string-width');"

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



More information about the Pkg-javascript-commits mailing list