meson: tests: build fake ssh binary

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
Pavel Hrdina 2020-06-18 02:02:58 +02:00
parent 8fe8df4b20
commit 9d8887fc80
2 changed files with 12 additions and 5 deletions

View File

@ -35,7 +35,6 @@ LDADDS = \
$(GLIB_LIBS) \
$(NULL)
test_helpers = ssh
test_programs = virshtest sockettest \
virhostcputest virbuftest \
commandtest seclabeltest \
@ -113,10 +112,6 @@ endif WITH_QEMU
endif WITH_ATTR
endif WITH_SECDRIVER_SELINUX
# This is a fake SSH we use from virnetsockettest
ssh_SOURCES = ssh.c
ssh_LDADD = $(COVERAGE_LDFLAGS)
if WITH_LIBXL
test_programs += xlconfigtest \
xmconfigtest libxlxml2domconfigtest

View File

@ -187,3 +187,15 @@ executable(
libvirt_no_indirect,
],
)
# This is a fake SSH we use from virnetsockettest
executable(
'ssh',
[ 'ssh.c' ],
dependencies: [
tests_dep,
],
link_args: [
coverage_flags,
],
)