Commit ac9e320f authored by Bastien ROUCARIÈS's avatar Bastien ROUCARIÈS

Fix runtestsuite

parent 54c6cc71
Source: node-nan
Section: javascript
Priority: optionnal
Priority: optional
Maintainer: Debian Javascript Maintainers <>
Jérémy Lal <>,
set -e
# for verbose make
export V
tmpdir=$(mktemp -d)
trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
sed_move_to_stderr() {
sed -e "/$1/w /dev/stderr" -e "/$1/d"
cp -r test "$tmpdir"
cd "$tmpdir"
sed -i "s/require('..')/require('nan')/g" test/binding.gyp
V=1 node-gyp rebuild --directory test
exec 5>&1
exec 3>&1
error_gyp=$( ( (node-gyp rebuild --directory test 2>&1 >&3 3>&- ; echo $? >&4) | sed_move_to_stderr 'it worked if it ends' 2>&1 >&3 3>&- ) 4>&1 >&5)
exec 3>&-
exec 5>&-
test "X$error_gyp" = "X0"
tap -R spec --gc test/js/*-test.js
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