Test: Support system GTest, and give warning if no submodule (#13662)

This commit is contained in:
Chris Hennes
2024-06-03 10:40:35 -05:00
committed by GitHub
parent 5610d226c3
commit 11fa271eb5
89 changed files with 103 additions and 89 deletions

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <FCConfig.h>

View File

@@ -20,7 +20,7 @@
* *
**************************************************************************/
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <Mod/Material/App/PreCompiled.h>
#ifndef _PreComp_

View File

@@ -20,7 +20,7 @@
* *
**************************************************************************/
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <Mod/Material/App/PreCompiled.h>
#ifndef _PreComp_

View File

@@ -20,7 +20,7 @@
* *
**************************************************************************/
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <Mod/Material/App/PreCompiled.h>
#ifndef _PreComp_

View File

@@ -20,7 +20,7 @@
* *
**************************************************************************/
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <Mod/Material/App/PreCompiled.h>
#ifndef _PreComp_

View File

@@ -20,7 +20,7 @@
* *
**************************************************************************/
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <Mod/Material/App/PreCompiled.h>
#ifndef _PreComp_

View File

@@ -20,7 +20,7 @@
* *
**************************************************************************/
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <Mod/Material/App/PreCompiled.h>
#ifndef _PreComp_

View File

@@ -1,4 +1,4 @@
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <Mod/Mesh/App/Core/KDTree.h>
// NOLINTBEGIN(cppcoreguidelines-*,readability-*)

View File

@@ -1,4 +1,4 @@
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <Base/FileInfo.h>
#include <Base/Interpreter.h>
#include <App/Document.h>

View File

@@ -1,4 +1,4 @@
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <Mod/Mesh/App/Mesh.h>
#include <Mod/Mesh/App/Core/Grid.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <src/App/InitApplication.h>
#include <App/Document.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "PartTestHelpers.h"
#include <src/App/InitApplication.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "Mod/Part/App/BRepMesh.h"
// NOLINTBEGIN

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <src/App/InitApplication.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "Mod/Part/App/FeatureCompound.h"
#include <src/App/InitApplication.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <src/App/InitApplication.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <src/App/InitApplication.h>
#include <Mod/Part/App/FeatureMirroring.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <src/App/InitApplication.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "Mod/Part/App/FeaturePartBoolean.h"
#include <src/App/InitApplication.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "Mod/Part/App/FeaturePartCommon.h"
#include <src/App/InitApplication.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "Mod/Part/App/FeaturePartCut.h"
#include <src/App/InitApplication.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "Mod/Part/App/FeaturePartFuse.h"
#include <src/App/InitApplication.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "Mod/Part/App/FeatureRevolution.h"
#include <src/App/InitApplication.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <boost/core/ignore_unused.hpp>
#include "Mod/Part/App/FeaturePartCommon.h"

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "Mod/Part/App/PartFeatures.h"
#include <src/App/InitApplication.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <boost/format.hpp>
#include <App/Application.h>
#include <App/Document.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <BRepFilletAPI_MakeFillet.hxx>
#include "Mod/Part/App/FeaturePartCommon.h"

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <Standard_TypeMismatch.hxx>
#include <TopoDS.hxx>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "PartTestHelpers.h"
#include <Mod/Part/App/TopoShape.h>
#include "src/App/InitApplication.h"

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <Mod/Part/App/TopoShape.h>
#include <Mod/Part/App/TopoShapeCache.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "src/App/InitApplication.h"
#include <Mod/Part/App/TopoShape.h>
#include "Mod/Part/App/TopoShapeMapper.h"

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <src/App/InitApplication.h>

View File

@@ -3,7 +3,7 @@
// Tests for the makeShape methods, extracted from the main set of tests for TopoShape
// due to length and complexity.
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "src/App/InitApplication.h"
#include "PartTestHelpers.h"
#include <Mod/Part/App/TopoShape.h>

View File

@@ -3,7 +3,7 @@
// Tests for the makeShapeWithElementMap method, extracted from the main set of tests for TopoShape
// due to length and complexity.
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "src/App/InitApplication.h"
#include "PartTestHelpers.h"
#include <Mod/Part/App/TopoShape.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "src/App/InitApplication.h"
#include <Mod/Part/App/TopoShape.h>
#include "Mod/Part/App/TopoShapeMapper.h"

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "src/App/InitApplication.h"
#include "Mod/Part/App/WireJoiner.h"
#include <Mod/Part/App/TopoShapeOpCode.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "src/App/InitApplication.h"
#include <App/Application.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "src/App/InitApplication.h"
#include <App/Application.h>

View File

@@ -1,4 +1,4 @@
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <Base/FileInfo.h>
#include <Mod/Points/App/Points.h>
#include <Mod/Points/App/PointsAlgos.h>

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include <FCConfig.h>

View File

@@ -2,7 +2,7 @@
#include <cmath>
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "Mod/Sketcher/App/planegcs/GCS.h"
#include "Mod/Sketcher/App/planegcs/Geo.h"

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "gtest/gtest.h"
#include <gtest/gtest.h>
#include "Mod/Sketcher/App/planegcs/GCS.h"