[Pkg-javascript-commits] [node-nan] 07/10: Add testsuite

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 19:43:46 UTC 2017


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

rouca pushed a commit to branch master
in repository node-nan.

commit 5977ddc91f7f4fa0d5ef4df4dae8f092f43f0afa
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Wed Sep 6 14:32:21 2017 +0200

    Add testsuite
---
 debian/tests/control      |  8 ++++++++
 debian/tests/require      |  3 +++
 debian/tests/runtestsuite | 13 +++++++++++++
 3 files changed, 24 insertions(+)

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..4e37750
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,8 @@
+Tests: require
+Depends: node-nan, nodejs (>= 6.11.2~dfsg-1)
+
+Tests: runtestsuite
+Depends: node-nan,
+ node-tap (>= 0.7.1),
+ node-gyp (>= 3.0.1),
+ node-bindings (>=1.2.1)
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..6e601fa
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('nan');"
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
new file mode 100755
index 0000000..454cf23
--- /dev/null
+++ b/debian/tests/runtestsuite
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
+
+
+cp -r test "$tmpdir"
+cd "$tmpdir"
+sed -i "s/require('..')/require('nan')/g" test/binding.gyp
+V=1 node-gyp rebuild --directory test
+tap -R spec --gc test/js/*-test.js
+

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



More information about the Pkg-javascript-commits mailing list