[Bug 294958] net/ucx: port gtest test suite to build on FreeBSD

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 02 May 2026 17:14:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294958

            Bug ID: 294958
           Summary: net/ucx: port gtest test suite to build on FreeBSD
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: rikka.goering@outlook.de

UCX's gtest suite is currently disabled on FreeBSD via a configure.ac guard
(build_gtest=no for freebsd*). Before we can track test coverage, the suite
needs to at least compile cleanly.

Work required:
 - Add devel/googletest to BUILD_DEPENDS
 - Remove the FreeBSD build_gtest=no exclusion in configure.ac (or condition it
on gtest availability)
 - Fix all FreeBSD compilation failures in test/gtest/ — primarily missing
includes, CPU_ZERO vs UCS_CPU_ZERO, basename() shadowing, Linux-only
epoll/timerfd/eventfd references in test helpers
 - Upstream patches that are generally applicable; keep FreeBSD-only
workarounds in files/ only if upstream won't take them

Tests that use /proc, /sys, or Linux-only kernel interfaces should be annotated
with UCS_TEST_SKIP_R rather than silently broken.
Once the suite compiles and make test runs without aborting on FreeBSD, this
ticket is done. Individual test failures are tracked in a different ticket.

-- 
You are receiving this mail because:
You are the assignee for the bug.