linkerd2/bin/test-run

39 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# This script executes the full suite of integration tests, in series:
# 1. upgrade_stable_integration_tests
# 2. upgrade_edge_integration_tests
# 3. helm_integration_tests
# 4. helm_upgrade_integration_tests
# 5. uninstall_integration_tests
# 6. deep_integration_tests
# 7. external_issuer_integration_tests
bindir=$( cd "${BASH_SOURCE[0]%/*}" && pwd )
# shellcheck source=_test-run.sh
. "$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_stable_integration_tests
upgrade_edge_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