X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/dd526fd23ca26dd31d87e64144e27e95aff94b8a..3df7bff7c4d9310d6a588de22660b88f82ffa3bf:/test/run-tests.sh diff --git a/test/run-tests.sh b/test/run-tests.sh index c8c6213..5c9db06 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -1,3 +1,16 @@ #!/usr/bin/env bash -cd "$( dirname "${BASH_SOURCE[0]}" )" && vim -Nu vimrc -c 'Vader! *' > /dev/null +# Exit on error. +set -e + +cd "$( dirname "${BASH_SOURCE[0]}" )" + +for dep in ../build/tabular ../build/vim-toml ../build/vim-json ../build/vader.vim; do + if [[ ! -d $dep ]]; then + echo "Missing dependency: $dep" + echo "You may just want to use 'make test'." + exit 1 + fi +done + +vim -Nu vimrc -c 'Vader! *' > /dev/null