summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-07-01 12:06:36 +0100
committerw0rp <devw0rp@gmail.com>2018-07-01 12:06:59 +0100
commit3c5b6d1825144e3d955787613f3df9769e383091 (patch)
tree81f639868a7f07104e6a57615ec02e80a279c0c4
parentccfed164bc4203efb85444b05a05b1453423448f (diff)
downloadale-3c5b6d1825144e3d955787613f3df9769e383091.zip
Run Vint and custom checks together with just --linters-only
-rwxr-xr-xrun-tests40
1 files changed, 8 insertions, 32 deletions
diff --git a/run-tests b/run-tests
index 00983c38..5a9272cb 100755
--- a/run-tests
+++ b/run-tests
@@ -27,8 +27,7 @@ quiet_flag=''
run_neovim_02_tests=1
run_neovim_03_tests=1
run_vim_tests=1
-run_vint=1
-run_custom_checks=1
+run_linters=1
while [ $# -ne 0 ]; do
case $1 in
@@ -42,51 +41,31 @@ while [ $# -ne 0 ]; do
;;
--neovim-only)
run_vim_tests=0
- run_vint=0
- run_custom_checks=0
+ run_linters=0
shift
;;
--neovim-02-only)
run_neovim_03_tests=0
run_vim_tests=0
- run_vint=0
- run_custom_checks=0
+ run_linters=0
shift
;;
--neovim-03-only)
run_neovim_02_tests=0
run_vim_tests=0
- run_vint=0
- run_custom_checks=0
+ run_linters=0
shift
;;
--vim-only)
run_neovim_02_tests=0
run_neovim_03_tests=0
- run_vint=0
- run_custom_checks=0
+ run_linters=0
shift
;;
- --no-vint)
- run_vint=0
- shift
- ;;
- --vint-only)
- run_vim_tests=0
- run_neovim_02_tests=0
- run_neovim_03_tests=0
- run_custom_checks=0
- shift
- ;;
- --no-custom-checks)
- run_custom_checks=0
- shift
- ;;
- --custom-checks-only)
+ --linters-only)
run_vim_tests=0
run_neovim_02_tests=0
run_neovim_03_tests=0
- run_vint=0
shift
;;
--)
@@ -110,8 +89,7 @@ if [ $# -ne 0 ]; then
tests="$*"
# Don't run other tools when targeting tests.
- run_custom_checks=0
- run_vint=0
+ run_linters=0
fi
# Delete .swp files in the test directory, which cause Vim 8 to hang.
@@ -138,14 +116,12 @@ for vim in $(docker run --rm "$DOCKER_RUN_IMAGE" ls /vim-build/bin | grep '^neov
fi
done
-if ((run_vint)); then
+if ((run_linters)); then
echo "Starting Vint..."
file_number=$((file_number+1))
test/script/run-vint > "$output_dir/$file_number" 2>&1 &
pid_list="$pid_list $!"
-fi
-if ((run_custom_checks)); then
echo "Starting Custom checks..."
file_number=$((file_number+1))
test/script/custom-checks &> "$output_dir/$file_number" 2>&1 &