1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-12 08:54:00 +02:00
joplin/CliClient/run_test.sh

25 lines
599 B
Bash
Raw Normal View History

2017-06-13 22:58:17 +02:00
#!/bin/bash
START_DIR="$(pwd)"
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BUILD_DIR="$ROOT_DIR/tests-build"
FILTER="$1"
2017-06-13 22:58:17 +02:00
rsync -a --exclude "node_modules/" "$ROOT_DIR/tests/" "$BUILD_DIR/"
rsync -a "$ROOT_DIR/../ReactNativeClient/lib/" "$BUILD_DIR/lib/"
rsync -a "$ROOT_DIR/../ReactNativeClient/locales/" "$BUILD_DIR/locales/"
mkdir -p "$BUILD_DIR/data"
2017-06-13 22:58:17 +02:00
function finish {
cd "$START_DIR"
}
trap finish EXIT
cd "$ROOT_DIR"
if [[ $FILTER != "" ]]; then
npx jasmine --config=tests/support/jasmine.json --filter="$FILTER"
else
npx jasmine --config=tests/support/jasmine.json
fi