So I somehow tell ADD_TEST to EXECUTE_PROCESS? Any examples of doing this? The ctest documentation is a little unclear on this as I don't even think execute_process existed when the cmake book was written. Also ADD_TEST seems to only invoke external commands, and not cmake ones?
Would this sound reasonable? Write a perl script with the name of the test program and golden result file as arguments. The perl script will run the test and compare the output results with the golden file and then return success or failure. Regards, Juan -----Original Message----- From: Aleix [mailto:[EMAIL PROTECTED] Sent: Sun 9/23/2007 5:33 PM To: Sanchez, Juan Cc: CMake ML Subject: Re: [CMake] ctest question Hi, I think that execute_process() is your command :). Bye! On 9/23/07, Juan Sanchez <[EMAIL PROTECTED]> wrote: > I want run a test program and pipe its results to a file. I then want > to compare this file to the golden results using diff. > > Does anyone have a macro or cookbook example for doing this? > > Thank you, > > Juan > > > _______________________________________________ > CMake mailing list > [email protected] > http://www.cmake.org/mailman/listinfo/cmake >
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
