Make javascript test-suite work with nodejs.
This commit is contained in:
parent
cef82c720f
commit
8bbd928831
37 changed files with 98 additions and 39 deletions
6
Examples/test-suite/javascript/setup_test.sh
Normal file
6
Examples/test-suite/javascript/setup_test.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue