From fe3d77585b35e8d6daf98873ea78a30e1f905fa5 Mon Sep 17 00:00:00 2001 From: Guillaume Sarthou Date: Sun, 3 Dec 2023 15:16:23 +0100 Subject: [PATCH] [CI] copy_test remove ros deps --- src/tests/CI/copy_test.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/tests/CI/copy_test.cpp b/src/tests/CI/copy_test.cpp index 2dba0c3b..be663906 100644 --- a/src/tests/CI/copy_test.cpp +++ b/src/tests/CI/copy_test.cpp @@ -1,7 +1,7 @@ #include "ontologenius/core/ontoGraphs/Ontology.h" +#include "ontologenius/utils/Commands.h" #include -#include #include @@ -12,7 +12,7 @@ TEST(cpy_tests, reset) ontologenius::Ontology onto1; onto1.setDisplay(false); - std::string path_base = ros::package::getPath("ontologenius"); + std::string path_base = ontologenius::findPackageRos1("ontologenius"); std::string path = path_base + "/files/attribute.owl"; onto1.readFromFile(path); path = path_base + "/files/positionProperty.owl"; @@ -47,10 +47,6 @@ TEST(cpy_tests, reset) int main(int argc, char** argv) { - ros::init(argc, argv, "ontologenius_cpy"); - testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); - - return 0; }