Skip to content

Make channel monitor test optional #43

Description

@daykin
  1. 0048-skip-non-loopback-iface-tests.patch

The channel monitor test has to be optional too. This can't be done in the pbuilder chroot environment during build process. Unfortunately github fails to upload the modfied patch, but the relevant part could look like this:

-TESTPROD_HOST += testPVAServer
-testPVAServer_SRCS += testPVAServer.cpp
-testHarness_SRCS += testPVAServer.cpp
-TESTS += testPVAServer
-
-TESTPROD_HOST += testChannelMonitor
-testChannelMonitor_SRCS += testChannelMonitor.cpp
-testHarness_SRCS += testChannelMonitor.cpp
-TESTS += testChannelMonitor
+# If there's an available interface to do this on
+ifneq ($(shell ip addr | grep MULTICAST | wc -l),0)
+ TESTPROD_HOST += testPVAServer
+ testPVAServer_SRCS += testPVAServer.cpp
+ testHarness_SRCS += testPVAServer.cpp
+ TESTS += testPVAServer
+
+ TESTPROD_HOST += testChannelMonitor
+ testChannelMonitor_SRCS += testChannelMonitor.cpp
+ testHarness_SRCS += testChannelMonitor.cpp
+ TESTS += testChannelMonitor
+endif

Originally posted by @chrschroeder in #41

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions