Browse Source

Merge branch '80-review-testing-cmakelists'. See #80

* 80-review-testing-cmakelists:
  Fix ctkSimplePythonShell python testing CMakeLists.txt
Jean-Christophe Fillion-Robin 13 years ago
parent
commit
efe6255bd9
1 changed files with 8 additions and 3 deletions
  1. 8 3
      Applications/ctkSimplePythonShell/Testing/Python/CMakeLists.txt

+ 8 - 3
Applications/ctkSimplePythonShell/Testing/Python/CMakeLists.txt

@@ -26,7 +26,12 @@ if(CTK_LIB_Scripting/Python/Core_PYTHONQT_USE_VTK)
     )
     )
 endif()
 endif()
 
 
-foreach(s ${SCRIPTS})
-  get_filename_component(TESTNAME ${s} NAME_WE)
-  SIMPLE_TEST(ctkSimplePythonShell_${TESTNAME} ${CMAKE_CURRENT_SOURCE_DIR}/${SCRIPT})
+foreach(script ${SCRIPTS})
+  get_filename_component(scriptname ${script} NAME_WE)
+  add_test(
+    NAME ctkSimplePythonShell_${scriptname} 
+    COMMAND $<TARGET_FILE:ctkSimplePythonShell> ${CMAKE_CURRENT_SOURCE_DIR}/${script}
+    )
+  set_property(TEST ctkSimplePythonShell_${scriptname} PROPERTY LABELS ${KIT})
 endforeach()
 endforeach()
+