HomePhabricator
Diffusion Comm 7c0b3bd69212

[services] Tunnelbroker - Moving CMakeLists file to use for gTest only

Description

[services] Tunnelbroker - Moving CMakeLists file to use for gTest only

Summary:
This diff is a part of the flat diffs stack to transform the current Tunnelbroker project into a Rust app by calling the current C++ codebase from Rust. The related transition task is ENG-1072.

This diff moves the current CMakeLists.txt file into the gtest test directory and makes it reduced to build only the gtest app for unit testing purposes only.

Related Linear task and discussion: ENG-2083

CI Notice:
The CI will fail on this and further diffs until the D5461 where the changes to CI build commands are made.
This stack will be landed all in one to prevent CI from failing on diffs out of this stack.

Test Plan:

  1. Test current diff CMakeLists test build:

Go to the C++ tests directory: services/tunnelbroker/src/libcpp/test.
Run the CMake build using Nix: nix develop --accept-flake-config --command bash -c "cmake -B build . && make -C build -j".
The expected result is the successfully building of the runTests app for gTests.

  1. Test completed stack:

To test it patch to D5436 using arc patch D5436, run nix develop.
Go to tunnelbroker service directory services/tunnelbroker and run the Cargo building process cargo build or cargo run.
The Rust application will be successfully built.

  1. CI Testing:

These diff changes are included as a part of the stack in the later D5461 diff, where the changes to CI build commands are made. The CI succeded on the D5461 which reflects that this changes are passing the build.

Reviewers: jon, varun, marcin, atul

Reviewed By: jon, atul

Subscribers: ashoat, tomek, atul, abosh

Differential Revision: https://phab.comm.dev/D5430

Details

Provenance
maxAuthored on Oct 20 2022, 6:26 AM
Reviewer
jon
Differential Revision
D5430: [services] Tunnelbroker - Moving CMakeLists file to use for gTest only
Parents
rCOMM176182a17bf2: [services] Tunnelbroker - Removing of deprecated C++ files
Branches
Unknown
Tags
Unknown