mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-23 02:28:58 +00:00
fix tests scripts to work after recent key refactoring
This commit is contained in:
parent
db42a8fd3f
commit
0b846a79e7
@ -77,7 +77,7 @@ tt --ignore-swap --unsecure-dev-mode --tomb-pwd ${dummypass} lock /tmp/test.tomb
|
||||
|
||||
notice "Testing open with wrong password"
|
||||
|
||||
tt --unsecure-dev-mode --tomb-pwd wrongpassword open /tmp/test.tomb
|
||||
tt -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd wrongpassword open /tmp/test.tomb
|
||||
|
||||
{ test $? = 0 } || { results+=(badpass SUCCESS) }
|
||||
|
||||
@ -85,7 +85,7 @@ tt --unsecure-dev-mode --tomb-pwd wrongpassword open /tmp/test.tomb
|
||||
|
||||
notice "Testing open with good password"
|
||||
|
||||
tt --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
|
||||
tt -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
|
||||
|
||||
{ test $? = 0 } && { results+=(open SUCCESS) }
|
||||
|
||||
@ -114,7 +114,7 @@ tt --unsecure-dev-mode close test
|
||||
|
||||
notice "Testing contents integrity"
|
||||
|
||||
${T} --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
|
||||
${T} -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
|
||||
|
||||
crc2="sha256 /media/test.tomb/datacheck.raw"
|
||||
|
||||
@ -129,7 +129,7 @@ echo $rnd > /media/test.tomb/test-$rnd
|
||||
echo "test-$rnd test-$rnd" > /media/test.tomb/bind-hooks
|
||||
touch $HOME/test-$rnd
|
||||
tt close test
|
||||
tt --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
|
||||
tt -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
|
||||
rnd2=`cat $HOME/test-$rnd`
|
||||
if [ "$rnd" = "$rnd2" ]; then
|
||||
notice "Bind hook on file matches"
|
||||
|
Loading…
Reference in New Issue
Block a user