vscode/scripts/test-documentation.sh
Rakib Fiha 7670c0c79c
Changed shebang same as code.sh (#109372)
* Changed shebang same as code.sh

* Added set -e in test.sh
2020-10-30 07:54:13 +01:00

21 lines
539 B
Bash
Executable file

#!/usr/bin/env bash
set -e
if [[ "$OSTYPE" == "darwin"* ]]; then
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
ROOT=$(dirname $(dirname $(realpath "$0")))
VSCODEUSERDATADIR=`mktemp -d -t 'myuserdatadir'`
else
ROOT=$(dirname $(dirname $(readlink -f $0)))
VSCODEUSERDATADIR=`mktemp -d 2>/dev/null`
fi
cd $ROOT
echo "Runs tests against the current documentation in https://github.com/microsoft/vscode-docs/tree/vnext"
# Tests in AMD
./scripts/test.sh --runGlob **/*.releaseTest.js "$@"
rm -r $VSCODEUSERDATADIR