tomb

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

20_recipients.sh (1052B)


      1 #!/usr/bin/env zsh
      2 
      3 export test_description="Testing tomb with GnuPG keys"
      4 
      5 source ./setup
      6 
      7 test_export "recipient"
      8 test_expect_success 'Testing tomb with GnuPG keys: creation' '
      9     tt_dig -s 20 &&
     10     tt_forge -g -r $KEY1 &&
     11     tt_lock -g -r $KEY1
     12     '
     13 
     14 test_expect_success 'Testing tomb with GnuPG keys: open & close' '
     15     tt_open -g &&
     16     tt_close
     17     '
     18 
     19 test_export "default"
     20 test_expect_success 'Testing tomb with GnuPG keys using the default recipient' '
     21     tt_dig -s 20 &&
     22     tt_forge -g &&
     23     tt_lock -g &&
     24     gpg -d --status-fd 2 $tomb_key 1> /dev/null 2> $TMP/default.tmp &&
     25     [[ ! -z "$(grep "Tomb Test 2" $TMP/default.tmp)" ]]
     26     '
     27 
     28 test_export "hidden"
     29 test_expect_success 'Testing tomb with GnuPG keys using hidden recipient' '
     30     tt_dig -s 20 &&
     31     tt_forge -g -R $KEY1 &&
     32     tt_lock -g -R $KEY1
     33     '
     34 
     35 test_export "shared"
     36 test_expect_success 'Testing tomb with GnuPG keys and shared tomb' '
     37     tt_dig -s 20 &&
     38     tt_forge -g -r $KEY1,$KEY2 &&
     39     tt_lock -g -r $KEY1 &&
     40     tt_open -g &&
     41     tt_close
     42     '
     43 
     44 test_done