[Insight-developers] SimpleITK - language specific test
Daniel Blezek
Blezek.Daniel at mayo.edu
Thu Mar 31 09:30:53 EDT 2011
Good catch. Since all these tests are almost the same, it cries out for a
template and some JSON...
-dan
On 3/31/11 8:14 AM, "Bradley Lowekamp" <blowekamp at mail.nih.gov> wrote:
> Dan,
>
> Thanks. I saw the PythonTest.cxx just after I posted. Initially I was looking
> for a Java one. There does not seem to be an example driver to Tcl, Java, R,
> or C#. To the Jira issue reporter!
>
> Brad
>
> On Mar 31, 2011, at 8:59 AM, Daniel Blezek wrote:
>
>> Sure. Write the test in Python, the Examples directory is a good place to
>> put it. Your script should take input and output images, with optional
>> arguments. Edit the PythonTests.cxx file in Testing/Unit. This constructs a
>> command line to call the correct Python and passes in test data. Once
>> ³RunExecutable² finishes, you need to check the output (for baseline or
>> hash).
>>
>> -dan
>>
>> On 3/30/11 1:06 PM, "Bradley Lowekamp" <blowekamp at mail.nih.gov
>> <x-msg://469/blowekamp@mail.nih.gov> > wrote:
>>
>>> Dan,
>>>
>>> I would like to write a test just for python. I am not sure how to do it
>>> with our current testing frame work. Can you provide some insight?
>>>
>>> Thanks,
>>> Brad
>>>
>>> ========================================================
>>>
>>> Bradley Lowekamp
>>>
>>> Lockheed Martin Contractor for
>>>
>>> Office of High Performance Computing and Communications
>>>
>>> National Library of Medicine
>>>
>>> blowekamp at mail.nih.gov <x-msg://469/blowekamp@mail.nih.gov>
>>>
>>>
>>>
--
Daniel Blezek, PhD
Medical Imaging Informatics Innovation Center
P 127 or (77) 8 8886
T 507 538 8886
E blezek.daniel at mayo.edu
Mayo Clinic
200 First St. S.W.
Harwick SL-44
Rochester, MN 55905
mayoclinic.org
"It is more complicated than you think." -- RFC 1925
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110331/1dde73de/attachment.htm>
More information about the Insight-developers
mailing list