mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
tests: mock swtpm initialization for all qemu tests
Don't restrict this to domcaps testing only, we will soon need it for qemu command line validation Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
b233bf89dc
commit
8b09303f24
@ -22,7 +22,6 @@
|
|||||||
#include "domain_capabilities.h"
|
#include "domain_capabilities.h"
|
||||||
#include "virfilewrapper.h"
|
#include "virfilewrapper.h"
|
||||||
#include "configmake.h"
|
#include "configmake.h"
|
||||||
#include "virtpm.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define VIR_FROM_THIS VIR_FROM_NONE
|
#define VIR_FROM_THIS VIR_FROM_NONE
|
||||||
@ -129,12 +128,6 @@ fillQemuCaps(virDomainCaps *domCaps,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Enough to tell capabilities code that swtpm is usable */
|
|
||||||
bool virTPMHasSwtpm(void)
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* WITH_QEMU */
|
#endif /* WITH_QEMU */
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# include "qemu/qemu_capspriv.h"
|
# include "qemu/qemu_capspriv.h"
|
||||||
# include "virstring.h"
|
# include "virstring.h"
|
||||||
# include "virfilecache.h"
|
# include "virfilecache.h"
|
||||||
|
# include "virtpm.h"
|
||||||
|
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
# include <fcntl.h>
|
# include <fcntl.h>
|
||||||
@ -138,6 +139,13 @@ virFindFileInPath(const char *file)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Enough to tell capabilities code that swtpm is usable */
|
||||||
|
bool virTPMHasSwtpm(void)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
virCapsHostNUMA *
|
virCapsHostNUMA *
|
||||||
virCapabilitiesHostNUMANewHost(void)
|
virCapabilitiesHostNUMANewHost(void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user