2019-12-12 01:43:01 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-03-28 20:09:25 +02:00
|
|
|
# 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.
|
2019-12-12 01:43:01 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
|
2024-03-06 23:39:23 +01:00
|
|
|
set -ex
|
2019-12-12 01:43:01 +01:00
|
|
|
|
2023-04-10 23:26:54 +02:00
|
|
|
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
|
|
|
|
|
2019-12-12 06:24:37 +01:00
|
|
|
docker-compose --file tests/end-to-end/docker-compose.yaml up --force-recreate \
|
2024-03-06 23:54:53 +01:00
|
|
|
--renew-anon-volumes --abort-on-container-exit --exit-code-from tests --progress plain
|
2024-03-06 23:39:23 +01:00
|
|
|
find . -name borgmatic-1.8.9.dev0
|