[CMake] ctest question
Sanchez, Juan
juan.sanchez at amd.com
Sun Sep 23 21:48:21 EDT 2007
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:aleixpol at gmail.com]
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 <Juan.Sanchez at amd.com> 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
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070923/3132b692/attachment.html
More information about the CMake
mailing list