ctkCmdLineModuleTestBed.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <executable xsi:noNamespaceSchemaLocation="../../../Core/Resources/ctkCmdLineModule.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  3. <category>Testing</category>
  4. <title>Test Bed</title>
  5. <description>
  6. Configurable behaviour for testing purposes.
  7. </description>
  8. <version>1.0</version>
  9. <documentation-url></documentation-url>
  10. <license></license>
  11. <contributor>Sascha Zelzer</contributor>
  12. <parameters>
  13. <label>Runtime behaviour</label>
  14. <description>Configures the runtime behaviour of this module.</description>
  15. <integer>
  16. <name>runtimeVar</name>
  17. <longflag>runtime</longflag>
  18. <description>An integer with constraints</description>
  19. <label>Runtime (seconds)</label>
  20. <default>1</default>
  21. <constraints>
  22. <minimum>0</minimum>
  23. <maximum>60</maximum>
  24. <step>1</step>
  25. </constraints>
  26. </integer>
  27. <integer>
  28. <name>numOutputsVar</name>
  29. <longflag>numOutputs</longflag>
  30. <description>Number of outputs which will be reported as the progress text via a QFutureWatcher.</description>
  31. <label>Output Number</label>
  32. <default>0</default>
  33. </integer>
  34. <integer>
  35. <name>exitTimeVar</name>
  36. <longflag>exitTime</longflag>
  37. <description>The exit time of the module (premature finish).</description>
  38. <label>Exit time</label>
  39. <default>0</default>
  40. </integer>
  41. <integer>
  42. <name>exitCodeVar</name>
  43. <longflag>exitCode</longflag>
  44. <description>The exit code of the module.</description>
  45. <label>Exit code</label>
  46. <default>0</default>
  47. </integer>
  48. <boolean>
  49. <name>exitCrashVar</name>
  50. <longflag>exitCrash</longflag>
  51. <description>Exit by crashing.</description>
  52. <label>Force a crash</label>
  53. <default>false</default>
  54. </boolean>
  55. <string>
  56. <name>errorTextVar</name>
  57. <longflag>errorText</longflag>
  58. <description>Final error message at the end.</description>
  59. <label>Error text</label>
  60. </string>
  61. </parameters>
  62. <parameters>
  63. <label>Output parameter</label>
  64. <description>Output parameters for testing purposes.</description>
  65. <integer>
  66. <name>resultNumberOutput</name>
  67. <index>1000</index>
  68. <description>The number of results reported by this module.</description>
  69. <label>Number of results</label>
  70. <default>0</default>
  71. <channel>output</channel>
  72. </integer>
  73. <string>
  74. <name>errorMsgOutput</name>
  75. <index>1000</index>
  76. <description>Exit error message.</description>
  77. <label>Error</label>
  78. <channel>output</channel>
  79. </string>
  80. <string-enumeration>
  81. <name>exitStatusOutput</name>
  82. <index>1000</index>
  83. <description>Exit status (crashed or normal exit)</description>
  84. <label>Exit status</label>
  85. <channel>output</channel>
  86. <element>Normal exit</element>
  87. <element>Crashed</element>
  88. </string-enumeration>
  89. <image>
  90. <name>imageOutput</name>
  91. <index>0</index>
  92. <description>Image output path.</description>
  93. <label>Output image</label>
  94. <default>/tmp/out.nrrd</default>
  95. <channel>output</channel>
  96. </image>
  97. </parameters>
  98. </executable>