[Insight-developers] use "DATA{..}" to form a string list of input data

Xiaoxiao Liu xiaoxiao.liu at kitware.com
Sun Jan 15 22:08:03 EST 2012


Hi there,

Here I have a small problem when configuring a testing command  using
"DATA{..}" inside itk_add_test().

In an itk_add_test() call,  a "DATA{...} " reference is used to be replaced
by a full data path to the command line.
In most cases, one input argument  only refers to a single input file.  But
in some cases, one input
argument string needs be a list of files, such as  " /path/to/FileA,
path/to/FileB, /path/to/FileC".

Is there a way to form a list of files as a single input argument
like:"DATA{fileA}, DATA{fileB}, DATA{fileC}"?
The current implementation in ExternalData_add_test would take  "DATA" as a
pure string  without path replacements.

I could think of two ways to solve this problem:
1. Modify function  ExternalData_add_test() to handle multiple DATA{} in a
string context.
2. Create DATA{} syntax to handle data path outside/independent of
ExternalData_add_test().

Any suggestions?
Thanks!

-Xiaoxiao

---------------------------------------------
*Xiaoxiao Liu*, Ph.D.
R & D Engineer
Kitware Inc <http://www.kitware.com/>.
Clifton Park, NY
Phone: (518) 881-4924  or  (518) 371-3971 x124
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20120115/5f8663a8/attachment.htm>


More information about the Insight-developers mailing list