You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3s/scripts/test

45 lines
678 B

5 years ago
#!/bin/bash
set -e -x
cd $(dirname $0)/..
. ./scripts/codespell.sh
. ./scripts/version.sh
5 years ago
. ./scripts/test-helpers
artifacts=$(pwd)/dist/artifacts
mkdir -p $artifacts
# ---
docker ps
# ---
5 years ago
. ./scripts/test-run-basics
echo "Did test-run-basics $?"
5 years ago
. ./scripts/test-run-compat
echo "Did test-run-compat $?"
# ---
5 years ago
[ "$ARCH" != 'amd64' ] && \
early-exit "Skipping remaining tests, images not available for $ARCH."
5 years ago
E2E_OUTPUT=$artifacts test-run-sonobuoy
echo "Did test-run-sonobuoy $?"
# ---
5 years ago
[ "$DRONE_BUILD_EVENT" = 'tag' ] && \
early-exit 'Skipping remaining tests on tag.'
# ---
5 years ago
test-run-sonobuoy mysql
test-run-sonobuoy postgres
. ./scripts/test-unit
exit 0