|
|
@ -3,6 +3,8 @@ |
|
|
|
CURR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" |
|
|
|
CURR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" |
|
|
|
[ -d "$CURR_DIR" ] || { echo "FATAL: no current dir (maybe running in zsh?)"; exit 1; } |
|
|
|
[ -d "$CURR_DIR" ] || { echo "FATAL: no current dir (maybe running in zsh?)"; exit 1; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
: "${E2E_SKIP:=""}" |
|
|
|
|
|
|
|
|
|
|
|
# shellcheck source=./common.sh |
|
|
|
# shellcheck source=./common.sh |
|
|
|
source "$CURR_DIR/common.sh" |
|
|
|
source "$CURR_DIR/common.sh" |
|
|
|
|
|
|
|
|
|
|
@ -14,12 +16,14 @@ info "Preparing filesystem and environment..." |
|
|
|
|
|
|
|
|
|
|
|
mkdir -p /root/.kube |
|
|
|
mkdir -p /root/.kube |
|
|
|
|
|
|
|
|
|
|
|
info "Starting e2e tests..." |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for i in $CURR_DIR/test_*.sh ; do |
|
|
|
for i in $CURR_DIR/test_*.sh ; do |
|
|
|
base=$(basename $i .sh) |
|
|
|
base=$(basename $i .sh) |
|
|
|
|
|
|
|
if [[ $E2E_SKIP =~ (^| )$base($| ) ]]; then |
|
|
|
|
|
|
|
highlight "***** Skipping $base *****" |
|
|
|
|
|
|
|
else |
|
|
|
highlight "***** Running $base *****" |
|
|
|
highlight "***** Running $base *****" |
|
|
|
$i || abort "test $base failed" |
|
|
|
$i || abort "test $base failed" |
|
|
|
|
|
|
|
fi |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
exit 0 |
|
|
|
exit 0 |
|
|
|