Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPN-5005 - Add tests #8377

Closed
wants to merge 19 commits into from
Closed

VPN-5005 - Add tests #8377

wants to merge 19 commits into from

Conversation

brizental
Copy link
Contributor

Sending this partial to see what breaks on CI. This is not ready for review.

@brizental brizental force-pushed the 5005-tests branch 3 times, most recently from ea61ea7 to 7afa55f Compare October 31, 2023 13:34
@brizental brizental force-pushed the 5005-tests branch 7 times, most recently from caecd61 to 0808954 Compare November 3, 2023 14:10
These are the minimal semantic modules I had to separate
in order to be able to create an isolated target to test
the daemon stuff.

I could have gone more minimal here, yes. However that would
mean creating targets that don't necessarily make sense as a
group of functionalities bundled together.

Why do this at all?

Currently, if we want to create an isolated test suite for a
given module of this codebase we either have to re-add the
exact set of files our isolated stuff will require to work
and also all the dependencies these files have or... we have
to import all of the shared-sources in the very least
and also set up all the dependencies these sources have.

The approach introduced in this commit, creates isolated
buildable targets that can be linked to other isolated
targets to create minimal buildable executables that only
have the strictly necessary stuff for the bundle to build.

This was done, as will become clear in the next commits, in
order to create an executable for the daemon tests. The daemon
includes leakdetector and logging. Most of the other stuff
I modularized here was because of the dependencies of logging.
That was not necessary and also was colliding with
the constants.cpp brought in by mozillavpn_environment
@brizental
Copy link
Contributor Author

Failed.

@brizental brizental closed this Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant