I'm converting some old tests to cmake/ctest and would like a test to fail if the output file contains a specific warning message.
In the past I would search the output file for a specific string. I'm already using execute_process to use the compare_files command. Is there a similar command for searching a file for a string?
Thanks for your help.