k3s/scripts/test

34 lines
542 B
Plaintext
Raw Normal View History

2019-11-01 16:48:28 +00:00
#!/bin/bash
set -e -x
cd $(dirname $0)/..
. ./scripts/test-helpers
artifacts=$(pwd)/dist/artifacts
mkdir -p $artifacts
# ---
. ./scripts/test-run-basics
2020-01-20 23:22:23 +00:00
# ---
2019-11-01 16:48:28 +00:00
E2E_OUTPUT=$artifacts test-run-sonobuoy
2020-01-20 23:22:23 +00:00
# ---
2019-11-01 16:48:28 +00:00
2020-01-21 18:07:12 +00:00
if [ "$DRONE_BUILD_EVENT" = 'tag' ]; then
printf "\033[33mSkipping remaining tests on tag.\033[m\n"
2020-01-21 02:34:01 +00:00
exit 0
fi
2020-01-20 23:22:23 +00:00
if [ "$ARCH" != 'amd64' ]; then
2020-01-21 02:34:01 +00:00
printf "\033[33mSkipping remaining tests, images not available for $ARCH.\033[m\n"
exit 0
2020-01-20 23:22:23 +00:00
fi
2019-11-01 16:48:28 +00:00
2020-01-20 23:22:23 +00:00
# ---
2019-11-01 16:48:28 +00:00
2020-01-20 23:22:23 +00:00
test-run-sonobuoy mysql
test-run-sonobuoy postgres
2019-11-01 16:48:28 +00:00
# test-run-sonobuoy dqlite