mirror of
https://github.com/deajan/obackup.git
synced 2025-05-10 20:23:41 +02:00
More preflight checks
This commit is contained in:
parent
552f6e2b80
commit
84fa92e46c
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#TODO Encrypted Pull runs on F25 fail for decryption
|
#TODO Encrypted Pull runs on F25 fail for decryption
|
||||||
|
|
||||||
## obackup basic tests suite 2017010201
|
## obackup basic tests suite 2017010901
|
||||||
|
|
||||||
OBACKUP_DIR="$(pwd)"
|
OBACKUP_DIR="$(pwd)"
|
||||||
OBACKUP_DIR=${OBACKUP_DIR%%/dev*}
|
OBACKUP_DIR=${OBACKUP_DIR%%/dev*}
|
||||||
@ -138,6 +138,8 @@ function SetupGPG {
|
|||||||
CRYPT_TOOL=gpg
|
CRYPT_TOOL=gpg
|
||||||
else
|
else
|
||||||
echo "No gpg support"
|
echo "No gpg support"
|
||||||
|
AssertEquals "Failed to detect gpg" "1" $?
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Crypt tool=$CRYPT_TOOL"
|
echo "Crypt tool=$CRYPT_TOOL"
|
||||||
@ -276,6 +278,7 @@ function setUp () {
|
|||||||
touch "$SOURCE_DIR/$RECURSIVE_DIR/$R_DIR_1/$R_FILE_1"
|
touch "$SOURCE_DIR/$RECURSIVE_DIR/$R_DIR_1/$R_FILE_1"
|
||||||
touch "$SOURCE_DIR/$RECURSIVE_DIR/$R_DIR_2/$R_FILE_2"
|
touch "$SOURCE_DIR/$RECURSIVE_DIR/$R_DIR_2/$R_FILE_2"
|
||||||
dd if=/dev/urandom of="$SOURCE_DIR/$RECURSIVE_DIR/$R_DIR_3/$R_FILE_3" bs=1M count=2
|
dd if=/dev/urandom of="$SOURCE_DIR/$RECURSIVE_DIR/$R_DIR_3/$R_FILE_3" bs=1M count=2
|
||||||
|
AssertEquals "dd file creation" "0" $?
|
||||||
touch "$SOURCE_DIR/$RECURSIVE_DIR/$R_DIR_3/$EXCLUDED_FILE"
|
touch "$SOURCE_DIR/$RECURSIVE_DIR/$R_DIR_3/$EXCLUDED_FILE"
|
||||||
|
|
||||||
FilePresence=(
|
FilePresence=(
|
||||||
|
Loading…
Reference in New Issue
Block a user