[Pkg-javascript-commits] [node-sha.js] 233/237: merge patched into master

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:04:10 UTC 2017


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

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

commit 084f098bd95feffda2ca909d7f6afd8d22b9282a
Merge: 1e7f999 b2a98a9
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Thu Apr 20 13:37:10 2017 +0200

    merge patched into master

 debian/.git-dpm                         |  4 +--
 debian/patches/0001-Fix-testsuite.patch | 44 +++++++++++++++++++++++++++++++++
 debian/patches/series                   |  1 +
 test/vectors.js                         | 18 +++++++++++---
 4 files changed, 61 insertions(+), 6 deletions(-)

diff --cc debian/.git-dpm
index b310257,0000000..8250004
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,8 -1,0 +1,8 @@@
 +# see git-dpm(1) from git-dpm package
- c233442bbd5695863d03155511d61bc8dcc63652
- c233442bbd5695863d03155511d61bc8dcc63652
++b2a98a9b5b3ff4fa252402f4e7aa15bbc7dbd6f6
++b2a98a9b5b3ff4fa252402f4e7aa15bbc7dbd6f6
 +c233442bbd5695863d03155511d61bc8dcc63652
 +c233442bbd5695863d03155511d61bc8dcc63652
 +node-sha.js_2.4.8.orig.tar.gz
 +e5ecd5160d696e8b26bf5abe58b50b320bf309da
 +9786
diff --cc debian/patches/0001-Fix-testsuite.patch
index 0000000,0000000..5696d9a
new file mode 100644
--- /dev/null
+++ b/debian/patches/0001-Fix-testsuite.patch
@@@ -1,0 -1,0 +1,44 @@@
++From b2a98a9b5b3ff4fa252402f4e7aa15bbc7dbd6f6 Mon Sep 17 00:00:00 2001
++From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien at gmail.com>
++Date: Thu, 20 Apr 2017 13:36:19 +0200
++Subject: Fix testsuite
++
++Forwarded: no
++---
++ test/vectors.js | 18 ++++++++++++++----
++ 1 file changed, 14 insertions(+), 4 deletions(-)
++
++diff --git a/test/vectors.js b/test/vectors.js
++index 4aef39c..e53e05a 100644
++--- a/test/vectors.js
+++++ b/test/vectors.js
++@@ -10,15 +10,25 @@ function makeTest (alg, i, verbose) {
++   var v = vectors[i]
++ 
++   tape(alg + ': NIST vector ' + i, function (t) {
+++    // nan test
+++    if(v!=v) {
+++	t.end();
+++	return;
+++	}
+++    if(typeof(v)=='undefined') {
+++	t.end();
+++	return;
+++    }
+++    vinput = v != v ? v : (typeof(v) == 'undefined' ? v : v.input);
++     if (verbose) {
++       console.log(v)
++       console.log('VECTOR', i)
++-      console.log('INPUT', v.input)
++-      console.log(hexpp(new Buffer(v.input, 'base64')))
++-      console.log(new Buffer(v.input, 'base64').toString('hex'))
+++      console.log('INPUT', vinput)
+++      console.log(hexpp(new Buffer(vinput, 'base64')))
+++      console.log(new Buffer(vinput, 'base64').toString('hex'))
++     }
++ 
++-    var buf = new Buffer(v.input, 'base64')
+++    var buf = new Buffer(vinput, 'base64')
++     t.equal(createHash(alg).update(buf).digest('hex'), v[alg])
++ 
++     i = ~~(buf.length / 2)
diff --cc debian/patches/series
index 0000000,0000000..f9b63bc
new file mode 100644
--- /dev/null
+++ b/debian/patches/series
@@@ -1,0 -1,0 +1,1 @@@
++0001-Fix-testsuite.patch

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



More information about the Pkg-javascript-commits mailing list