Split test/server.cpp

The file starts now to be too long.

- Move testing of the search html result in `test/server_html_search.cpp`
- Move common code used to launch server and so
  in `test/server_testing_tools.h'

This is mainly code move with a small change:
Instead of setting the default PORT (8001) as a const int in the
`ServerTest` class, we now use SERVER_PORT.
SERVER_PORT must be defined before include `server_testing_tools.h`.
This allow several test to be run in parallele without trying to open
the same port.
This commit is contained in:
Matthieu Gautier committed 2022-06-03 15:46:41 +02:00
1 parent cadd2a5cbb
commit a0cf91157a
4 files changed
+1469 -1454

No files matched your search

+3 -1453
View File
File diff suppressed because it is too large. Load diff