URI: 
       timage and dummy pass selection in test suite - tomb - the crypto undertaker
  HTML git clone git://parazyd.org/tomb.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit f1318eb1302f793380ff8793ae72f0567193c723
   DIR parent 8d0c8e51e840744e02b8303599f85b6f4e6e0e7e
  HTML Author: Jaromil <jaromil@dyne.org>
       Date:   Wed, 12 Jun 2013 13:41:12 +0200
       
       image and dummy pass selection in test suite
       
       Diffstat:
         A extras/test/arditi.jpg              |       0 
         M extras/test/runtests                |      27 ++++++++++++++-------------
       
       2 files changed, 14 insertions(+), 13 deletions(-)
       ---
   DIR diff --git a/extras/test/arditi.jpg b/extras/test/arditi.jpg
       Binary files differ.
   DIR diff --git a/extras/test/runtests b/extras/test/runtests
       t@@ -4,6 +4,7 @@
        
        T="../../tomb"
        source ${T} source
       +dummypass=test
        
        notice() { print; yes "${@}"; print; }
        error() { _warning "     ${@}"; }
       t@@ -52,11 +53,11 @@ tt dig -s 20 /tmp/test.tomb
        
        { test $? = 0 } && { results+=(dig SUCCESS) }
        
       -tt --ignore-swap --unsecure-dev-mode --tomb-pwd f00za --use-urandom forge /tmp/test.tomb.key
       +tt --ignore-swap --unsecure-dev-mode --tomb-pwd ${dummypass} --use-urandom forge /tmp/test.tomb.key
        
        { test $? = 0 } && { results+=(forge SUCCESS) }
        
       -tt --ignore-swap --unsecure-dev-mode --tomb-pwd f00za lock /tmp/test.tomb -k /tmp/test.tomb.key
       +tt --ignore-swap --unsecure-dev-mode --tomb-pwd ${dummypass} lock /tmp/test.tomb -k /tmp/test.tomb.key
        
        { test $? = 0 } && { results+=(lock SUCCESS) }
        
       t@@ -72,7 +73,7 @@ tt --unsecure-dev-mode --tomb-pwd wrongpassword open /tmp/test.tomb
        
        notice "Testing open with good password"
        
       -tt --unsecure-dev-mode --tomb-pwd f00za open /tmp/test.tomb
       +tt --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
        
        { test $? = 0 } && { results+=(open SUCCESS) }
        
       t@@ -93,7 +94,7 @@ tt --unsecure-dev-mode close test
        { test $RESIZER = 1 } && {
            notice "Testing resize to 30 MiB"
            
       -    tt --unsecure-dev-mode --tomb-pwd f00za -k /tmp/test.tomb.key resize /tmp/test.tomb -s 30
       +    tt --unsecure-dev-mode --tomb-pwd ${dummypass} -k /tmp/test.tomb.key resize /tmp/test.tomb -s 30
            
            { test $? = 0 } && { results+=(resize SUCCESS) }
        
       t@@ -101,7 +102,7 @@ tt --unsecure-dev-mode close test
        
        notice "Testing contents integrity"
        
       -${T} --unsecure-dev-mode --tomb-pwd f00za open /tmp/test.tomb
       +${T} --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/test.tomb
        
        crc2="sha256 /media/test.tomb/datacheck.raw"
        
       t@@ -116,7 +117,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 f00za open /tmp/test.tomb
       +tt --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"
       t@@ -136,21 +137,21 @@ tt close test
            notice "Testing KDF key"
            sudo rm -f /tmp/test.tomb.kdf /tmp/kdf.tomb
            
       -    tt --unsecure-dev-mode --tomb-pwd f00za --use-urandom --kdf 1 forge /tmp/test.tomb.kdf
       +    tt --unsecure-dev-mode --tomb-pwd ${dummypass} --use-urandom --kdf 1 forge /tmp/test.tomb.kdf
            
            { test $? = 0 } && { results+=(kdforge SUCCESS) }
            
       -    tt --unsecure-dev-mode --tomb-pwd f00za --kdf 1 passwd /tmp/test.tomb.kdf
       +    tt --unsecure-dev-mode --tomb-pwd ${dummypass} --kdf 1 passwd /tmp/test.tomb.kdf
            
            { test $? = 0 } && { results+=(kdfpass SUCCESS) }
            
            ${T} dig -s 10 /tmp/kdf.tomb
            
       -    tt --ignore-swap --unsecure-dev-mode --tomb-pwd f00za lock /tmp/kdf.tomb -k /tmp/test.tomb.kdf
       +    tt --ignore-swap --unsecure-dev-mode --tomb-pwd ${dummypass} lock /tmp/kdf.tomb -k /tmp/test.tomb.kdf
            
            { test $? = 0 } && { results+=(kdflock SUCCESS) }
            
       -    tt --ignore-swap --unsecure-dev-mode --tomb-pwd f00za open /tmp/kdf.tomb -k /tmp/test.tomb.kdf
       +    tt --ignore-swap --unsecure-dev-mode --tomb-pwd ${dummypass} open /tmp/kdf.tomb -k /tmp/test.tomb.kdf
            
            { test $? = 0 } && { results+=(kdfopen SUCCESS) }
            
       t@@ -165,15 +166,15 @@ tt close test
            cp -f arditi.jpg /tmp/tomb.jpg
            sudo rm -f /tmp/test.steg.key
            
       -    tt --unsecure-dev-mode --tomb-pwd f00za bury -k /tmp/test.tomb.key /tmp/tomb.jpg
       +    tt --unsecure-dev-mode --tomb-pwd ${dummypass} bury -k /tmp/test.tomb.key /tmp/tomb.jpg
        
            { test $? = 0 } && { results+=(stgin SUCCESS) }
        
       -    tt --unsecure-dev-mode --tomb-pwd f00za exhume -k /tmp/test.steg.key /tmp/tomb.jpg
       +    tt --unsecure-dev-mode --tomb-pwd ${dummypass} exhume -k /tmp/test.steg.key /tmp/tomb.jpg
        
            { test $? = 0 } && { results+=(stgout SUCCESS) }
        
       -    tt --unsecure-dev-mode --tomb-pwd f00za open -k /tmp/test.steg.key /tmp/test.tomb
       +    tt --unsecure-dev-mode --tomb-pwd ${dummypass} open -k /tmp/test.steg.key /tmp/test.tomb
        
            { test $? = 0 } && { results+=(stgopen SUCCESS) }