File: runtestsuite

package info (click to toggle)
node-source-map-support 0.5.10%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 340 kB
  • sloc: makefile: 11; sh: 11
file content (13 lines) | stat: -rwxr-xr-x 392 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -e
# notice the / at end in order to load this module
PACKAGE='source-map-support'
SEDCMD="s,require\s*[(]\s*(['\"])[.]/?([^'\"]*)(['\"])\s*[)],require(\1$PACKAGE\3),g"

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

cp -r test.js "$tmpdir"
cd "$tmpdir"
ln -s /usr/lib/nodejs/source-map-support/source-map-support.js source-map-support.js
mocha -R spec test.js