Allow exceptions in generated example/test node extensions.

This commit is contained in:
Oliver Buchtala 2013-09-04 13:07:07 +02:00
commit fec11a8def
2 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,9 @@ CPP_TEST_CASES = \
char_binary \
class_ignore \
class_scope_weird \
complextest \
constover \
constructor_copy \
cpp_enum \
cpp_namespace \
cpp_static \
@ -50,8 +52,6 @@ CPP_TEST_CASES = \
javascript_unicode
BROKEN_TEST_CASES = \
complextest \
constructor_copy \
preproc_include
SKIP_CPP_CASES = @SKIP_CPP_CASES@

View file

@ -2,5 +2,5 @@
if [ ! -d $1 ]; then
mkdir $1;
fi
echo "module.exports = require('./build/Release/$1')" > $1/index.js
echo "{\"targets\":[{\"target_name\": \"$1\",\"sources\":[\"$1_wrap.cxx\"]}]}" > $1/binding.gyp
sed s/\$testcase/$1/ node_template/binding.gyp.in > $1/binding.gyp
sed s/\$testcase/$1/ node_template/index.js.in > $1/index.js