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