Unstable tests (#7487)

Setup unstable tests
This commit is contained in:
Amir Omidi
2019-10-02 22:01:17 -07:00
committed by GitHub
parent 575d1c8543
commit 6582debd73
10 changed files with 55 additions and 12 deletions

View File

@@ -0,0 +1,9 @@
setlocal
set ADS_TEST_GREP=@UNSTABLE@
echo Running unstable tests
call %~dp0\sql-test-integration.bat
endlocal

View File

@@ -0,0 +1,17 @@
#!/bin/bash
set -e
if [[ "$OSTYPE" == "darwin"* ]]; then
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
ROOT=$(dirname $(dirname $(realpath "$0")))
else
ROOT=$(dirname $(dirname $(readlink -f $0)))
fi
cd $ROOT
export ADS_TEST_GREP=@UNSTABLE@
echo Running unstable tests
./scripts/sql-test-integration.sh

View File

@@ -6,6 +6,13 @@ set VSCODEUSERDATADIR=%TMP%\adsuser-%RANDOM%-%TIME:~6,5%
set VSCODEEXTENSIONSDIR=%TMP%\adsext-%RANDOM%-%TIME:~6,5%
echo VSCODEUSERDATADIR=%VSCODEUSERDATADIR%
echo VSCODEEXTENSIONSDIR=%VSCODEEXTENSIONSDIR%
if "%ADS_TEST_GREP%" == "" (
echo Running stable tests only
set ADS_TEST_GREP=@UNSTABLE@
SET ADS_TEST_INVERT_GREP=1
)
@echo OFF
if "%SKIP_PYTHON_INSTALL_TEST%" == "1" (

View File

@@ -12,6 +12,12 @@ else
VSCODEEXTDIR=`mktemp -d 2>/dev/null`
fi
if [[ "$ADS_TEST_GREP" == "" ]]; then
echo Running stable tests only
export ADS_TEST_GREP=@UNSTABLE@
export ADS_TEST_INVERT_GREP=1
fi
cd $ROOT
echo VSCODEUSERDATADIR=$VSCODEUSERDATADIR
echo VSCODEEXTDIR=$VSCODEEXTDIR