run_tests.sh 770 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env bash
  2. set -e
  3. set -o pipefail
  4. CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
  5. source "${CI_DIR}/common/build.sh"
  6. source "${CI_DIR}/common/test.sh"
  7. source "${CI_DIR}/common/suite.sh"
  8. rm -f "$END_MARKER"
  9. # Run all tests (with some caveats) if no input argument is given
  10. if (($# == 0)); then
  11. tests=('build_nvim')
  12. if test "$CLANG_SANITIZER" != "TSAN"; then
  13. # Additional threads are only created when the builtin UI starts, which
  14. # doesn't happen in the unit/functional tests
  15. if test "${FUNCTIONALTEST}" != "functionaltest-lua"; then
  16. tests+=('unittests')
  17. fi
  18. tests+=('functionaltests')
  19. fi
  20. tests+=('oldtests' 'install_nvim')
  21. else
  22. tests=("$@")
  23. fi
  24. for i in "${tests[@]}"; do
  25. eval "$i" || fail "$i"
  26. done
  27. end_tests