diff options
Diffstat (limited to 'tests/keyctl/id/bad-args/runtest.sh')
-rw-r--r-- | tests/keyctl/id/bad-args/runtest.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/keyctl/id/bad-args/runtest.sh b/tests/keyctl/id/bad-args/runtest.sh new file mode 100644 index 0000000..957d1a5 --- /dev/null +++ b/tests/keyctl/id/bad-args/runtest.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +. ../../../prepare.inc.sh +. ../../../toolbox.inc.sh + + +# ---- do the actual testing ---- + +result=PASS +echo "++++ BEGINNING TEST" >$OUTPUTFILE + +# check that a bad key ID fails correctly +marker "CHECK BAD KEY ID" +id_key --fail 0 +expect_error EINVAL + +# check non-existent standard IDs +marker "CHECK BAD IDS" +id_key --fail2 @wwww +id_key --fail2 @qqqq + +echo "++++ FINISHED TEST: $result" >>$OUTPUTFILE + +# --- then report the results in the database --- +toolbox_report_result $TEST $result |