[Pkg-javascript-commits] [node-minimalistic-crypto-utils] 08/08: Fix testsuite
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 4 10:24:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-minimalistic-crypto-utils.
commit 844e3870c01f51993bcb52b2a09c9e4d98013794
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Thu Apr 27 17:33:58 2017 +0200
Fix testsuite
---
debian/tests/control | 2 +-
debian/tests/runtestsuite | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/debian/tests/control b/debian/tests/control
index 766dd80..07f7481 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,6 +1,6 @@
Tests: require
Depends: node-minimalistic-crypto-utils
-Tests: require
+Tests: runtestsuite
Depends: node-minimalistic-crypto-utils, mocha
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
index 9be555e..231a540 100755
--- a/debian/tests/runtestsuite
+++ b/debian/tests/runtestsuite
@@ -7,7 +7,7 @@ SEDCMD="s,require\s*[(]\s*'[.][.]/,require('$PACKAGE,g"
tmpdir=$(mktemp -d)
trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
-cp -r test $tmpdir/
-find $tmpdir -name '*.js' -print0 |
- xargs -n1 sh -c 'set -e; echo "TESTING: $3"; sed "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
-mocha -R $tmpdir/test/
+cp -r test $tmpdir
+find test -name '*.js' -print0 |
+ xargs -0 -n1 sh -c 'set -e; echo "TESTING: $3"; sed "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
+mocha -R spec $tmpdir/test/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-minimalistic-crypto-utils.git
More information about the Pkg-javascript-commits
mailing list