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 <