Commit ee7e8da5 authored by Xavier Guimard's avatar Xavier Guimard

Update tests

parent ddf5d9d4
......@@ -17,7 +17,10 @@ override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
cd requireoptional && mkdir node_modules && cd node_modules && ln -s ../../bson && cd - && mocha
rm -rf requireoptional/node_modules
cd bson && mocha ./test/node
cd bson && nodeunit ./test/node
mkdir node_modules && cd node_modules && ln -s ../requireoptional require_optional && ln -s ../bson && ln -s ../mongodb-core
node index.js
rm -rf node_modules
......@@ -5,8 +5,8 @@ TEMP=${ADTTMP:-${TMPDIR:-/tmp}}
TDIR=$(mktemp -d $TEMP/smokeXXXXXX)
cp -a bson/test $TDIR
cp -a bson/test bson/extended-json $TDIR
cd $TDIR
ln -s /usr/lib/nodejs/bson/index.js .
ln -s /usr/lib/nodejs/bson/lib .
mocha ./test/node
nodeunit ./test/node
......@@ -2,7 +2,7 @@ Tests: require
Depends: node-mongodb
Tests: bson
Depends: node-mongodb, chai, mocha
Depends: node-mongodb, chai, mocha, nodeunit
Tests: require-optional
Depends: node-mongodb, mocha, node-es6-promise
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment