Skip to content
New issue

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

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

Already on GitHub? # to your account

Obtain test ports from env and share code between tests #503

Merged
merged 9 commits into from
Aug 14, 2024

Conversation

Roytak
Copy link
Collaborator

@Roytak Roytak commented Aug 14, 2024

Previously, the ports were set via a macro, which made a normal test and a valgrind one share the same port. This sometimes led to one of them failing when run concurrently (as in this job for example).

Now they are obtained from the environment that is generated by cmake.
This PR also includes the first step of sharing code between tests.

roman added 6 commits August 14, 2024 10:50
This test was previously deleted from cmake, yet the source file
remained.
The code tested by these two tests is tested in many other tests, so
keeping them seems redundant.
This test was previously deleted from cmake, yet the source file
remained.
tests/test_ch.c Fixed Show fixed Hide fixed
@Roytak Roytak marked this pull request as ready for review August 14, 2024 11:11
tests/CMakeLists.txt Show resolved Hide resolved
@michalvasko michalvasko merged commit 1920cd5 into CESNET:devel Aug 14, 2024
15 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants