Skip to content

Add test targets to the CMake build#475

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

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

Conversation

@mszabo-wikia
Copy link
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.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant