mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-29 05:35:25 +00:00
be3e823608
git-subtree-dir: lib/vscode git-subtree-split: e5a624b788d92b8d34d1392e4c4d9789406efe8f
22 lines
539 B
Bash
Executable File
22 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
|