2015-07-05 00:52:36 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
2022-02-06 04:41:52 -07:00
|
|
|
run_tests(){
|
|
|
|
if test "$CLANG_SANITIZER" != "TSAN"; then
|
|
|
|
# Additional threads are only created when the builtin UI starts, which
|
|
|
|
# doesn't happen in the unit/functional tests
|
|
|
|
if test "${FUNCTIONALTEST}" != "functionaltest-lua"; then
|
2022-02-06 04:55:28 -07:00
|
|
|
run_suite run_unittests unittests
|
2022-02-06 04:41:52 -07:00
|
|
|
fi
|
2022-02-06 04:55:28 -07:00
|
|
|
run_suite run_functionaltests functionaltests
|
2022-02-06 04:41:52 -07:00
|
|
|
fi
|
2022-02-06 04:55:28 -07:00
|
|
|
run_suite run_oldtests oldtests
|
|
|
|
run_suite install_nvim install_nvim
|
2022-02-06 04:41:52 -07:00
|
|
|
}
|
|
|
|
|
2015-07-05 00:52:36 -07:00
|
|
|
CI_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
source "${CI_DIR}/common/build.sh"
|
|
|
|
source "${CI_DIR}/common/test.sh"
|
2017-03-31 06:02:53 -07:00
|
|
|
source "${CI_DIR}/common/suite.sh"
|
|
|
|
|
2022-02-06 04:41:52 -07:00
|
|
|
run_suite 'build_nvim' 'build'
|
|
|
|
run_suite 'run_tests' 'tests'
|
2017-04-30 20:45:24 -07:00
|
|
|
|
2017-04-04 10:15:30 -07:00
|
|
|
end_tests
|