[Pkg-javascript-commits] [node-ripemd160] 67/71: Add autopkgtest

Bastien Roucariès rouca at moszumanska.debian.org
Thu May 4 10:25:43 UTC 2017


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

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

commit e5bbfefd006a6d6ef2014cefb133ffd195d9d116
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Fri Apr 28 15:14:51 2017 +0200

    Add autopkgtest
---
 debian/changelog          |  4 ++--
 debian/tests/control      |  3 +++
 debian/tests/runtestsuite | 14 ++++++++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2660dfe..5135dab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
-node-ripemd160 (2.0.1-1) UNRELEASED; urgency=low
+node-ripemd160 (2.0.1-1) unstable; urgency=low
 
-  * Initial release (Closes: #nnnn)
+  * Initial release (Closes: #861405)
 
  -- Bastien Roucariès <rouca at debian.org>  Fri, 28 Apr 2017 14:56:33 +0200
 
diff --git a/debian/tests/control b/debian/tests/control
index 167022d..4b70510 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
 Tests: require
 Depends: node-ripemd160
+
+Tests: runtestsuite
+Depends: node-ripemd160, node-tape, node-hast-test-vectors
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
new file mode 100755
index 0000000..e316610
--- /dev/null
+++ b/debian/tests/runtestsuite
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -e
+# notice the / at end in order to load this module
+PACKAGE='ripemd160'
+SEDCMD="s,require\s*[(]\s*'[.][.][^']*'\s*[)],require('$PACKAGE'),g"
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
+
+cp -r test $tmpdir/test
+find test/ -maxdepth 1 -name '*.js' -print0 | \
+    xargs -0 -n1  \
+	  sh -c 'set -e; echo "TESTING: $3"; sed "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
+tape $tmpdir/test/*.js

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



More information about the Pkg-javascript-commits mailing list