]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: tests: build fake ssh binary
authorPavel Hrdina <phrdina@redhat.com>
Thu, 18 Jun 2020 00:02:58 +0000 (02:02 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:05 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
tests/Makefile.am
tests/meson.build

index d33b51d7f324e7ae3019e1991f4cf97671c70282..1756bb45fbf86a074cef6c5ba62feff9b77ffcf4 100644 (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
index fa116a0e24955ef72e074d3f0e4426995d53ffdd..d825526dc78fa66902d7724bd8bbbe45be6668b8 100644 (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,
+  ],
+)