[vtk-developers] Single test file used for more than one test?

David E DeMarle dave.demarle at kitware.com
Thu Sep 11 11:13:55 EDT 2014


In Accelerators/Piston/Testing/Python/CMakeLists.txt we set a different
test name prefix for each variation of the argument.

I agree with Bill, for Cxx you may need to make up a new testing macro.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Thu, Sep 11, 2014 at 11:07 AM, Cory Quammen <cory.quammen at kitware.com>
wrote:

> Hi all,
>
> I'm writing a VTK test that takes some command-line arguments to
> control some options in a filter. What I would like to do is define
> several tests in the CMakeLists.txt file that run this same code but
> which pass different arguments in through argv[].
>
> I haven't found an example of this kind of test in VTK. Most tests are
> defined by passing to vtk_add_test_cxx the name of the source file for
> the test.
>
> Can anyone point me to an example similar to what I want to do?
>
> Thanks!
> Cory
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20140911/1cc1869f/attachment-0002.html>


More information about the vtk-developers mailing list