aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar TheMightyV <themightyv@protonmail.com> 2022-01-05 19:58:46 +0100
committerGravatar TheMightyV <themightyv@protonmail.com> 2022-01-05 19:58:46 +0100
commit1ba766d277fc35435ca80b9fcfa28c57468f7bce (patch)
tree5a625c9555526febef830a36dc2f7a18ea9b25b5
parent9a80e613c6838b5c73d2e18237c6547fa8ec3dfc (diff)
downloadminecraft-server-tools-1ba766d277fc35435ca80b9fcfa28c57468f7bce.tar.gz
tests always verbose
tests block spacing tests show list of backups fixed bad variable in bup_ls_all
-rw-r--r--backends/bup.sh2
-rwxr-xr-xtests.sh12
2 files changed, 9 insertions, 5 deletions
diff --git a/backends/bup.sh b/backends/bup.sh
index cae36fe..d1250de 100644
--- a/backends/bup.sh
+++ b/backends/bup.sh
@@ -66,7 +66,7 @@ function bup_ls_dir() {
function bup_ls_all() {
for backup_dir in ${BACKUP_DIRS[*]}
do
- echo "bup: backups in \"$BACKUP_DIR\":"
+ echo "bup: backups in \"$backup_dir\":"
bup -d "$(bup_local)" ls -r "$backup_dir" --human-readable -l "$BACKUP_NAME"
done
}
diff --git a/tests.sh b/tests.sh
index b12a32a..fc6a692 100755
--- a/tests.sh
+++ b/tests.sh
@@ -5,6 +5,8 @@
source server.sh
+VERBOSE=1
+
WORLD_NAME="test_world"
function test_backend() {
@@ -53,6 +55,8 @@ function test_backend() {
exit
fi
+ ls_backups
+
# corrupting current (new) world
find "$DIR/$WORLD_NAME" -type f -exec shred {} \;
@@ -102,13 +106,13 @@ function test_backend() {
cleanup
}
-echo "Testing tar backend"
+printf "\n\n\nTesting tar backend\n"
test_backend "tar"
-echo "Testing bup backend"
+printf "\n\n\nTesting bup backend\n"
test_backend "bup"
-echo "Testing borg backend"
+printf "\n\n\nTesting borg backend\n"
test_backend "borg"
-echo "All tests passed"
+printf "\n\n\nAll tests passed\n"