-ADD_UNIT_TESTS(
- TestFilters.py
- TestFilter_BelongsTo.py
- TestFilter_OnPlane.py
- TestFilter_OnLine.py
- TestFilter_OnGeometry_Edge.py
- TestFilter_OnGeometry_Face.py
- TestFilter_OnPlaneSide_Face.py
- TestFilter_OnPlaneSide_Plane.py
- TestFilter_OppositeToEdge.py
- TestFilter_RelativeToSolid_In.py
- TestFilter_RelativeToSolid_Out.py
- TestFilter_RelativeToSolid_On.py
- TestFilter_RelativeToSolid_NotOn.py
- TestFilter_RelativeToSolid_InAndOn.py
- TestFilter_RelativeToSolid_OutAndOn.py
- TestFilter_ExternalFaces.py
- TestFilter_HorizontalFaces.py
- TestFilter_VerticalFaces.py
-)
+include(tests.set)
+
+ADD_UNIT_TESTS(${TEST_NAMES})
+
+if(${HAVE_SALOME})
+ enable_testing()
+ set(TEST_INSTALL_DIRECTORY "${SALOME_SHAPER_INSTALL_TESTS}/FiltersPlugin")
+
+ install(FILES CTestTestfileInstall.cmake
+ DESTINATION ${TEST_INSTALL_DIRECTORY}
+ RENAME CTestTestfile.cmake)
+ install(FILES tests.set DESTINATION ${TEST_INSTALL_DIRECTORY})
+
+ set(TMP_TESTS_NAMES)
+ foreach(tfile ${TEST_NAMES})
+ list(APPEND TMP_TESTS_NAMES "Test/${tfile}")
+ endforeach(tfile ${TEST_NAMES})
+
+ install(FILES ${TMP_TESTS_NAMES} DESTINATION ${TEST_INSTALL_DIRECTORY})
+endif(${HAVE_SALOME})