From f3c18819d24976213554625be822ac1ccab2ae05 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Thu, 20 Jun 2013 10:26:12 +0200 Subject: [PATCH] documentation and test improvements also renamed 'backup' command into 'engrave' --- extras/test/runtests | 11 +++++---- tomb | 54 ++++++++++++++++++++++++++------------------ 2 files changed, 38 insertions(+), 27 deletions(-) diff --git a/extras/test/runtests b/extras/test/runtests index 04d3dbe..4630cc6 100755 --- a/extras/test/runtests +++ b/extras/test/runtests @@ -11,7 +11,7 @@ error() { _warning " ${@}"; } tt() { start_loops=(`sudo losetup -a |cut -d: -f1`) start_temps=(`find /dev/shm -name 'tomb*'`) - ${T} ${=@} + ${T} -D ${=@} res=$? loops=(`sudo losetup -a |cut -d: -f1`) temps=(`find /dev/shm -name 'tomb*'`) @@ -47,16 +47,20 @@ startloops=(`sudo losetup -a |cut -d: -f1`) -notice "Testing creation" +notice "Testing creation: dig" tt dig -s 20 /tmp/test.tomb { test $? = 0 } && { results+=(dig SUCCESS) } +notice "Testing creation: forge" + tt --ignore-swap --unsecure-dev-mode --tomb-pwd ${dummypass} --use-urandom forge /tmp/test.tomb.key { test $? = 0 } && { results+=(forge SUCCESS) } +notice "Testing creation: lock" + tt --ignore-swap --unsecure-dev-mode --tomb-pwd ${dummypass} lock /tmp/test.tomb -k /tmp/test.tomb.key { test $? = 0 } && { results+=(lock SUCCESS) } @@ -126,9 +130,6 @@ if [ "$rnd" = "$rnd2" ]; then else error "Bind hook on file reports incongruence" fi -sudo umount $HOME/test-$rnd -rm /media/test.tomb/bind-hooks -rm /media/test.tomb/test-$rnd tt close test diff --git a/tomb b/tomb index a6e2a6a..c70319d 100755 --- a/tomb +++ b/tomb @@ -254,43 +254,43 @@ is_valid_tomb() { usage() { cat <