[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH v3 16/18] tests: Introduce qemusecuritytest



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 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

Attachment: signature.asc
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]