From: Anthony Geay Date: Wed, 10 Mar 2021 07:37:25 +0000 (+0100) Subject: 505 tests of FeaturesPlugin in salome test mechanism X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=573e1c9fd5fa626170101353fc8dbaf055da9aee;p=modules%2Fshaper.git 505 tests of FeaturesPlugin in salome test mechanism --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f92435497..2fbef468f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,6 @@ SET(${PROJECT_NAME}_MINOR_VERSION 6) SET(${PROJECT_NAME}_PATCH_VERSION 0) SET(${PROJECT_NAME}_VERSION ${${PROJECT_NAME}_MAJOR_VERSION}.${${PROJECT_NAME}_MINOR_VERSION}.${${PROJECT_NAME}_PATCH_VERSION}) SET(COMPONENT_NAME SHAPER) -SET(SALOME_TEST_LABEL_ADV SHAPER_ADV) # Ensure a proper linker behavior: CMAKE_POLICY(SET CMP0003 NEW) diff --git a/src/CTestTestfileInstall.cmake b/src/CTestTestfileInstall.cmake index c4e4606f1..82bbcf525 100644 --- a/src/CTestTestfileInstall.cmake +++ b/src/CTestTestfileInstall.cmake @@ -20,8 +20,10 @@ SET(SALOME_TEST_DRIVER "$ENV{KERNEL_ROOT_DIR}/bin/salome/appliskel/salome_test_driver.py") SET(COMPONENT_NAME SHAPER) +set(SALOME_TEST_LABEL_ADV SHAPER_ADV) # Add all test subdirs SUBDIRS(ConnectorAPI HDFs + FeaturesPlugin ) diff --git a/src/FeaturesPlugin/CMakeLists.txt b/src/FeaturesPlugin/CMakeLists.txt index 6d01dc466..0d2e4edf9 100644 --- a/src/FeaturesPlugin/CMakeLists.txt +++ b/src/FeaturesPlugin/CMakeLists.txt @@ -206,507 +206,25 @@ INSTALL(FILES ${XML_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}) INSTALL(DIRECTORY icons/ DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}/icons/Features) INSTALL(FILES ${TEXT_RESOURCES} DESTINATION ${SHAPER_INSTALL_XML_RESOURCES}) -ADD_UNIT_TESTS(TestExtrusion.py - TestExtrusionOfCompound.py - TestExtrusionCut.py - TestExtrusionCut_BySize.py - TestExtrusionCut_ByPlanesAndOffsets.py - TestExtrusionCut_ByFaces.py - TestExtrusionCut_ThroughAll.py - TestExtrusionFuse.py - TestExtrusionFuse_BySize.py - TestExtrusionFuse_ByPlanesAndOffsets.py - TestExtrusionFuse_ThroughAll.py - TestExtrusion_ErrorMsg.py - TestExtrusion_ZeroOffsetError.py - TestExtrusion_ByFaces01.py - TestExtrusion_ByFaces02.py - TestExtrusion_ByFaces03.py - TestExtrusion_ByFaces04.py - TestExtrusion_ByFaces05.py - TestExtrusion_ByFaces06.py - TestExtrusion_ByFaces07.py - TestExtrusion_ByFaces08.py - TestExtrusion_ByFaces09.py - TestExtrusion_ByFaces10.py - TestExtrusion_ByFaces11.py - TestExtrusion_ByFaces12.py - TestExtrusion_ByFaces13.py - TestExtrusion_ByFaces14.py - TestExtrusion_ByFaces15.py - TestExtrusion_ByFaces16.py - TestExtrusion_ByFaces17.py - TestExtrusion_ByFaces18.py - TestExtrusion_ByFaces19.py - TestRevolution.py - TestRevolution_ByAngle.py - TestRevolutionOfPoint.py - TestRevolutionOfEdge.py - TestRevolutionOfCompound.py - TestRevolutionCut.py - TestRevolutionCut_ByAngle.py - TestRevolutionCut_ByPlanesAndOffsets.py - TestRevolutionCut_ThroughAll.py - TestRevolutionFuse.py - TestRevolutionFuse_ByAngle.py - TestRevolutionFuse_ByPlanesAndOffsets.py - TestRevolutionFuse_ThroughAll.py - TestCompositeFeaturesOnCompSolids.py - TestPartition.py - TestPartition_ErrorMsg.py - TestPlacement_Vertex_Vertex.py - TestPlacement_Edge_Vertex.py - TestPlacement_Edge_Edge.py - TestPlacement_Face_Vertex.py - TestPlacement_Face_Edge.py - TestPlacement_Face_Face.py - TestPlacement_Part_Part.py - TestPlacement_Complex.py - TestPlacement_ErrorMsg.py - TestPlacement_BodyShapesValidator.py - TestTranslation.py - TestTranslation_Part.py - TestRotation.py - TestRotation_ByAxis.py - TestRotation_ByPoints.py - TestRotation_ErrorMsg.py - TestMultiRotation_Part.py - TestMultiRotation_ErrorMsg.py - TestMultiTranslation_Part.py - TestMultiTranslation_ErrorMsg.py - TestSymmetry_Part.py - TestBoolean1.py - TestBoolean2.py - TestBoolean3.py - TestBooleanCompSolids.py - TestBooleanSmash.py - TestBooleanSplit.py - TestBooleanSplitWithPlane.py - TestBooleanSplit_ErrorMsg.py - TestMultiBoolean.py - TestSerialBoolean.py - TestBoolean_ErrorMsg.py - TestIntersection.py - TestIntersection_ErrorMsg.py - TestUnion.py - TestUnionFaces.py - TestUnion_ErrorMsg.py - TestRemoveSubShapes.py - TestRemoveSubShapes2.py - TestRemoveSubShapes3.py - TestRemoveSubShapes4.py - TestRemoveSubShapes5.py - TestRemoveSubShapes6.py - TestPipe.py - TestPipe_Edge.py - TestPipe_Wire.py - TestPipe_Compound.py - TestPipe_ErrorMsg.py - TestRecover.py - TestRecover_Compound.py - TestRecover_Compsolid1.py - TestRecover_Compsolid2.py - TestRecover1798.py - TestSplitEdgeVertex.py - TestSplitEdgeEdge.py - TestSplitEdgeEdgeIntersected.py - TestSplitEdgeWire.py - TestSplitEdgeFace.py - TestSplitEdgeShell.py - TestSplitEdgeSolid.py - TestSplitEdgeSolidIntersected.py - TestSplitWireVertex.py - TestSplitWireEdge.py - TestSplitWireWire.py - TestSplitWireFace.py - TestSplitWireShell.py - TestSplitWireSolid.py - TestSplitFaceVertex.py - TestSplitFaceEdge.py - TestSplitFaceEdgeInside.py - TestSplitFaceEdgePerpendicular.py - TestSplitFaceWire.py - TestSplitFaceFace.py - TestSplitFaceShell.py - TestSplitFaceSolid.py - TestSplitCompFaceSolid.py - TestSplitShellVertex.py - TestSplitShellEdge.py - TestSplitShellConstrPlane.py - TestSplitShellWire.py - TestSplitShellFace.py - TestSplitShellShell.py - TestSplitShellSolid.py - TestSplitSolid2ConstructionPlanes.py - TestSplitSolidEdge.py - TestSplitSolidFace.py - TestSplitSolidCompFace.py - TestSplitSolidShell.py - TestSplitSolidCompShell.py - TestSplitCompsolidPlane.py - TestPartition2Faces.py - TestPartition2Solids.py - TestPartition2Wires.py - TestPartitionBox4Planes.py - TestPartitionEdgeSolid.py - TestPartitionFace2Solid.py - TestPartitionFaceSolid.py - TestPartitionFaceWire.py - TestPartitionInclinedFaceSolid.py - TestPartitionWireFaceSolid.py - TestUnion4CurvedFaces.py - TestUnion4CurvedFaces_2.py - TestUnion4Faces.py - TestUnionOfUnion.py - TestMeasurementLength.py - TestMeasurementDistance.py - TestMeasurementRadius.py - TestMeasurementAngle.py - TestMeasurementAngle3Points.py - TestMeasurementPresentation.py - TestFusionFaces.py - TestFusionFaces2697.py - Test1379.py - Test1922.py - Test1942.py - Test1915.py - Test2023.py - Test2046.py - Test2038.py - Test2172.py - Test2194.py - Test2197_1.py - Test2197_2.py - Test2197_3.py - Test2197_4.py - Test2215.py - Test2222.py - Test2233.py - Test2231.py - Test2240.py - Test2246.py - Test2248.py - Test2251.py - Test2255.py - Test2289.py - Test2304.py - Test2304_2.py - Test2375.py - Test2377.py - Test2394.py - Test2395.py - Test2419_1.py - Test2419_2.py - Test2419_3.py - Test2465.py - Test2495.py - Test2514.py - Test2520.py - TestBooleanCut_CompSolid_CompSolid.py - TestBooleanCut_CompSolidCompound_CompSolidCompound.py - TestBooleanCut_Edge_Edge.py - TestBooleanCut_Edge_Face.py - TestBooleanCut_EdgeCompound_EdgeCompound.py - TestBooleanCut_EdgeCompound_Solid.py - TestBooleanCut_Face_Face.py - TestBooleanCut_Face_Solid.py - TestBooleanCut_FaceCompound_FaceCompound.py - TestBooleanCut_Shell_Shell.py - TestBooleanCut_ShellCompound_ShellCompound.py - TestBooleanCut_Solid_Solid.py - TestBooleanCut_SolidCompound_SolidCompound.py - TestBooleanCut_Vertex_Vertex.py - TestBooleanCut_VertexCompound_Solid.py - TestBooleanCut_VertexCompound_VertexCompound.py - TestBooleanCut_Wire_Face.py - TestBooleanCut_Wire_Wire.py - TestBooleanCut_WireCompound_WireCompound.py - TestBooleanCut_Compound_Solid.py - TestBooleanCut_ErrorMsg.py - TestBooleanCut_SolidsHistory.py - TestBooleanSmash_Face_Face.py - TestBooleanSmash_SubSolid_Solid.py - TestBooleanSmash_CompSolid_Solid.py - TestBooleanSmash_ErrorMsg.py - TestBooleanSmash_SolidsHistory.py - TestBooleanFuse_SimpleMode.py - TestBooleanFuse_RemoveEdges.py - TestBooleanFuse_ErrorMsg.py - TestBooleanCommon_Vertex_Vertex.py - TestBooleanCommon_VertexCompound_VertexCompound.py - TestBooleanCommon_Edge_Edge.py - TestBooleanCommon_EdgeCompound_EdgeCompound.py - TestBooleanCommon_Wire_Wire.py - TestBooleanCommon_WireCompound_WireCompound.py - TestBooleanCommon_Face_Face.py - TestBooleanCommon_Face_Plane.py - TestBooleanCommon_FaceCompound_FaceCompound.py - TestBooleanCommon_Shell_Shell.py - TestBooleanCommon_ShellCompound_ShellCompound.py - TestBooleanCommon_Solid_Face.py - TestBooleanCommon_Solid_Shell.py - TestBooleanCommon_Solid_Solid.py - TestBooleanCommon_SolidCompound_Face.py - TestBooleanCommon_SolidCompound_Shell.py - TestBooleanCommon_SolidCompound_SolidCompound.py - TestBooleanCommon_SubCompound_Solid.py - TestBooleanCommon_SubSolid_Solid.py - TestBooleanCommon_CompSolid_Face.py - TestBooleanCommon_CompSolid_Shell.py - TestBooleanCommon_CompSolid_CompSolid.py - TestBooleanCommon_CompSolidCompound_Face.py - TestBooleanCommon_CompSolidCompound_Shell.py - TestBooleanCommon_CompSolidCompound_CompSolidCompound.py - TestBooleanCommon_ErrorMsg.py - TestBooleanCommon_SolidsHistory.py - Test2596.py - Test2592.py - Test2588.py - Test1467.py - TestPartitionSubCompsolidWithCompSolid1.py - TestPartitionSubCompsolidWithCompSolid2.py - TestPartitionSubCompsolidWithCompSolid3.py - TestPartitionSubCompsolidWithSolid1.py - TestPartitionSubCompsolidWithSolid2.py - TestPartitionSubCompsolidWithSolid3.py - TestPartitionSubCompsolidWithSolid4.py - TestPartitionSubCompsolidWithSolid5.py - TestPartitionSubCompsolidWithFace1.py - TestPartitionSubCompsolidWithFace2.py - TestPartitionSubCompsolidWithFace3.py - TestPartitionSubCompsolidWithFace4.py - TestPartitionSubCompsolidWithFace5.py - TestPartitionSubCompsolidWithPlane1.py - TestPartitionSubCompsolidWithPlane2.py - TestPartitionSubCompsolidWithPlane3.py - TestPartitionSubCompsolidWithPlane4.py - TestPartitionSubCompsolidWithPlane5.py - TestPartitionArgsUpdate.py - TestPartition_SolidsHistory.py - TestBooleanFuse_Vertex_Vertex.py - TestBooleanFuse_VertexCompound_VertexCompound.py - TestBooleanFuse_Edge_Edge.py - TestBooleanFuse_EdgeCompound_EdgeCompound.py - TestBooleanFuse_Wire_Wire.py - TestBooleanFuse_WireCompound_WireCompound.py - TestBooleanFuse_Face_Face.py - TestBooleanFuse_FaceCompound_FaceCompound.py - TestBooleanFuse_Shell_Shell.py - TestBooleanFuse_ShellCompound_ShellCompound.py - TestBooleanFuse_Solid_Solid.py - TestBooleanFuse_SolidCompound_SolidCompound.py - TestBooleanFuse_CompSolid_Face.py - TestBooleanFuse_CompSolid_CompSolid.py - TestBooleanFuse_CompSolidCompound_CompSolidCompound.py - TestBooleanFuse_SolidsHistory.py - TestFillet.py - TestFillet1.py - TestFillet_ErrorMsg.py - TestFillet_History.py - TestScale1.py - TestScale2.py - Test1816.py - Test1876.py - Test2225.py - Test2631.py - Test2636.py - Test2650.py - Test2681.py - Test2686.py - Test2689.py - Test2693.py - Test2698.py - Test2701.py - Test2724.py - Test2692.py - Test2617.py - Test2729.py - Test2738.py - Test2751.py - Test2826.py - Test2854.py - Test2878.py - Test2920.py - Test2971.py - Test3014.py - TestBooleanCommon_MultiLevelCompound_v0_1.py - TestBooleanCommon_MultiLevelCompound_v0_2.py - TestBooleanCommon_MultiLevelCompound_v20190506_1.py - TestBooleanCommon_MultiLevelCompound_v20190506_2.py - TestBooleanCut_MultiLevelCompound_v0_1.py - TestBooleanCut_MultiLevelCompound_v0_2.py - TestBooleanCut_MultiLevelCompound_v20190506_1.py - TestBooleanCut_MultiLevelCompound_v20190506_2.py - TestBooleanFuse_MultiLevelCompound_v0_1.py - TestBooleanFuse_MultiLevelCompound_v0_2.py - TestBooleanFuse_MultiLevelCompound_v0_3.py - TestBooleanFuse_MultiLevelCompound_v0_4.py - TestBooleanFuse_MultiLevelCompound_v20190506_1.py - TestBooleanFuse_MultiLevelCompound_v20190506_2.py - TestBooleanFuse_MultiLevelCompound_v20190506_3.py - TestBooleanFuse_MultiLevelCompound_v20190506_4.py - TestBooleanSmash_MultiLevelCompound_v0_1.py - TestBooleanSmash_MultiLevelCompound_v0_2.py - TestBooleanSmash_MultiLevelCompound_v20190506_1.py - TestBooleanSmash_MultiLevelCompound_v20190506_2.py - TestBooleanSplit_MultiLevelCompound_v0_1.py - TestBooleanSplit_MultiLevelCompound_v0_2.py - TestBooleanSplit_MultiLevelCompound_v20190506_1.py - TestBooleanSplit_MultiLevelCompound_v20190506_2.py - TestPartition_MultiLevelCompound_v0_1.py - TestPartition_MultiLevelCompound_v0_2.py - TestPartition_MultiLevelCompound_v0_3.py - TestPartition_MultiLevelCompound_v20190506_1.py - TestPartition_MultiLevelCompound_v20190506_2.py - TestPartition_MultiLevelCompound_v20190506_3.py - TestUnion_MultiLevelCompound_v0.py - TestUnion_MultiLevelCompound_v20190506.py - TestUnionFaces_v20190506.py - TestRemoveResultsBody.py - TestRemoveResultsConstruction.py - TestRemoveResultsPart.py - Test17000.py - Test17261.py - Test17281.py - TestChamfer.py - Test3033.py - Test3076.py - Test17909.py - TestCopy_ErrorMsg.py - TestCopyFeature.py - TestCopyFeatureMoveGroupOfFeature.py - TestCopyMoveResult.py - TestCopyMoveSubShapes.py - TestCopyNames.py - TestCopySubShapes.py - TestCopyWholeFeature.py - TestImportResult.py - TestDefeaturing_ErrorMsg.py - TestDefeaturing_OnSolid1.py - TestDefeaturing_OnSolid2.py - TestDefeaturing_OnSolid3.py - TestDefeaturing_OnCompsolid1.py - TestDefeaturing_OnCompsolid2.py - TestDefeaturing_OnCompsolid3.py - TestDefeaturing_OnCompound.py - Test3137_1.py - Test3137_2.py - Test2918.py - Test3139.py - TestPlacement_MultiLevelCompound_v0_1.py - TestPlacement_MultiLevelCompound_v0_2.py - TestPlacement_MultiLevelCompound_v0_3.py - TestPlacement_MultiLevelCompound_v0_4.py - TestPlacement_MultiLevelCompound_v0_5.py - TestPlacement_MultiLevelCompound_v0_6.py - TestPlacement_MultiLevelCompound_v95_1.py - TestPlacement_MultiLevelCompound_v95_2.py - TestPlacement_MultiLevelCompound_v95_3.py - TestPlacement_MultiLevelCompound_v95_4.py - TestPlacement_MultiLevelCompound_v95_5.py - TestPlacement_MultiLevelCompound_v95_6.py - TestTranslation_MultiLevelCompound_v0_1.py - TestTranslation_MultiLevelCompound_v0_2.py - TestTranslation_MultiLevelCompound_v0_3.py - TestTranslation_MultiLevelCompound_v0_4.py - TestTranslation_MultiLevelCompound_v0_5.py - TestTranslation_MultiLevelCompound_v95_1.py - TestTranslation_MultiLevelCompound_v95_2.py - TestTranslation_MultiLevelCompound_v95_3.py - TestTranslation_MultiLevelCompound_v95_4.py - TestTranslation_MultiLevelCompound_v95_5.py - TestRotation_MultiLevelCompound_v0_1.py - TestRotation_MultiLevelCompound_v0_2.py - TestRotation_MultiLevelCompound_v0_3.py - TestRotation_MultiLevelCompound_v0_4.py - TestRotation_MultiLevelCompound_v95_1.py - TestRotation_MultiLevelCompound_v95_2.py - TestRotation_MultiLevelCompound_v95_3.py - TestRotation_MultiLevelCompound_v95_4.py - TestSymmetry_MultiLevelCompound_v0_1.py - TestSymmetry_MultiLevelCompound_v0_2.py - TestSymmetry_MultiLevelCompound_v0_3.py - TestSymmetry_MultiLevelCompound_v0_4.py - TestSymmetry_MultiLevelCompound_v0_5.py - TestSymmetry_MultiLevelCompound_v95_1.py - TestSymmetry_MultiLevelCompound_v95_2.py - TestSymmetry_MultiLevelCompound_v95_3.py - TestSymmetry_MultiLevelCompound_v95_4.py - TestSymmetry_MultiLevelCompound_v95_5.py - TestScale_MultiLevelCompound_v0_1.py - TestScale_MultiLevelCompound_v0_2.py - TestScale_MultiLevelCompound_v0_3.py - TestScale_MultiLevelCompound_v0_4.py - TestScale_MultiLevelCompound_v95_1.py - TestScale_MultiLevelCompound_v95_2.py - TestScale_MultiLevelCompound_v95_3.py - TestScale_MultiLevelCompound_v95_4.py - TestMultiTranslation_MultiLevelCompound_v0_1.py - TestMultiTranslation_MultiLevelCompound_v0_2.py - TestMultiTranslation_MultiLevelCompound_v0_3.py - TestMultiTranslation_MultiLevelCompound_v0_4.py - TestMultiTranslation_MultiLevelCompound_v95_1.py - TestMultiTranslation_MultiLevelCompound_v95_2.py - TestMultiTranslation_MultiLevelCompound_v95_3.py - TestMultiTranslation_MultiLevelCompound_v95_4.py - TestMultiRotation_MultiLevelCompound_v0_1.py - TestMultiRotation_MultiLevelCompound_v0_2.py - TestMultiRotation_MultiLevelCompound_v0_3.py - TestMultiRotation_MultiLevelCompound_v0_4.py - TestMultiRotation_MultiLevelCompound_v95_1.py - TestMultiRotation_MultiLevelCompound_v95_2.py - TestMultiRotation_MultiLevelCompound_v95_3.py - TestMultiRotation_MultiLevelCompound_v95_4.py - TestIntersection_MultiLevelCompound_v0_1.py - TestIntersection_MultiLevelCompound_v0_2.py - TestIntersection_MultiLevelCompound_v95_1.py - TestIntersection_MultiLevelCompound_v95_2.py - TestFillet_MultiLevelCompound_v0_1.py - TestFillet_MultiLevelCompound_v0_2.py - TestFillet_MultiLevelCompound_v0_3.py - TestFillet_MultiLevelCompound_v0_4.py - TestFillet_MultiLevelCompound_v95_1.py - TestFillet_MultiLevelCompound_v95_2.py - TestFillet_MultiLevelCompound_v95_3.py - TestFillet_MultiLevelCompound_v95_4.py - TestChamfer_MultiLevelCompound_v0_1.py - TestChamfer_MultiLevelCompound_v0_2.py - TestChamfer_MultiLevelCompound_v0_3.py - TestChamfer_MultiLevelCompound_v0_4.py - TestChamfer_MultiLevelCompound_v95_1.py - TestChamfer_MultiLevelCompound_v95_2.py - TestChamfer_MultiLevelCompound_v95_3.py - TestChamfer_MultiLevelCompound_v95_4.py - Test18836.py - Test2817.py - Test19065.py - Test19066.py - Test19115.py - Test19196.py - TestFillet1D_ErrorMsg.py - TestFillet1D_Vertices_1.py - TestFillet1D_Vertices_2.py - TestFillet1D_Vertices_3.py - TestFillet1D_Vertices_4.py - TestFillet1D_Vertices_5.py - TestFillet1D_Vertices_6.py - TestFillet1D_Vertices_7.py - TestFillet1D_Vertices_8.py - TestFillet1D_Vertices_9.py - TestFillet1D_Wire_1.py - TestFillet1D_Wire_2.py - TestFillet1D_Wire_3.py - TestFillet1D_Wire_4.py - TestFillet1D_Wire_5.py - Test19931.py - Test20027.py - Test20245_1.py - Test20245_2.py - Test20245_3.py - Test20247.py - Test22847.py - TestPointCoordinates.py - TestGeometryCalculation.py - TestBoundingBox.py - Test23885.py +INCLUDE(tests.set) + +ADD_UNIT_TESTS( + ${TEST_NAMES} ) + +IF(${HAVE_SALOME}) + enable_testing() + set(TEST_INSTALL_DIRECTORY "${SALOME_SHAPER_INSTALL_TESTS}/FeaturesPlugin") + + 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}) diff --git a/src/FeaturesPlugin/CTestTestfileInstall.cmake b/src/FeaturesPlugin/CTestTestfileInstall.cmake new file mode 100644 index 000000000..42056d5fe --- /dev/null +++ b/src/FeaturesPlugin/CTestTestfileInstall.cmake @@ -0,0 +1,29 @@ +# Copyright (C) 2021 CEA/DEN, EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +include(tests.set) + +#SET(SALOME_TEST_DRIVER "$ENV{KERNEL_ROOT_DIR}/bin/salome/appliskel/salome_test_driver.py") +#SET(TIMEOUT 300) + +foreach(tfile ${TEST_NAMES}) + set(TEST_NAME ${COMPONENT_NAME}_${tfile}) + add_test(${TEST_NAME} python ${tfile}) + set_tests_properties(${TEST_NAME} PROPERTIES LABELS "${SALOME_TEST_LABEL_ADV}") +endforeach() diff --git a/src/FeaturesPlugin/tests.set b/src/FeaturesPlugin/tests.set new file mode 100644 index 000000000..404476a40 --- /dev/null +++ b/src/FeaturesPlugin/tests.set @@ -0,0 +1,524 @@ +# Copyright (C) 2021 CEA/DEN, EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +SET(TEST_NAMES + TestExtrusion.py + TestExtrusionOfCompound.py + TestExtrusionCut.py + TestExtrusionCut_BySize.py + TestExtrusionCut_ByPlanesAndOffsets.py + TestExtrusionCut_ByFaces.py + TestExtrusionCut_ThroughAll.py + TestExtrusionFuse.py + TestExtrusionFuse_BySize.py + TestExtrusionFuse_ByPlanesAndOffsets.py + TestExtrusionFuse_ThroughAll.py + TestExtrusion_ErrorMsg.py + TestExtrusion_ZeroOffsetError.py + TestExtrusion_ByFaces01.py + TestExtrusion_ByFaces02.py + TestExtrusion_ByFaces03.py + TestExtrusion_ByFaces04.py + TestExtrusion_ByFaces05.py + TestExtrusion_ByFaces06.py + TestExtrusion_ByFaces07.py + TestExtrusion_ByFaces08.py + TestExtrusion_ByFaces09.py + TestExtrusion_ByFaces10.py + TestExtrusion_ByFaces11.py + TestExtrusion_ByFaces12.py + TestExtrusion_ByFaces13.py + TestExtrusion_ByFaces14.py + TestExtrusion_ByFaces15.py + TestExtrusion_ByFaces16.py + TestExtrusion_ByFaces17.py + TestExtrusion_ByFaces18.py + TestExtrusion_ByFaces19.py + TestRevolution.py + TestRevolution_ByAngle.py + TestRevolutionOfPoint.py + TestRevolutionOfEdge.py + TestRevolutionOfCompound.py + TestRevolutionCut.py + TestRevolutionCut_ByAngle.py + TestRevolutionCut_ByPlanesAndOffsets.py + TestRevolutionCut_ThroughAll.py + TestRevolutionFuse.py + TestRevolutionFuse_ByAngle.py + TestRevolutionFuse_ByPlanesAndOffsets.py + TestRevolutionFuse_ThroughAll.py + TestCompositeFeaturesOnCompSolids.py + TestPartition.py + TestPartition_ErrorMsg.py + TestPlacement_Vertex_Vertex.py + TestPlacement_Edge_Vertex.py + TestPlacement_Edge_Edge.py + TestPlacement_Face_Vertex.py + TestPlacement_Face_Edge.py + TestPlacement_Face_Face.py + TestPlacement_Part_Part.py + TestPlacement_Complex.py + TestPlacement_ErrorMsg.py + TestPlacement_BodyShapesValidator.py + TestTranslation.py + TestTranslation_Part.py + TestRotation.py + TestRotation_ByAxis.py + TestRotation_ByPoints.py + TestRotation_ErrorMsg.py + TestMultiRotation_Part.py + TestMultiRotation_ErrorMsg.py + TestMultiTranslation_Part.py + TestMultiTranslation_ErrorMsg.py + TestSymmetry_Part.py + TestBoolean1.py + TestBoolean2.py + TestBoolean3.py + TestBooleanCompSolids.py + TestBooleanSmash.py + TestBooleanSplit.py + TestBooleanSplitWithPlane.py + TestBooleanSplit_ErrorMsg.py + TestMultiBoolean.py + TestSerialBoolean.py + TestBoolean_ErrorMsg.py + TestIntersection.py + TestIntersection_ErrorMsg.py + TestUnion.py + TestUnionFaces.py + TestUnion_ErrorMsg.py + TestRemoveSubShapes.py + TestRemoveSubShapes2.py + TestRemoveSubShapes3.py + TestRemoveSubShapes4.py + TestRemoveSubShapes5.py + TestRemoveSubShapes6.py + TestPipe.py + TestPipe_Edge.py + TestPipe_Wire.py + TestPipe_Compound.py + TestPipe_ErrorMsg.py + TestRecover.py + TestRecover_Compound.py + TestRecover_Compsolid1.py + TestRecover_Compsolid2.py + TestRecover1798.py + TestSplitEdgeVertex.py + TestSplitEdgeEdge.py + TestSplitEdgeEdgeIntersected.py + TestSplitEdgeWire.py + TestSplitEdgeFace.py + TestSplitEdgeShell.py + TestSplitEdgeSolid.py + TestSplitEdgeSolidIntersected.py + TestSplitWireVertex.py + TestSplitWireEdge.py + TestSplitWireWire.py + TestSplitWireFace.py + TestSplitWireShell.py + TestSplitWireSolid.py + TestSplitFaceVertex.py + TestSplitFaceEdge.py + TestSplitFaceEdgeInside.py + TestSplitFaceEdgePerpendicular.py + TestSplitFaceWire.py + TestSplitFaceFace.py + TestSplitFaceShell.py + TestSplitFaceSolid.py + TestSplitCompFaceSolid.py + TestSplitShellVertex.py + TestSplitShellEdge.py + TestSplitShellConstrPlane.py + TestSplitShellWire.py + TestSplitShellFace.py + TestSplitShellShell.py + TestSplitShellSolid.py + TestSplitSolid2ConstructionPlanes.py + TestSplitSolidEdge.py + TestSplitSolidFace.py + TestSplitSolidCompFace.py + TestSplitSolidShell.py + TestSplitSolidCompShell.py + TestSplitCompsolidPlane.py + TestPartition2Faces.py + TestPartition2Solids.py + TestPartition2Wires.py + TestPartitionBox4Planes.py + TestPartitionEdgeSolid.py + TestPartitionFace2Solid.py + TestPartitionFaceSolid.py + TestPartitionFaceWire.py + TestPartitionInclinedFaceSolid.py + TestPartitionWireFaceSolid.py + TestUnion4CurvedFaces.py + TestUnion4CurvedFaces_2.py + TestUnion4Faces.py + TestUnionOfUnion.py + TestMeasurementLength.py + TestMeasurementDistance.py + TestMeasurementRadius.py + TestMeasurementAngle.py + TestMeasurementAngle3Points.py + TestMeasurementPresentation.py + TestFusionFaces.py + TestFusionFaces2697.py + Test1379.py + Test1922.py + Test1942.py + Test1915.py + Test2023.py + Test2046.py + Test2038.py + Test2172.py + Test2194.py + Test2197_1.py + Test2197_2.py + Test2197_3.py + Test2197_4.py + Test2215.py + Test2222.py + Test2233.py + Test2231.py + Test2240.py + Test2246.py + Test2248.py + Test2251.py + Test2255.py + Test2289.py + Test2304.py + Test2304_2.py + Test2375.py + Test2377.py + Test2394.py + Test2395.py + Test2419_1.py + Test2419_2.py + Test2419_3.py + Test2465.py + Test2495.py + Test2514.py + Test2520.py + TestBooleanCut_CompSolid_CompSolid.py + TestBooleanCut_CompSolidCompound_CompSolidCompound.py + TestBooleanCut_Edge_Edge.py + TestBooleanCut_Edge_Face.py + TestBooleanCut_EdgeCompound_EdgeCompound.py + TestBooleanCut_EdgeCompound_Solid.py + TestBooleanCut_Face_Face.py + TestBooleanCut_Face_Solid.py + TestBooleanCut_FaceCompound_FaceCompound.py + TestBooleanCut_Shell_Shell.py + TestBooleanCut_ShellCompound_ShellCompound.py + TestBooleanCut_Solid_Solid.py + TestBooleanCut_SolidCompound_SolidCompound.py + TestBooleanCut_Vertex_Vertex.py + TestBooleanCut_VertexCompound_Solid.py + TestBooleanCut_VertexCompound_VertexCompound.py + TestBooleanCut_Wire_Face.py + TestBooleanCut_Wire_Wire.py + TestBooleanCut_WireCompound_WireCompound.py + TestBooleanCut_Compound_Solid.py + TestBooleanCut_ErrorMsg.py + TestBooleanCut_SolidsHistory.py + TestBooleanSmash_Face_Face.py + TestBooleanSmash_SubSolid_Solid.py + TestBooleanSmash_CompSolid_Solid.py + TestBooleanSmash_ErrorMsg.py + TestBooleanSmash_SolidsHistory.py + TestBooleanFuse_SimpleMode.py + TestBooleanFuse_RemoveEdges.py + TestBooleanFuse_ErrorMsg.py + TestBooleanCommon_Vertex_Vertex.py + TestBooleanCommon_VertexCompound_VertexCompound.py + TestBooleanCommon_Edge_Edge.py + TestBooleanCommon_EdgeCompound_EdgeCompound.py + TestBooleanCommon_Wire_Wire.py + TestBooleanCommon_WireCompound_WireCompound.py + TestBooleanCommon_Face_Face.py + TestBooleanCommon_Face_Plane.py + TestBooleanCommon_FaceCompound_FaceCompound.py + TestBooleanCommon_Shell_Shell.py + TestBooleanCommon_ShellCompound_ShellCompound.py + TestBooleanCommon_Solid_Face.py + TestBooleanCommon_Solid_Shell.py + TestBooleanCommon_Solid_Solid.py + TestBooleanCommon_SolidCompound_Face.py + TestBooleanCommon_SolidCompound_Shell.py + TestBooleanCommon_SolidCompound_SolidCompound.py + TestBooleanCommon_SubCompound_Solid.py + TestBooleanCommon_SubSolid_Solid.py + TestBooleanCommon_CompSolid_Face.py + TestBooleanCommon_CompSolid_Shell.py + TestBooleanCommon_CompSolid_CompSolid.py + TestBooleanCommon_CompSolidCompound_Face.py + TestBooleanCommon_CompSolidCompound_Shell.py + TestBooleanCommon_CompSolidCompound_CompSolidCompound.py + TestBooleanCommon_ErrorMsg.py + TestBooleanCommon_SolidsHistory.py + Test2596.py + Test2592.py + Test2588.py + Test1467.py + TestPartitionSubCompsolidWithCompSolid1.py + TestPartitionSubCompsolidWithCompSolid2.py + TestPartitionSubCompsolidWithCompSolid3.py + TestPartitionSubCompsolidWithSolid1.py + TestPartitionSubCompsolidWithSolid2.py + TestPartitionSubCompsolidWithSolid3.py + TestPartitionSubCompsolidWithSolid4.py + TestPartitionSubCompsolidWithSolid5.py + TestPartitionSubCompsolidWithFace1.py + TestPartitionSubCompsolidWithFace2.py + TestPartitionSubCompsolidWithFace3.py + TestPartitionSubCompsolidWithFace4.py + TestPartitionSubCompsolidWithFace5.py + TestPartitionSubCompsolidWithPlane1.py + TestPartitionSubCompsolidWithPlane2.py + TestPartitionSubCompsolidWithPlane3.py + TestPartitionSubCompsolidWithPlane4.py + TestPartitionSubCompsolidWithPlane5.py + TestPartitionArgsUpdate.py + TestPartition_SolidsHistory.py + TestBooleanFuse_Vertex_Vertex.py + TestBooleanFuse_VertexCompound_VertexCompound.py + TestBooleanFuse_Edge_Edge.py + TestBooleanFuse_EdgeCompound_EdgeCompound.py + TestBooleanFuse_Wire_Wire.py + TestBooleanFuse_WireCompound_WireCompound.py + TestBooleanFuse_Face_Face.py + TestBooleanFuse_FaceCompound_FaceCompound.py + TestBooleanFuse_Shell_Shell.py + TestBooleanFuse_ShellCompound_ShellCompound.py + TestBooleanFuse_Solid_Solid.py + TestBooleanFuse_SolidCompound_SolidCompound.py + TestBooleanFuse_CompSolid_Face.py + TestBooleanFuse_CompSolid_CompSolid.py + TestBooleanFuse_CompSolidCompound_CompSolidCompound.py + TestBooleanFuse_SolidsHistory.py + TestFillet.py + TestFillet1.py + TestFillet_ErrorMsg.py + TestFillet_History.py + TestScale1.py + TestScale2.py + Test1816.py + Test1876.py + Test2225.py + Test2631.py + Test2636.py + Test2650.py + Test2681.py + Test2686.py + Test2689.py + Test2693.py + Test2698.py + Test2701.py + Test2724.py + Test2692.py + Test2617.py + Test2729.py + Test2738.py + Test2751.py + Test2826.py + Test2854.py + Test2878.py + Test2920.py + Test2971.py + Test3014.py + TestBooleanCommon_MultiLevelCompound_v0_1.py + TestBooleanCommon_MultiLevelCompound_v0_2.py + TestBooleanCommon_MultiLevelCompound_v20190506_1.py + TestBooleanCommon_MultiLevelCompound_v20190506_2.py + TestBooleanCut_MultiLevelCompound_v0_1.py + TestBooleanCut_MultiLevelCompound_v0_2.py + TestBooleanCut_MultiLevelCompound_v20190506_1.py + TestBooleanCut_MultiLevelCompound_v20190506_2.py + TestBooleanFuse_MultiLevelCompound_v0_1.py + TestBooleanFuse_MultiLevelCompound_v0_2.py + TestBooleanFuse_MultiLevelCompound_v0_3.py + TestBooleanFuse_MultiLevelCompound_v0_4.py + TestBooleanFuse_MultiLevelCompound_v20190506_1.py + TestBooleanFuse_MultiLevelCompound_v20190506_2.py + TestBooleanFuse_MultiLevelCompound_v20190506_3.py + TestBooleanFuse_MultiLevelCompound_v20190506_4.py + TestBooleanSmash_MultiLevelCompound_v0_1.py + TestBooleanSmash_MultiLevelCompound_v0_2.py + TestBooleanSmash_MultiLevelCompound_v20190506_1.py + TestBooleanSmash_MultiLevelCompound_v20190506_2.py + TestBooleanSplit_MultiLevelCompound_v0_1.py + TestBooleanSplit_MultiLevelCompound_v0_2.py + TestBooleanSplit_MultiLevelCompound_v20190506_1.py + TestBooleanSplit_MultiLevelCompound_v20190506_2.py + TestPartition_MultiLevelCompound_v0_1.py + TestPartition_MultiLevelCompound_v0_2.py + TestPartition_MultiLevelCompound_v0_3.py + TestPartition_MultiLevelCompound_v20190506_1.py + TestPartition_MultiLevelCompound_v20190506_2.py + TestPartition_MultiLevelCompound_v20190506_3.py + TestUnion_MultiLevelCompound_v0.py + TestUnion_MultiLevelCompound_v20190506.py + TestUnionFaces_v20190506.py + TestRemoveResultsBody.py + TestRemoveResultsConstruction.py + TestRemoveResultsPart.py + Test17000.py + Test17261.py + Test17281.py + TestChamfer.py + Test3033.py + Test3076.py + Test17909.py + TestCopy_ErrorMsg.py + TestCopyFeature.py + TestCopyFeatureMoveGroupOfFeature.py + TestCopyMoveResult.py + TestCopyMoveSubShapes.py + TestCopyNames.py + TestCopySubShapes.py + TestCopyWholeFeature.py + TestImportResult.py + TestDefeaturing_ErrorMsg.py + TestDefeaturing_OnSolid1.py + TestDefeaturing_OnSolid2.py + TestDefeaturing_OnSolid3.py + TestDefeaturing_OnCompsolid1.py + TestDefeaturing_OnCompsolid2.py + TestDefeaturing_OnCompsolid3.py + TestDefeaturing_OnCompound.py + Test3137_1.py + Test3137_2.py + Test2918.py + Test3139.py + TestPlacement_MultiLevelCompound_v0_1.py + TestPlacement_MultiLevelCompound_v0_2.py + TestPlacement_MultiLevelCompound_v0_3.py + TestPlacement_MultiLevelCompound_v0_4.py + TestPlacement_MultiLevelCompound_v0_5.py + TestPlacement_MultiLevelCompound_v0_6.py + TestPlacement_MultiLevelCompound_v95_1.py + TestPlacement_MultiLevelCompound_v95_2.py + TestPlacement_MultiLevelCompound_v95_3.py + TestPlacement_MultiLevelCompound_v95_4.py + TestPlacement_MultiLevelCompound_v95_5.py + TestPlacement_MultiLevelCompound_v95_6.py + TestTranslation_MultiLevelCompound_v0_1.py + TestTranslation_MultiLevelCompound_v0_2.py + TestTranslation_MultiLevelCompound_v0_3.py + TestTranslation_MultiLevelCompound_v0_4.py + TestTranslation_MultiLevelCompound_v0_5.py + TestTranslation_MultiLevelCompound_v95_1.py + TestTranslation_MultiLevelCompound_v95_2.py + TestTranslation_MultiLevelCompound_v95_3.py + TestTranslation_MultiLevelCompound_v95_4.py + TestTranslation_MultiLevelCompound_v95_5.py + TestRotation_MultiLevelCompound_v0_1.py + TestRotation_MultiLevelCompound_v0_2.py + TestRotation_MultiLevelCompound_v0_3.py + TestRotation_MultiLevelCompound_v0_4.py + TestRotation_MultiLevelCompound_v95_1.py + TestRotation_MultiLevelCompound_v95_2.py + TestRotation_MultiLevelCompound_v95_3.py + TestRotation_MultiLevelCompound_v95_4.py + TestSymmetry_MultiLevelCompound_v0_1.py + TestSymmetry_MultiLevelCompound_v0_2.py + TestSymmetry_MultiLevelCompound_v0_3.py + TestSymmetry_MultiLevelCompound_v0_4.py + TestSymmetry_MultiLevelCompound_v0_5.py + TestSymmetry_MultiLevelCompound_v95_1.py + TestSymmetry_MultiLevelCompound_v95_2.py + TestSymmetry_MultiLevelCompound_v95_3.py + TestSymmetry_MultiLevelCompound_v95_4.py + TestSymmetry_MultiLevelCompound_v95_5.py + TestScale_MultiLevelCompound_v0_1.py + TestScale_MultiLevelCompound_v0_2.py + TestScale_MultiLevelCompound_v0_3.py + TestScale_MultiLevelCompound_v0_4.py + TestScale_MultiLevelCompound_v95_1.py + TestScale_MultiLevelCompound_v95_2.py + TestScale_MultiLevelCompound_v95_3.py + TestScale_MultiLevelCompound_v95_4.py + TestMultiTranslation_MultiLevelCompound_v0_1.py + TestMultiTranslation_MultiLevelCompound_v0_2.py + TestMultiTranslation_MultiLevelCompound_v0_3.py + TestMultiTranslation_MultiLevelCompound_v0_4.py + TestMultiTranslation_MultiLevelCompound_v95_1.py + TestMultiTranslation_MultiLevelCompound_v95_2.py + TestMultiTranslation_MultiLevelCompound_v95_3.py + TestMultiTranslation_MultiLevelCompound_v95_4.py + TestMultiRotation_MultiLevelCompound_v0_1.py + TestMultiRotation_MultiLevelCompound_v0_2.py + TestMultiRotation_MultiLevelCompound_v0_3.py + TestMultiRotation_MultiLevelCompound_v0_4.py + TestMultiRotation_MultiLevelCompound_v95_1.py + TestMultiRotation_MultiLevelCompound_v95_2.py + TestMultiRotation_MultiLevelCompound_v95_3.py + TestMultiRotation_MultiLevelCompound_v95_4.py + TestIntersection_MultiLevelCompound_v0_1.py + TestIntersection_MultiLevelCompound_v0_2.py + TestIntersection_MultiLevelCompound_v95_1.py + TestIntersection_MultiLevelCompound_v95_2.py + TestFillet_MultiLevelCompound_v0_1.py + TestFillet_MultiLevelCompound_v0_2.py + TestFillet_MultiLevelCompound_v0_3.py + TestFillet_MultiLevelCompound_v0_4.py + TestFillet_MultiLevelCompound_v95_1.py + TestFillet_MultiLevelCompound_v95_2.py + TestFillet_MultiLevelCompound_v95_3.py + TestFillet_MultiLevelCompound_v95_4.py + TestChamfer_MultiLevelCompound_v0_1.py + TestChamfer_MultiLevelCompound_v0_2.py + TestChamfer_MultiLevelCompound_v0_3.py + TestChamfer_MultiLevelCompound_v0_4.py + TestChamfer_MultiLevelCompound_v95_1.py + TestChamfer_MultiLevelCompound_v95_2.py + TestChamfer_MultiLevelCompound_v95_3.py + TestChamfer_MultiLevelCompound_v95_4.py + Test18836.py + Test2817.py + Test19065.py + Test19066.py + Test19115.py + Test19196.py + TestFillet1D_ErrorMsg.py + TestFillet1D_Vertices_1.py + TestFillet1D_Vertices_2.py + TestFillet1D_Vertices_3.py + TestFillet1D_Vertices_4.py + TestFillet1D_Vertices_5.py + TestFillet1D_Vertices_6.py + TestFillet1D_Vertices_7.py + TestFillet1D_Vertices_8.py + TestFillet1D_Vertices_9.py + TestFillet1D_Wire_1.py + TestFillet1D_Wire_2.py + TestFillet1D_Wire_3.py + TestFillet1D_Wire_4.py + TestFillet1D_Wire_5.py + Test19931.py + Test20027.py + Test20245_1.py + Test20245_2.py + Test20245_3.py + Test20247.py + Test22847.py + TestPointCoordinates.py + TestGeometryCalculation.py + TestBoundingBox.py + Test23885.py +)