mirror of
https://github.com/Microsoft/vscode
synced 2024-10-31 10:00:51 +00:00
20 lines
423 B
Bash
20 lines
423 B
Bash
|
#!/bin/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
|
||
|
|
||
|
# Tests in AMD
|
||
|
./scripts/test.sh --runGlob **/*.releaseTest.js "$@"
|
||
|
|
||
|
|
||
|
rm -r $VSCODEUSERDATADIR
|