2019-11-01 16:48:28 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e -x
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
2020-12-22 20:35:58 +00:00
|
|
|
. ./scripts/codespell.sh
|
2020-11-17 20:21:12 +00:00
|
|
|
. ./scripts/version.sh
|
2019-11-01 16:48:28 +00:00
|
|
|
. ./scripts/test-helpers
|
|
|
|
|
|
|
|
artifacts=$(pwd)/dist/artifacts
|
|
|
|
mkdir -p $artifacts
|
|
|
|
|
|
|
|
# ---
|
|
|
|
|
2020-12-08 17:43:31 +00:00
|
|
|
docker ps
|
|
|
|
|
|
|
|
# ---
|
|
|
|
|
2019-11-01 16:48:28 +00:00
|
|
|
. ./scripts/test-run-basics
|
2020-12-08 17:43:31 +00:00
|
|
|
echo "Did test-run-basics $?"
|
2019-11-01 16:48:28 +00:00
|
|
|
|
2022-04-15 16:41:40 +00:00
|
|
|
# Skipping compact tests for s390x since there is no previous s390x release
|
|
|
|
if [ ${ARCH} != s390x ]; then
|
|
|
|
. ./scripts/test-run-compat
|
|
|
|
echo "Did test-run-compat $?"
|
|
|
|
fi
|
2021-03-01 08:58:50 +00:00
|
|
|
|
2022-01-07 00:05:59 +00:00
|
|
|
. ./scripts/test-run-etcd
|
|
|
|
echo "Did test-run-etcd $?"
|
|
|
|
|
2021-09-01 23:27:42 +00:00
|
|
|
. ./scripts/test-run-lazypull
|
|
|
|
echo "Did test-run-lazypull $?"
|
2021-06-29 18:27:50 +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."
|
2020-03-10 00:19:02 +00:00
|
|
|
|
2022-01-31 18:57:23 +00:00
|
|
|
E2E_OUTPUT=$artifacts test-run-sonobuoy serial
|
|
|
|
echo "Did test-run-sonobuoy serial $?"
|
|
|
|
|
2020-01-20 23:22:23 +00:00
|
|
|
# ---
|
2019-11-01 16:48:28 +00:00
|
|
|
|
2022-01-31 18:57:23 +00:00
|
|
|
if [ "$DRONE_BUILD_EVENT" = 'tag' ]; then
|
|
|
|
E2E_OUTPUT=$artifacts test-run-sonobuoy parallel
|
|
|
|
echo "Did test-run-sonobuoy parallel $?"
|
2020-03-10 00:19:02 +00:00
|
|
|
early-exit 'Skipping remaining tests on tag.'
|
2022-01-31 18:57:23 +00:00
|
|
|
fi
|
2020-01-20 23:22:23 +00:00
|
|
|
# ---
|
2019-11-01 16:48:28 +00:00
|
|
|
|
2022-01-31 18:57:23 +00:00
|
|
|
test-run-sonobuoy etcd serial
|
|
|
|
echo "Did test-run-sonobuoy-etcd serial $?"
|
|
|
|
test-run-sonobuoy mysql serial
|
|
|
|
echo "Did test-run-sonobuoy-mysqk serial $?"
|
|
|
|
test-run-sonobuoy postgres serial
|
|
|
|
echo "Did test-run-sonobuoy-postgres serial $?"
|
|
|
|
|
|
|
|
# Wait until all serial tests have finished
|
|
|
|
delay=15
|
|
|
|
(
|
|
|
|
set +x
|
|
|
|
while [ $(count-running-tests) -ge 1 ]; do
|
|
|
|
sleep $delay
|
|
|
|
done
|
|
|
|
)
|
|
|
|
E2E_OUTPUT=$artifacts test-run-sonobuoy parallel
|
|
|
|
echo "Did test-run-sonobuoy parallel $?"
|
|
|
|
test-run-sonobuoy etcd parallel
|
|
|
|
echo "Did test-run-sonobuoy-etcd parallel $?"
|
|
|
|
test-run-sonobuoy mysql parallel
|
|
|
|
echo "Did test-run-sonobuoy-mysql parallel $?"
|
|
|
|
test-run-sonobuoy postgres parallel
|
|
|
|
echo "Did test-run-sonobuoy-postgres parallel $?"
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-12-08 17:43:31 +00:00
|
|
|
|
|
|
|
exit 0
|