Re: [cmake-developers] Run program/command before test

2016-02-17 Thread Roman Wüger
Hi Nils, great thanks. Regards Roman > Am 17.02.2016 um 09:09 schrieb Nils Gladitz : > >> On 17.02.2016 07:58, Roman Wüger wrote: >> Ok thanks >> >> Would it be an opinion to have a COMMAND parameter for the add_test function >> like execute_process where every

Re: [cmake-developers] Run program/command before test

2016-02-17 Thread Nils Gladitz
On 17.02.2016 07:58, Roman Wüger wrote: Ok thanks Would it be an opinion to have a COMMAND parameter for the add_test function like execute_process where every COMMAND must return the exit code and this would be ored? add_test(MyTest COMMAND myserver --port 80

Re: [cmake-developers] Run program/command before test

2016-02-16 Thread Roman Wüger
Ok thanks Would it be an opinion to have a COMMAND parameter for the add_test function like execute_process where every COMMAND must return the exit code and this would be ored? add_test(MyTest COMMAND myserver --port 80 COMMAND mytest

Re: [cmake-developers] Run program/command before test

2016-02-16 Thread Brad King
On 02/16/2016 07:17 AM, Roman Wüger wrote: > Is it possible with CMake >= 3.4.0 to run a program/command before the > test and another program after the test was run? > > The meaning of that would be, that I want to start a small server > program and run the "client" test. After the test was

[cmake-developers] Run program/command before test

2016-02-16 Thread Roman Wüger
Hello, Is it possible with CMake >= 3.4.0 to run a program/command before the test and another program after the test was run? The meaning of that would be, that I want to start a small server program and run the "client" test. After the test was finished, kill the process of the server