File: runtestsuite

package info (click to toggle)
node-process-nextick-args 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 100 kB
  • sloc: sh: 13; makefile: 10
file content (17 lines) | stat: -rwxr-xr-x 414 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e

# notice the / at end in order to load this module
PACKAGE='process-nextick-args'
SEDCMD="s,(require|resolve)\s*[(]\s*'[.]/,\\1('$PACKAGE/,g"

tmpdir=$(mktemp -d)
trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP

cp -r test* $tmpdir/test*
echo test.js | \
    xargs  -n1  \
	  sh -c 'set -e; echo "TESTING: $3"; sed -E "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
cd $tmpdir

tap -R spec test.js