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.
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.