From e03322250e55ffd9f51f12e76aa4768f9f240607 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 28 Jan 2019 11:55:12 -0800 Subject: [PATCH] Additional cleanup after merge --- Makefile | 13 ------------- tests/test-pre-scripts.sh | 8 ++++++-- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index ac462b7..7215c4b 100644 --- a/Makefile +++ b/Makefile @@ -22,11 +22,6 @@ test-x86: build-x86 cd tests && ./test.sh $(DOCKER_TAG) cd tests && ./test-pre-scripts.sh $(DOCKER_TAG) -.PHONY: test-arm -test-arm: build-arm - cd tests && .test.sh $(DOCKER_TAG):raspbian - cd tests && ./test-pre-scripts.sh $(DOCKER_TAG):raspbian - .PHONY: test-all test-all: test-x86 test-arm @@ -34,10 +29,6 @@ test-all: test-x86 test-arm test-s3-x86: cd tests && ./test-s3.sh ubuntu -.PHONY: test-s3-arm -test-s3-arm: - cd tests && ./test-s3.sh raspbian - .PHONY: test-s3-all test-s3-all: test-s3-x86 test-s3-arm @@ -45,10 +36,6 @@ test-s3-all: test-s3-x86 test-s3-arm shell-x86: build-x86 docker run --rm -it $(DOCKER_TAG) bash -.PHONY: shell-arm -shell-arm: build-arm - docker run --rm -it $(DOCKER_TAG):raspbian bash - .PHONY: shell shell: shell-x86 diff --git a/tests/test-pre-scripts.sh b/tests/test-pre-scripts.sh index 8482406..d09625e 100755 --- a/tests/test-pre-scripts.sh +++ b/tests/test-pre-scripts.sh @@ -8,6 +8,7 @@ if [ "$IN_CONTAINER" != "true" ] ; then docker run --rm \ -e IN_CONTAINER=true \ -e SKIP_ON_START=true \ + -e RESTIC_PASSWORD="Correct.Horse.Battery.Staple" \ -v "$(pwd)/test-pre-scripts.sh:/test.sh" \ -v "$(pwd)/test-pre-scripts:/scripts" \ $image \ @@ -28,6 +29,9 @@ else touch /data/test_database.db sqlite3 /data/test_database.db < /scripts/create-test-data.sql + echo "Fake a start and init repo" + CRON_SCHEDULE="" /start.sh + echo "Making backup..." /backup.sh @@ -41,7 +45,7 @@ else test -f /data/test_database.db && exit 1 || echo "Gone" echo "Restore backup..." - /restore.sh + /restore.sh latest echo "Verify restored files exist..." test -f /data/test_database.db @@ -67,5 +71,5 @@ else echo "Verify restore with incorrect passphrase fails..." echo "Fail to restore backup..." - PASSPHRASE=Incorrect.Mule.Solar.Paperclip /restore.sh && exit 1 || echo "OK" + RESTIC_PASSWORD=Incorrect.Mule.Solar.Paperclip /restore.sh latest && exit 1 || echo "OK" fi