add basic integration test

This commit is contained in:
Frederik Ring
2021-07-09 09:21:42 +02:00
parent 6ce197696a
commit 6d3e43680c
5 changed files with 59 additions and 5 deletions

15
test/default/test.sh Normal file → Executable file
View File

@@ -2,4 +2,17 @@
set -e
echo "all is well"
cd $(dirname $0)
docker-compose up -d
sleep 5
docker-compose exec backup backup
docker run --rm -it \
-v default_backup_data:/data alpine \
ash -c 'tar -xf /data/backup/test.tar.gz && test -f /backup/app_data/offen.db'
docker-compose down --volumes
echo "Test passed"