fix tests scripts to work after recent key refactoring

This commit is contained in:
Jaromil 2014-04-02 14:31:36 +02:00
parent db42a8fd3f
commit 0b846a79e7

View File

@ -77,7 +77,7 @@ tt --ignore-swap --unsecure-dev-mode --tomb-pwd ${dummypass} lock /tmp/test.tomb
notice "Testing open with wrong password" 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) } { 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" 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) } { test $? = 0 } && { results+=(open SUCCESS) }
@ -114,7 +114,7 @@ tt --unsecure-dev-mode close test
notice "Testing contents integrity" 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" 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 echo "test-$rnd test-$rnd" > /media/test.tomb/bind-hooks
touch $HOME/test-$rnd touch $HOME/test-$rnd
tt close test 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` rnd2=`cat $HOME/test-$rnd`
if [ "$rnd" = "$rnd2" ]; then if [ "$rnd" = "$rnd2" ]; then
notice "Bind hook on file matches" notice "Bind hook on file matches"