Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/scripts/test-documentation.sh
3520 views
1
#!/usr/bin/env bash
2
set -e
3
4
if [[ "$OSTYPE" == "darwin"* ]]; then
5
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
6
ROOT=$(dirname $(dirname $(realpath "$0")))
7
VSCODEUSERDATADIR=`mktemp -d -t 'myuserdatadir'`
8
else
9
ROOT=$(dirname $(dirname $(readlink -f $0)))
10
VSCODEUSERDATADIR=`mktemp -d 2>/dev/null`
11
fi
12
13
cd $ROOT
14
15
echo "Runs tests against the current documentation in https://github.com/microsoft/vscode-docs/tree/vnext"
16
17
# Tests
18
./scripts/test.sh --runGlob **/*.releaseTest.js "$@"
19
20
21
rm -r $VSCODEUSERDATADIR
22
23