2020-08-07 09:48:29 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Simple test runner for the wallet integration tests.
|
|
|
|
#
|
|
|
|
# Usage: $0 TESTGLOB
|
|
|
|
#
|
|
|
|
# The TESTGLOB can be used to select which test cases to execute
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
|
|
echo "Usage: $0 SCENARIO"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
|
|
|
|
cd $DIR
|
|
|
|
|
2020-08-10 13:18:38 +02:00
|
|
|
./node_modules/.bin/tsc -b
|
2020-08-07 09:48:29 +02:00
|
|
|
|
|
|
|
export ESM_OPTIONS='{"sourceMap": true}'
|
|
|
|
|
|
|
|
file=lib/scenario-$1.js
|
|
|
|
|
|
|
|
exec node -r source-map-support/register -r esm $file
|