3
. ../../../prepare.inc.sh
4
. ../../../toolbox.inc.sh
7
# ---- do the actual testing ----
10
echo "++++ BEGINNING TEST" >$OUTPUTFILE
12
# check that a bad key ID fails correctly
13
marker "CHECK CLEAR BAD KEY ID"
14
clear_keyring --fail 0
17
# create a non-keyring
19
create_key user lizard gizzard @s
22
# check that a non-keyring ID fails correctly
23
marker "CHECK CLEAR NON-KEYRING KEY"
24
clear_keyring --fail $keyid
27
# dispose of the key we were using
29
unlink_key --wait $keyid @s
31
# check that a non-existent key ID fails correctly
32
marker "CHECK CLEAR NON-EXISTENT KEY ID"
33
clear_keyring --fail $keyid
36
echo "++++ FINISHED TEST: $result" >>$OUTPUTFILE
38
# --- then report the results in the database ---
39
toolbox_report_result $TEST $result