mirror of https://github.com/linkerd/linkerd2.git
35 lines
938 B
Bash
Executable File
35 lines
938 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script executes the full suite of integration tests, in series:
|
|
# 1. upgrade_integration_tests
|
|
# 2. helm_integration_tests
|
|
# 3. helm_upgrade_integration_tests
|
|
# 4. deep_integration_tests
|
|
# 5. external_issuer_integration_tests
|
|
|
|
bindir=$( cd "${BASH_SOURCE[0]%/*}" && pwd )
|
|
|
|
. "$bindir"/_test-run.sh
|
|
|
|
init_test_run "$@"
|
|
|
|
printf '==================RUNNING ALL TESTS==================\n'
|
|
printf 'Testing Linkerd version [%s] namespace [%s] k8s-context [%s]\n' "$linkerd_version" "$linkerd_namespace" "$k8s_context"
|
|
|
|
upgrade_integration_tests
|
|
helm_integration_tests
|
|
helm_upgrade_integration_tests
|
|
uninstall_integration_tests
|
|
deep_integration_tests
|
|
external_issuer_integration_tests
|
|
|
|
if [ $exit_code -eq 0 ]; then
|
|
printf '\n=== PASS: all tests passed\n'
|
|
cleanup
|
|
else
|
|
# `cleanup` is not called so that there is a chance to debug the problem
|
|
printf '\n=== FAIL: at least one test failed\n'
|
|
fi
|
|
|
|
exit $exit_code
|