mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] How to test binaries or run CTest from a cmak


From: Rashad M
Subject: Re: [Mingw-cross-env-list] How to test binaries or run CTest from a cmake project
Date: Tue, 15 Apr 2014 15:42:05 +0200




On Tue, Apr 15, 2014 at 2:30 PM, Tony Theodore <address@hidden> wrote:

On 15 Apr 2014, at 21:40, Rashad M <address@hidden> wrote:

> Hi Tony,
>
>
> On Tue, Apr 15, 2014 at 12:28 PM, Tony Theodore <address@hidden> wrote:
>
> On 13 Apr 2014, at 05:30, Rashad M <address@hidden> wrote:
>
> > Hello,
> >
> > I am trying to build OTB library on mxe. So far I have sucessful building ossim, ITK, Geos, OpenThreads, Gdal. I got executables generated for these. But I am wondering is it possible to run ctest from mxe?. When running ctest obivously it executes those exe files and produce results. Does MXE could be used for this purpose?.
>
> I’m not too familiar with “ctest", can it separate the build and run stages? It’s unlikely we’d ever add “wine” as a requirement, but some sort of option to run tests would be possible in the future.
>
> I really dont want to use wine for this purpose atleast. What I think is mingw32-ctest which could run some test for the genereated .exe file and produces test results. In my case it can be images or text files. But I dont know much about the mechanism to be used here. Without the possiblity of ctest all the work to get otb cross compiles remains useless for me.

If I’m following you correctly, you want to cross-build ctest and your project (OTB), copy to a windows machine and execute?

This is the only option now I can think of. Actually running ctest will execute binaries and produces results. ctest can also do a dashboard submission. See [1] and [2]

[1] http://dash.orfeo-toolbox.org/index.php?project=OTB 
[2] http://public.kitware.com/dashboard.php?name=itk
 
Are you asking if we can add ctest to MXE? If so, the answer is yes as it falls into the category of useful developer tools (like gdb and wget).

Adding ctest will be good though. But IIUC what ctest does is pretty much similar to cmake that parses the test definitions inside cmakelists and finally run them 

I don’t know anything about the mechanics of it though - I imagine you’d add something to the OTB build system to bundle the built tests up with the ctest runner.

Cheers,

Tony




--
Regards,
   Rashad

reply via email to

[Prev in Thread] Current Thread [Next in Thread]