Change name of DEBUG environment variable

fixes #452
This commit is contained in:
Jonas Wagner 2016-10-19 23:34:34 +02:00
parent 4586b9bd40
commit 7092c89d0c
3 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ coverage/addon.info: coverage/lcov.info
lcov --capture --base-directory build/ --directory . --output-file coverage/addon.info
# This generates the JS lcov info as well as gcov `*.gcda` files:
coverage/lcov.info: $(test_deps) $(ISTANBUL)
DEBUG=true $(NODE) --nouse_idle_notification --expose-gc \
NODE_OPENCV_DEBUG=true $(NODE) --nouse_idle_notification --expose-gc \
$(ISTANBUL) cover --report lcovonly -- test/unit.js
$(NODE_PRE_GYP):

View File

@ -1,6 +1,6 @@
var binary = require('node-pre-gyp');
var path = require('path');
var binding_path = binary.find(path.resolve(path.join(__dirname,'../package.json')), { debug: !!process.env.DEBUG });
var binding_path = binary.find(path.resolve(path.join(__dirname,'../package.json')), { debug: !!process.env.NODE_OPENCV_DEBUG });
var binding = require(binding_path);
//module.exports = require('../build/Release/opencv.node');

View File

@ -335,7 +335,7 @@ test('LDA Wrap', function(assert) {
test('Native Matrix', function(assert) {
var nativemat = require('../build/' + (!!process.env.DEBUG ? 'Debug' : 'Release') + '/test_nativemat.node');
var nativemat = require('../build/' + (!!process.env.NODE_OPENCV_DEBUG ? 'Debug' : 'Release') + '/test_nativemat.node');
var mat = new cv.Matrix(42, 8);
assert.deepEqual(mat.size(), nativemat.size(mat), 'nativemat');