k3s/scripts/test

39 lines
595 B
Plaintext
Raw Normal View History

2019-11-01 16:48:28 +00:00
#!/bin/bash
set -e -x
cd $(dirname $0)/..
. ./scripts/codespell.sh
. ./scripts/version.sh
2019-11-01 16:48:28 +00:00
. ./scripts/test-helpers
artifacts=$(pwd)/dist/artifacts
mkdir -p $artifacts
# ---
docker ps
# ---
2019-11-01 16:48:28 +00:00
. ./scripts/test-run-basics
echo "Did test-run-basics $?"
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-04-19 15:52:51 +00:00
[ "$ARCH" != 'amd64' ] && \
early-exit "Skipping remaining tests, images not available for $ARCH."
2019-11-01 16:48:28 +00:00
E2E_OUTPUT=$artifacts test-run-sonobuoy
echo "Did test-run-sonobuoy $?"
2020-01-20 23:22:23 +00:00
# ---
2019-11-01 16:48:28 +00:00
[ "$DRONE_BUILD_EVENT" = 'tag' ] && \
early-exit 'Skipping remaining tests on tag.'
2020-01-21 02:34:01 +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
exit 0