[Pkg-javascript-commits] [node-leveldown] 420/492: added explicit test for inclusion of port_uv.h

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:14:25 UTC 2014


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

andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.

commit fb9a313c71dab0ffd18ed89f6c4ef1b57ed392bc
Author: Rod Vagg <rod at vagg.org>
Date:   Thu Oct 3 16:27:56 2013 +1000

    added explicit test for inclusion of port_uv.h
---
 test/port-libuv-fix-test.js | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/test/port-libuv-fix-test.js b/test/port-libuv-fix-test.js
new file mode 100644
index 0000000..089f1e6
--- /dev/null
+++ b/test/port-libuv-fix-test.js
@@ -0,0 +1,17 @@
+const test = require('tap').test
+    , path = require('path')
+    , fs   = require('fs')
+
+test('test port-libuv is being used', function (t) {
+  var version = fs.readFileSync(path.join(__dirname, '../deps/leveldb/leveldb.gyp'), 'utf8')
+                  .match(/'ldbversion': '([^']+)'/)[1]
+    , porth
+
+  t.ok(version, 'matched current leveldb version')
+
+  porth = fs.readFileSync(path.join(__dirname, '../deps/leveldb/leveldb-' + version + '/port/port.h'), 'utf8')
+
+  t.ok(/"port_uv\.h"/.test(porth), 'port.h includes reference to port_uv.h')
+
+  t.end()
+})

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



More information about the Pkg-javascript-commits mailing list