mirror of https://github.com/linkerd/linkerd2.git
29 lines
721 B
Bash
Executable File
29 lines
721 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
bindir=$( cd "${BASH_SOURCE[0]%/*}" && pwd )
|
|
|
|
# shellcheck source=_test-helpers.sh
|
|
. "$bindir"/_test-helpers.sh
|
|
handle_input "$@"
|
|
|
|
if [ -n "$test_name" ]; then
|
|
config=$(get_test_config "$test_name")
|
|
start_test "$test_name" "$config"
|
|
else
|
|
printf '==================RUNNING ALL TESTS==================
|
|
Note: cluster-domain requires a specific cluster configuration and is skipped by default\n\n'
|
|
|
|
for test_name in "${default_test_names[@]}"; do
|
|
config=$(get_test_config "$test_name")
|
|
start_test "$test_name" "$config"
|
|
done
|
|
|
|
if [ $exit_code -eq 0 ]; then
|
|
printf '\n=== PASS: all tests passed\n'
|
|
else
|
|
printf '\n=== FAIL: at least one test failed\n'
|
|
fi
|
|
|
|
exit $exit_code
|
|
fi
|