← Back to team overview

dolfin team mailing list archive

Re: Adding tests

 

On Mon, Oct 8, 2012 at 1:13 PM, Garth N. Wells <gnw20@xxxxxxxxx> wrote:
> On Mon, Oct 8, 2012 at 6:42 PM, Andy Ray Terrel <andy.terrel@xxxxxxxxx> wrote:
>> Hello,
>>
>> I've been trying to figure out how to get a test added to the
>> unittests in DOLFIN that cmake will pick up.  Does anyone have any
>> pointers what I have to do after making the unittest source file?
>> Reconfiguring doesn't seem to "just pick it up" as adding source to
>> the dolfin source dir does.
>>
>
> Add the test to
>
>     test/unit/test.py
>
> Garth
>

Thanks.  FWIW, the file copy worked (probably some cache problem the
first time), but I needed to add the add_executable command to the

test/unit/mesh/cpp/CMakeLists.txt

But this file says it's generated by:

cmake/scripts/generate-cmakefiles

I don't see that script reading test/unit/test.py so how do I add the
executable stuff?

-- Andy



>
>> -- Andy
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dolfin
>> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dolfin
>> More help   : https://help.launchpad.net/ListHelp


Follow ups

References