borgmatic/scripts/run-end-to-end-tests
Dan Helfman 43c7c3b6be
Some checks reported errors
test / test (push) Failing after 15s
continuous-integration/drone/push Build was killed
First attempt at using Gitea Actions to run tests.
2024-03-06 08:32:55 -08:00

21 lines
658 B
Bash
Executable File

#!/bin/sh
# This script is for running end-to-end tests on a developer machine. It sets up database containers
# to run tests against, runs the tests, and then tears down the containers.
#
# Run this script from the root directory of the borgmatic source.
#
# For more information, see:
# https://torsion.org/borgmatic/docs/how-to/develop-on-borgmatic/
set -e
USER_PODMAN_SOCKET_PATH=/run/user/$UID/podman/podman.sock
if [ -e "$USER_PODMAN_SOCKET_PATH" ]; then
export DOCKER_HOST="unix://$USER_PODMAN_SOCKET_PATH"
fi
docker-compose --file tests/end-to-end/docker-compose.yaml up --force-recreate \
--renew-anon-volumes --abort-on-container-exit