Commit 17d177a0 authored by Bastien ROUCARIÈS's avatar Bastien ROUCARIÈS

Fix runtestsuite

parent f839e9d1
Tests: require
Depends: node-cipher-base
Tests: runtestsuite
Depends: node-cipher-base, node-tape (>= 4.6)
#!/bin/sh
set -e
# notice the / at end in order to load this module
PACKAGE='cipher-base'
SEDCMD="s,require\s*[(]\s*'[.][^']*'\s*[)],require('$PACKAGE'),g"
tmpdir=$(mktemp -d)
trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
cp test.js $tmpdir/test.js
echo 'test.js' |
xargs -n1 sh -c 'set -e; echo "TESTING: $3"; sed "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
tape $tmpdir/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