mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
Add test for opening existing SQL file and typing text into it (#5816)
* Add test for opening existing SQL file and typing text into it * Clean up * More cleanup, remove unneeded queryEditor and add smoke test scripts * Update comments to be clearer
This commit is contained in:
10
scripts/test-smoke.bat
Normal file
10
scripts/test-smoke.bat
Normal file
@@ -0,0 +1,10 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
pushd "%~dp0\..\test\smoke"
|
||||
|
||||
node test\index.js %*
|
||||
|
||||
popd
|
||||
|
||||
endlocal
|
||||
13
scripts/test-smoke.sh
Normal file
13
scripts/test-smoke.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/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/test/smoke
|
||||
|
||||
node test/index.js "$@"
|
||||
Reference in New Issue
Block a user