mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 17:22:20 -05:00
* add an extension for integration tests * setup ads before running test * test setup * test cases * bash script * shorter temp folder name * code cleanup * add commented out original code * fix test error * test result path * rename results file * change file path * report smoke test results * test stablize * test stablization and configurable test servers * fix smoke test error * connection provider * simplify the integration test script * add comment * fix tslint error * address PR comments * add temp log to check whether the environment variable is already set * remove temp log * move api definition to testapi typing file * exclude integration tests extension * address comments
24 lines
702 B
Bash
24 lines
702 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
|
|
ROOT=$(dirname $(dirname $(realpath "$0")))
|
|
VSCODEUSERDATADIR=`mktemp -d -t 'myuserdatadir'`
|
|
VSCODEEXTDIR=`mktemp -d -t 'myextdir'`
|
|
else
|
|
ROOT=$(dirname $(dirname $(readlink -f $0)))
|
|
VSCODEUSERDATADIR=`mktemp -d 2>/dev/null`
|
|
VSCODEEXTDIR=`mktemp -d 2>/dev/null`
|
|
fi
|
|
|
|
cd $ROOT
|
|
echo $VSCODEUSERDATADIR
|
|
echo $VSCODEEXTDIR
|
|
|
|
./scripts/code.sh --extensionDevelopmentPath=$ROOT/extensions/integration-tests --extensionTestsPath=$ROOT/extensions/integration-tests/out --user-data-dir=$VSCODEUSERDATADIR --extensions-dir=$VSCODEEXTDIR
|
|
|
|
|
|
rm -r $VSCODEUSERDATADIR
|
|
rm -r $VSCODEEXTDIR
|