vscode/scripts/test-integration.sh

33 lines
2.1 KiB
Bash
Raw Normal View History

#!/bin/bash
2016-03-08 18:50:56 +08:00
set -e
if [[ "$OSTYPE" == "darwin"* ]]; then
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
ROOT=$(dirname $(dirname $(realpath "$0")))
2017-03-18 01:19:31 +08:00
VSCODEUSERDATADIR=`mktemp -d -t 'myuserdatadir'`
2016-03-08 18:50:56 +08:00
else
ROOT=$(dirname $(dirname $(readlink -f $0)))
2017-03-18 01:19:31 +08:00
VSCODEUSERDATADIR=`mktemp -d 2>/dev/null`
2016-03-08 18:50:56 +08:00
fi
2017-04-25 14:50:57 +08:00
cd $ROOT
2018-10-30 06:23:39 +08:00
# Integration tests in AMD
./scripts/test.sh --runGlob **/*.integrationTest.js "$@"
# Tests in the extension host
2018-01-26 23:16:36 +08:00
./scripts/code.sh $ROOT/extensions/vscode-api-tests/testWorkspace --extensionDevelopmentPath=$ROOT/extensions/vscode-api-tests --extensionTestsPath=$ROOT/extensions/vscode-api-tests/out/singlefolder-tests --disableExtensions --user-data-dir=$VSCODEUSERDATADIR --skip-getting-started
2018-01-27 18:49:18 +08:00
./scripts/code.sh $ROOT/extensions/vscode-api-tests/testworkspace.code-workspace --extensionDevelopmentPath=$ROOT/extensions/vscode-api-tests --extensionTestsPath=$ROOT/extensions/vscode-api-tests/out/workspace-tests --disableExtensions --user-data-dir=$VSCODEUSERDATADIR --skip-getting-started
2017-11-15 18:48:41 +08:00
./scripts/code.sh $ROOT/extensions/vscode-colorize-tests/test --extensionDevelopmentPath=$ROOT/extensions/vscode-colorize-tests --extensionTestsPath=$ROOT/extensions/vscode-colorize-tests/out --disableExtensions --user-data-dir=$VSCODEUSERDATADIR --skip-getting-started
2018-05-24 23:05:43 +08:00
./scripts/code.sh $ROOT/extensions/markdown-language-features/test-fixtures --extensionDevelopmentPath=$ROOT/extensions/markdown-language-features --extensionTestsPath=$ROOT/extensions/markdown-language-features/out/test --disableExtensions --user-data-dir=$VSCODEUSERDATADIR --skip-getting-started
2018-03-06 18:58:24 +08:00
mkdir $ROOT/extensions/emmet/test-fixtures
./scripts/code.sh $ROOT/extensions/emmet/test-fixtures --extensionDevelopmentPath=$ROOT/extensions/emmet --extensionTestsPath=$ROOT/extensions/emmet/out/test --disableExtensions --user-data-dir=$VSCODEUSERDATADIR --skip-getting-started .
2018-03-06 18:58:24 +08:00
rm -r $ROOT/extensions/emmet/test-fixtures
2018-06-12 23:24:23 +08:00
# Tests in commonJS
cd $ROOT/extensions/css-language-features/server && $ROOT/scripts/node-electron.sh test/index.js
cd $ROOT/extensions/html-language-features/server && $ROOT/scripts/node-electron.sh test/index.js
2017-04-25 14:50:57 +08:00
rm -r $VSCODEUSERDATADIR