tomb

the crypto undertaker
git clone git://parazyd.org/tomb.git
Log | Files | Refs | README | LICENSE

commit 80f8b5838793136525ef738df59cb4ae9f60e69d
parent 0754e9acd251738fb78c087f1640ad514865132e
Author: hellekin <hellekin@cepheide.org>
Date:   Sun, 26 Oct 2014 14:41:33 -0300

[cleanup] Remove those test-* files

Diffstat:
Mextras/test/runtests | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/extras/test/runtests b/extras/test/runtests @@ -143,12 +143,13 @@ ${T} -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd ${dummypassnew} open / notice "Testing bind hooks" rnd=$RANDOM -echo $rnd > /media/test.tomb/test-$rnd -echo "test-$rnd test-$rnd" > /media/test.tomb/bind-hooks -touch $HOME/test-$rnd +bindtest="dyne-tomb-bind-test-$rnd" +echo $rnd > /media/test.tomb/$bindtest +echo "$bindtestfile $bindtest" > /media/test.tomb/bind-hooks +touch $HOME/$bindtest tt close test tt -k /tmp/test.tomb.key --unsecure-dev-mode --tomb-pwd ${dummypassnew} open /tmp/test.tomb -rnd2=`cat $HOME/test-$rnd` +rnd2=`cat $HOME/$bindtest` if [ "$rnd" = "$rnd2" ]; then notice "Bind hook on file matches" results+=(bind SUCCESS) @@ -157,7 +158,8 @@ else error "Bind hook on file reports incongruence" fi tt close test - +# Remove all test files in case some previous tests failed. +rm -f $HOME/dyne-tomb-bind-test-* notice "Testing set key"