2017-10-06 16:33:22 +00:00
|
|
|
#!/bin/bash
|
2016-03-08 10:50:56 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
|
|
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
|
|
|
|
ROOT=$(dirname $(dirname $(realpath "$0")))
|
2017-03-17 17:19:31 +00:00
|
|
|
VSCODEUSERDATADIR=`mktemp -d -t 'myuserdatadir'`
|
2016-03-08 10:50:56 +00:00
|
|
|
else
|
|
|
|
ROOT=$(dirname $(dirname $(readlink -f $0)))
|
2017-03-17 17:19:31 +00:00
|
|
|
VSCODEUSERDATADIR=`mktemp -d 2>/dev/null`
|
2016-03-08 10:50:56 +00:00
|
|
|
fi
|
|
|
|
|
2017-04-25 06:50:57 +00:00
|
|
|
cd $ROOT
|
|
|
|
|
2017-11-15 10:15:41 +00:00
|
|
|
# Tests in the extension host
|
2018-01-26 15:16:36 +00: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 10:49:18 +00: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 10:48:41 +00: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 15:05:43 +00: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 10:58:24 +00:00
|
|
|
mkdir $ROOT/extensions/emmet/test-fixtures
|
2018-03-07 01:08:54 +00:00
|
|
|
./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 10:58:24 +00:00
|
|
|
rm -r $ROOT/extensions/emmet/test-fixtures
|
2017-11-15 10:15:41 +00:00
|
|
|
|
|
|
|
# Integration tests in AMD
|
|
|
|
./scripts/test.sh --runGlob **/*.integrationTest.js "$@"
|
|
|
|
|
2018-06-12 15:24:23 +00: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-03-17 15:52:31 +00:00
|
|
|
|
2017-04-25 06:50:57 +00:00
|
|
|
rm -r $VSCODEUSERDATADIR
|