Add tests for keyctl
@@ -15,7 +15,7 @@ build:
number: 0
skip: true # [not linux]
run_exports:
- # stable within minor revisions: https://abi-laboratory.pro/tracker/timeline/keyutils/
+ # https://abi-laboratory.pro/tracker/timeline/keyutils/
- {{ pin_subpackage('keyutils', max_pin='x') }}
requirements:
@@ -23,12 +23,15 @@ requirements:
- {{ compiler('c') }}
- make
- file
- host:
- run:
test:
commands:
- test -f ${PREFIX}/lib/libkeyutils.so
+ - keyctl --version | grep '{{ version }}'
+ # These tests can't work inside docker without additional security flags
+ # - keyctl add user cf-keyctl-key cf-keyctl-value @s
+ # - keyctl print $(keyctl search @s user cf-keyctl-key) | grep cf-keyctl-value
+ # - keyctl unlink $(keyctl search @s user cf-keyctl-key) @s
about:
home: https://people.redhat.com/~dhowells/keyutils/
