Re: [CMake] compare two files - testing

2009-07-06 Thread Michael Wild
You're welcome! Sorry, must have mixed execute_process and custom_command together... Michael On 6. Jul, 2009, at 16:27, James C. Sutherland wrote: Thank you - this was a very useful explanation! For any others who may look at this, note that execute_command should be

Re: [CMake] compare two files - testing

2009-07-06 Thread James C. Sutherland
Thank you - this was a very useful explanation! For any others who may look at this, note that execute_command should be execute_process On Jul 4, 2009, at 1:11 AM, Michael Wild wrote: On 4. Jul, 2009, at 0:56, James C. Sutherland wrote: I have a test that produces output

Re: [CMake] compare two files - testing

2009-07-06 Thread James C. Sutherland
execute_command( COMMAND ${test_cmd} COMMAND ${CMAKE_COMMAND} -E compare_files ${output_blessed} $ {output_test} RESULT_VARIABLE test_not_successful OUTPUT_QUIET ERROR_QUIET ) if( test_not_successful ) message( SEND_ERROR ${output_test} does not match $ {output_blessed}! ) endif(

Re: [CMake] compare two files - testing

2009-07-06 Thread James C. Sutherland
On Jul 6, 2009, at 11:54 AM, James C. Sutherland wrote: execute_command( COMMAND ${test_cmd} COMMAND ${CMAKE_COMMAND} -E compare_files ${output_blessed} $ {output_test} RESULT_VARIABLE test_not_successful OUTPUT_QUIET ERROR_QUIET ) if( test_not_successful ) message( SEND_ERROR

Re: [CMake] compare two files - testing

2009-07-04 Thread Michael Wild
On 4. Jul, 2009, at 0:56, James C. Sutherland wrote: I have a test that produces output files that I would like to compare against a blessed copy. Is there a way to do this in CMake/CTest? This is probably a very simple thing, but I have not figured out how to do it. I have an

[CMake] compare two files - testing

2009-07-03 Thread James C. Sutherland
I have a test that produces output files that I would like to compare against a blessed copy. Is there a way to do this in CMake/CTest? This is probably a very simple thing, but I have not figured out how to do it. I have an add_test( ... ) that creates the test, but I am not