[libvirt] [PATCH v3 16/18] tests: Introduce qemusecuritytest
Ján Tomko
jtomko at redhat.com
Wed Dec 19 13:54:20 UTC 2018
On Wed, Dec 12, 2018 at 01:41:00PM +0100, Michal Privoznik wrote:
>This test checks if security label remembering works correctly.
>It uses qemuSecurity* APIs to do that. And some mocking (even
>though it's not real mocking as we are used to from other tests
>like virpcitest). So far, only DAC driver is tested.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> cfg.mk | 4 +-
> src/util/virfile.h | 15 +-
> tests/Makefile.am | 10 +
> tests/qemusecuritymock.c | 480 +++++++++++++++++++++++++++++++++++++++
> tests/qemusecuritytest.c | 173 ++++++++++++++
> tests/qemusecuritytest.h | 28 +++
> 6 files changed, 703 insertions(+), 7 deletions(-)
> create mode 100644 tests/qemusecuritymock.c
> create mode 100644 tests/qemusecuritytest.c
> create mode 100644 tests/qemusecuritytest.h
>
sed -i 's/__QEMU_SECURITY_TEST_H__/LIBVIRT_QEMUSECURITYTEST_H/g' tests/qemusecuritytest.h
perl -0777 -ni -pe 's/ \*\n \* Author: [^\n]*\n//s' tests/qemusecurity*
Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20181219/fb3a1483/attachment-0001.sig>
More information about the libvir-list
mailing list