Page MenuHomePhabricator

[Services] Fix tunnelbroker ctest usage
ClosedPublic

Authored by jon on Aug 9 2022, 10:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 30, 3:01 AM
Unknown Object (File)
Fri, Jun 28, 10:26 AM
Unknown Object (File)
Wed, Jun 26, 6:44 AM
Unknown Object (File)
Wed, Jun 26, 6:44 AM
Unknown Object (File)
Wed, Jun 26, 6:43 AM
Unknown Object (File)
Wed, Jun 26, 6:39 AM
Unknown Object (File)
Tue, Jun 25, 2:31 PM
Unknown Object (File)
Sun, Jun 23, 8:04 PM

Details

Summary

Update gtest usage to be more canonical

Depends on D4781

Test Plan
nix develop

cd services/tunnelbroker
export COMM_TEST_SERVICES=1
rm -rf build
mkdir build
cd build

cmake ..
make -j
ctest # test suite should run

If you want the test suite to fully pass, you need to also follow
https://github.com/CommE2E/comm/blob/master/docs/dev_services.md#rabbitmq-tunnelbroker-only

Unfortunately, the logic for finding the tunnelbroker.ini file still
assumes docker-only paths

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Followed the Test Plan and confirmed that everything worked as expected!

Didn't bother setting up RabbitMQ to get all of the tests to pass, but I think the ones expected to succeed did.

services/tunnelbroker/CMakeLists.txt
110 ↗(On Diff #15485)

Is this an unrelated change, or is it connected in some way?

jon added inline comments.
services/tunnelbroker/CMakeLists.txt
110 ↗(On Diff #15485)

not directly related, I missed it in https://phab.comm.dev/D4671

Seems that this should be fixed from the tunnelbroker side to run it in a nix:

Unfortunately, the logic for finding the tunnelbroker.ini file still
assumes docker-only paths

I have created a task for it as ENG-1589.

This revision is now accepted and ready to land.Aug 10 2022, 3:28 PM
This revision was automatically updated to reflect the committed changes.
jon marked an inline comment as done.