[Pkg-javascript-commits] [node-test] 01/01: Improve cli and bump compat

Bastien Roucariès rouca at moszumanska.debian.org
Wed Apr 12 20:40:26 UTC 2017


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

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

commit 5194d42f56c7227a30823b2fe20b2fea33cd82fe
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Wed Apr 12 22:29:59 2017 +0200

    Improve cli and bump compat
---
 debian/changelog          |  9 +++++++++
 debian/compat             |  2 +-
 debian/control            |  5 +++--
 debian/tests/control      |  3 +++
 debian/tests/runtestsuite | 15 +++++++++++++++
 5 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5e7de68..6b9af7c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+node-test (0.6.0-5) experimental; urgency=medium
+
+  * Team upload.
+  * Set compat to 10.
+  * cli will run testsuite.
+  * Add myself as maintainer.
+
+ -- Bastien Roucariès <rouca at debian.org>  Wed, 12 Apr 2017 22:29:41 +0200
+
 node-test (0.6.0-4) unstable; urgency=medium
 
   * Set compat to 9 for  stretch
diff --git a/debian/compat b/debian/compat
index ec63514..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/control b/debian/control
index 257858d..f3f34ea 100644
--- a/debian/control
+++ b/debian/control
@@ -2,9 +2,10 @@ Source: node-test
 Section: web
 Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
-Uploaders: Sruthi Chandran <srud at disroot.org>
+Uploaders: Sruthi Chandran <srud at disroot.org>,
+ Bastien Roucariès <rouca at debian.org>
 Build-Depends:
- debhelper (>= 9)
+ debhelper (>= 10)
  , dh-buildinfo
  , dpkg-dev (>= 1.17.14)
  , nodejs (>= 4.7)
diff --git a/debian/tests/control b/debian/tests/control
index 7fcaee4..cf35e51 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
 Tests: require
 Depends: node-test
+
+Tests: runtestsuite
+Depends: node-test
\ No newline at end of file
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
new file mode 100755
index 0000000..4bacbc8
--- /dev/null
+++ b/debian/tests/runtestsuite
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+# notice the / at end in order to load this module
+PACKAGE='bn.js'
+SEDCMD="s,require\s*[(]\s*'[.][.]/?([^']*)'\s*[)],require('$PACKAGE/\1'),g"
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
+
+cp -r test/ $tmpdir/test
+find test/ -name '*.js' -print0 | \
+    xargs -0 -n1  \
+	  sh -c 'set -e; echo "Create: $3"; sed -E "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
+# avoid false that does not work outside build dir
+find $tmpdir/test -name '*.js' -maxdepth 1 -print0 | xargs -0 -n1 nodejs

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



More information about the Pkg-javascript-commits mailing list