RFE: ctest session service(s)
Sometimes on testing it is necessary to start some some service with which test units will be interracting like database server which will be executes from curretn account with some custom setup causimg that such database will be executed on some custom higgh tcp post.
Looks like there is no in ctest such thing like session. For example python pytest provides such thing.
This RFE is about possibility to define:
- execution of some set of commands before start first unit
- share some variables generated or defined in ctest session start with test units (like seeded random TCP port, saved PIDs of started processes etc) and ctest session stop
- interface to read variables variables added by ctest session start by all units and ctest session stop
- execute some set of commands after all units finished its activity (no matter what would be the exit code of the units) or when ctest will be interrupted by ctrl-c