[Pkg-javascript-commits] [node-test] 01/01: Fix autopkg testsuite

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 20 13:55:53 UTC 2017


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

rouca pushed a commit to tag debian/0.6.0-7
in repository node-test.

commit db441d117503df8b825d7b79d80a240ac4d7506b
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Fri Aug 18 21:09:19 2017 +0200

    Fix autopkg testsuite
---
 debian/changelog          | 6 ++++++
 debian/rules              | 2 +-
 debian/tests/runtestsuite | 6 +++---
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index db09662..9b439ff 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-test (0.6.0-7) unstable; urgency=medium
+
+  * Fix autopkg suite
+
+ -- Bastien Roucariès <rouca at debian.org>  Fri, 18 Aug 2017 21:08:28 +0200
+
 node-test (0.6.0-6) unstable; urgency=medium
 
   * Team upload
diff --git a/debian/rules b/debian/rules
index faa35dc..02169f2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,7 @@
 	dh $@
 
 override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
 	nodejs test/*.js
 else
 	@echo '**********************************************************'
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
index 4bacbc8..f268e55 100755
--- a/debian/tests/runtestsuite
+++ b/debian/tests/runtestsuite
@@ -1,8 +1,8 @@
 #!/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"
+PACKAGE='test'
+SEDCMD="s,require\s*[(]\s*['\"][.][.]/?([^']*)['\"]\s*[)],require('$PACKAGE/\1'),g"
 
 tmpdir=$(mktemp -d)
 trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
@@ -12,4 +12,4 @@ 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
+nodejs $tmpdir/test/index.js

-- 
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