CESNET / libnetconf2

C NETCONF library
BSD 3-Clause "New" or "Revised" License
203 stars 147 forks source link

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

Closed Roytak closed 3 months ago

Roytak commented 3 months ago

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.