summaryrefslogtreecommitdiff
path: root/tests/keyctl/supports/valid/runtest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/keyctl/supports/valid/runtest.sh')
-rw-r--r--tests/keyctl/supports/valid/runtest.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/keyctl/supports/valid/runtest.sh b/tests/keyctl/supports/valid/runtest.sh
new file mode 100644
index 0000000000..2c62ef2cb5
--- /dev/null
+++ b/tests/keyctl/supports/valid/runtest.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+. ../../../prepare.inc.sh
+. ../../../toolbox.inc.sh
+
+
+# ---- do the actual testing ----
+
+result=PASS
+echo "++++ BEGINNING TEST" >$OUTPUTFILE
+
+# Check that listing caps works
+marker "LIST CAPS"
+supports
+
+# check that querying a cap works
+marker "QUERY CAP"
+supports --unrecognised xxx
+
+echo "++++ FINISHED TEST: $result" >>$OUTPUTFILE
+
+# --- then report the results in the database ---
+toolbox_report_result $TEST $result