mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
remove duplicate code (#20664)
* remove dupe code * fix step name * fix errors * comment out arc * fix timeout issue * fix typo * update name
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
setlocal
|
||||
|
||||
set ADS_TEST_GREP=@UNSTABLE@
|
||||
set ADS_TEST_INVERT_GREP=
|
||||
|
||||
echo Running UNSTABLE ADS Extension Integration tests
|
||||
|
||||
call %~dp0\sql-test-integration.bat
|
||||
|
||||
endlocal
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/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@|integration test setup)"
|
||||
export ADS_TEST_INVERT_GREP=0
|
||||
|
||||
echo Running UNSTABLE ADS Extension Integration tests
|
||||
|
||||
./scripts/sql-test-integration.sh
|
||||
@@ -31,13 +31,6 @@ if "%INTEGRATION_TEST_ELECTRON_PATH%"=="" (
|
||||
echo "Running integration tests with '%INTEGRATION_TEST_ELECTRON_PATH%' as build."
|
||||
)
|
||||
|
||||
:: Default to only running stable tests if test grep isn't set
|
||||
if "%ADS_TEST_GREP%" == "" (
|
||||
echo Running stable tests only
|
||||
set ADS_TEST_GREP=@UNSTABLE@
|
||||
SET ADS_TEST_INVERT_GREP=1
|
||||
)
|
||||
|
||||
if "%SKIP_PYTHON_INSTALL_TEST%" == "1" (
|
||||
echo Skipping Python installation tests.
|
||||
) else (
|
||||
|
||||
@@ -13,13 +13,6 @@ else
|
||||
LINUX_NO_SANDBOX="--no-sandbox" # Electron 6 introduces a chrome-sandbox that requires root to run. This can fail. Disable sandbox via --no-sandbox.
|
||||
fi
|
||||
|
||||
# Default to only running stable tests if test grep isn't set
|
||||
if [[ "$ADS_TEST_GREP" == "" ]]; then
|
||||
echo Running stable tests only
|
||||
export ADS_TEST_GREP=@UNSTABLE@
|
||||
export ADS_TEST_INVERT_GREP=1
|
||||
fi
|
||||
|
||||
# Figure out which Electron to use for running tests
|
||||
if [ -z "$INTEGRATION_TEST_ELECTRON_PATH" ]
|
||||
then
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
:: Runs UNSTABLE Extension Tests
|
||||
|
||||
setlocal
|
||||
|
||||
set ADS_TEST_GREP=@UNSTABLE@
|
||||
set ADS_TEST_INVERT_GREP=
|
||||
|
||||
echo Running UNSTABLE Extension Tests
|
||||
|
||||
call %~dp0\test-extensions-unit.bat
|
||||
|
||||
endlocal
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/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@
|
||||
export ADS_TEST_INVERT_GREP=
|
||||
echo Running UNSTABLE Extension Tests
|
||||
|
||||
./scripts/test-extensions-unit.sh
|
||||
@@ -49,13 +49,6 @@ if "%INTEGRATION_TEST_ELECTRON_PATH%"=="" (
|
||||
echo Running unit tests with '%INTEGRATION_TEST_ELECTRON_PATH%' as build.
|
||||
)
|
||||
|
||||
:: Default to only running stable tests if test grep isn't set
|
||||
if "%ADS_TEST_GREP%" == "" (
|
||||
echo "Running stable tests only"
|
||||
set ADS_TEST_GREP=@UNSTABLE@
|
||||
SET ADS_TEST_INVERT_GREP=1
|
||||
)
|
||||
|
||||
set ALL_PLATFORMS_API_TESTS_EXTRA_ARGS=--disable-telemetry --crash-reporter-directory=%VSCODECRASHDIR% --no-cached-data --disable-updates --user-data-dir=%VSCODEUSERDATADIR% --remote-debugging-port=9222 --extensions-dir=%VSCODEEXTENSIONSDIR%
|
||||
|
||||
echo ***************************************************
|
||||
|
||||
@@ -53,13 +53,6 @@ else {
|
||||
console.log(`Running unit tests with '${process.env.INTEGRATION_TEST_ELECTRON_PATH}' as build.`);
|
||||
}
|
||||
|
||||
if (!process.env.ADS_TEST_GREP) {
|
||||
console.log('Running stable tests only');
|
||||
|
||||
process.env.ADS_TEST_GREP = '@UNSTABLE@';
|
||||
process.env.ADS_TEST_INVERT_GREP = 1;
|
||||
}
|
||||
|
||||
// execute tests
|
||||
|
||||
for (const ext of argv.extensions) {
|
||||
|
||||
@@ -15,13 +15,6 @@ VSCODEEXTDIR=`mktemp -d -t adsext_XXXXXXXXXX 2>/dev/null`
|
||||
VSCODECRASHDIR=$ROOT/.build/crashes
|
||||
cd $ROOT
|
||||
|
||||
# Default to only running stable tests if test grep isn't set
|
||||
if [[ "$ADS_TEST_GREP" == "" ]]; then
|
||||
echo Running stable tests only
|
||||
export ADS_TEST_GREP=@UNSTABLE@
|
||||
export ADS_TEST_INVERT_GREP=1
|
||||
fi
|
||||
|
||||
# Figure out which Electron to use for running tests
|
||||
if [ -z "$INTEGRATION_TEST_ELECTRON_PATH" ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user