check: Only test ne2000 when it is compiled in
authorJuan Quintela <quintela@redhat.com>
Tue, 10 Jul 2018 13:24:17 +0000 (15:24 +0200)
committerJuan Quintela <quintela@redhat.com>
Tue, 21 Aug 2018 17:52:15 +0000 (19:52 +0200)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
tests/Makefile.include

index b68555e94af66bfbed9167a658623f8be65cb96c..24c8a9b24caac7664cd70e12e7e4040a2a882c07 100644 (file)
@@ -222,8 +222,8 @@ gcov-files-pci-y += hw/net/pcnet.c
 gcov-files-pci-y += hw/net/pcnet-pci.c
 check-qtest-pci-y += tests/eepro100-test$(EXESUF)
 gcov-files-pci-y += hw/net/eepro100.c
-check-qtest-pci-y += tests/ne2000-test$(EXESUF)
-gcov-files-pci-y += hw/net/ne2000.c
+check-qtest-pci-$(CONFIG_NE2000_PCI) += tests/ne2000-test$(EXESUF)
+gcov-files-pci-$(CONFIG_NE2000_PCI) += hw/net/ne2000.c
 check-qtest-pci-y += tests/nvme-test$(EXESUF)
 gcov-files-pci-y += hw/block/nvme.c
 check-qtest-pci-y += tests/ac97-test$(EXESUF)