Skip to content

Add test targets to the CMake build#475

Open
mszabo-wikia wants to merge 1 commit into
facebook:mainfrom
mszabo-wikia:add-test-infra
Open

Add test targets to the CMake build#475
mszabo-wikia wants to merge 1 commit into
facebook:mainfrom
mszabo-wikia:add-test-infra

Conversation

@mszabo-wikia

Copy link
Copy Markdown
Contributor

Extend the CMake build system added in D91269570 to also build / run tests. I mainly went for one listfile per subdirectory but lumped in smaller disparate tests under mcrouter/lib into a single target for simplicity. I omitted tests under mcrouter/lib/carbon/ as their utility for OSS mcrouter is limited compared to the scaffolding needed to run them (they interdepend on utilities from mcrouter/lib/network/test).

No changes to existing test files beyond the minimum needed to fix compilation, so there are many expected failures in an OSS run.

Tested using a fresh copy of fbcode_builder.

@meta-cla meta-cla Bot added the CLA Signed label Mar 10, 2026
Extend the CMake build system added in D91269570 to also build / run
tests. I mainly went for one listfile per subdirectory but lumped in
smaller disparate tests under mcrouter/lib into a single target for
simplicity. I omitted tests under mcrouter/lib/carbon/ as their
utility for OSS mcrouter is limited compared to the scaffolding needed
to run them (they interdepend on utilities from mcrouter/lib/network/test).

No changes to existing test files beyond the minimum needed to fix
compilation, so there are many expected failures in an OSS run.

Tested using a fresh copy of fbcode_builder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant