summaryrefslogtreecommitdiff
path: root/tests/keyctl/id/bad-args/runtest.sh
blob: 957d1a5c4893a0a31e48e298c0a630e405ca0f56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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