Re: [CMake] testing with standard output

2009-07-14 Thread Henrique Almeida
This is quite crazy, but it may completelly solve the problem. I wonder why there isn't a single line version of that. I'm even willing to contribute a patch, but I'd need some guidance. 2009/7/14 James C. Sutherland : > > > I asked a similar question recently.  Here is the recipe for comparing f

Re: [CMake] testing with standard output

2009-07-14 Thread James C. Sutherland
On Jul 14, 2009, at 6:48 AM, Henrique Almeida wrote: Hello, When running "make test", some of my unit tests require that the result is given by a correct output, instead of (just) the correct return value (because, I'm specifically testing the ability to do output). Is there a way to configure

Re: [CMake] testing with standard output

2009-07-14 Thread Henrique Almeida
Also, is there a way to escape a string to convert it to a literal regular expression ? 2009/7/14 Henrique Almeida : >  Quite good. :-) Are there equivalents for stdin and stderr ? > > 2009/7/14 Bill Hoffman : >> Henrique Almeida wrote: >>> >>>  Hello, >>> >>>  When running "make test", some of m

Re: [CMake] testing with standard output

2009-07-14 Thread Bill Hoffman
Henrique Almeida wrote: Hello, When running "make test", some of my unit tests require that the result is given by a correct output, instead of (just) the correct return value (because, I'm specifically testing the ability to do output). Is there a way to configure CTest to report a successful

[CMake] testing with standard output

2009-07-14 Thread Henrique Almeida
Hello, When running "make test", some of my unit tests require that the result is given by a correct output, instead of (just) the correct return value (because, I'm specifically testing the ability to do output). Is there a way to configure CTest to report a successful result for certain tests