Skip to content

Commit

Permalink
Just remove rcpputils::fs dependency (#1105)
Browse files Browse the repository at this point in the history
* Remove rcpputils::fs dependency

* Remove rcpputils dependency from package.xml and CMakeLists

Signed-off-by: Kenta Yonekura <[email protected]>
  • Loading branch information
yoneken authored Sep 28, 2023
1 parent 1260197 commit c65b517
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 14 deletions.
1 change: 0 additions & 1 deletion rcl/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
<test_depend>launch_testing_ament_cmake</test_depend>
<test_depend>mimick_vendor</test_depend>
<test_depend>osrf_testing_tools_cpp</test_depend>
<test_depend>rcpputils</test_depend>
<test_depend>rmw</test_depend>
<test_depend>rmw_implementation_cmake</test_depend>
<test_depend>rosidl_runtime_cpp</test_depend>
Expand Down
4 changes: 1 addition & 3 deletions rcl/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ find_package(ament_cmake_gtest REQUIRED)
find_package(launch_testing_ament_cmake REQUIRED)
find_package(mimick_vendor REQUIRED)
find_package(osrf_testing_tools_cpp REQUIRED)
find_package(rcpputils REQUIRED)
find_package(rcutils REQUIRED)
find_package(rmw_implementation_cmake REQUIRED)
find_package(rosidl_runtime_cpp REQUIRED)
Expand Down Expand Up @@ -189,7 +188,6 @@ function(test_target_function)
LIBRARIES ${PROJECT_NAME} mimick wait_for_entity_helpers
AMENT_DEPENDENCIES ${rmw_implementation}
"osrf_testing_tools_cpp"
"rcpputils"
"rcutils"
"rosidl_runtime_c"
"test_msgs"
Expand Down Expand Up @@ -394,7 +392,7 @@ rcl_add_custom_gtest(test_arguments
APPEND_LIBRARY_DIRS ${extra_lib_dirs}
INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../src/rcl/
LIBRARIES ${PROJECT_NAME} osrf_testing_tools_cpp::memory_tools
AMENT_DEPENDENCIES "osrf_testing_tools_cpp" "rcpputils"
AMENT_DEPENDENCIES "osrf_testing_tools_cpp"
)

rcl_add_custom_gtest(test_time
Expand Down
4 changes: 2 additions & 2 deletions rcl/test/rcl/test_arguments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
// limitations under the License.

#include <gtest/gtest.h>
#include <filesystem>
#include <sstream>
#include <string>
#include <vector>

#include "osrf_testing_tools_cpp/scope_exit.hpp"
#include "rcpputils/filesystem_helper.hpp"

#include "rcl/rcl.h"
#include "rcl/arguments.h"
Expand All @@ -44,7 +44,7 @@ class TestArgumentsFixture : public ::testing::Test
}

protected:
rcpputils::fs::path test_path{TEST_RESOURCES_DIRECTORY};
std::filesystem::path test_path{TEST_RESOURCES_DIRECTORY};
};

#define EXPECT_UNPARSED(parsed_args, ...) \
Expand Down
6 changes: 3 additions & 3 deletions rcl/test/rcl/test_publisher_wait_all_ack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

#include <gtest/gtest.h>

#include <thread>
#include <chrono>
#include <filesystem>
#include <string>
#include <thread>

#include "rcl/allocator.h"
#include "rcl/publisher.h"
#include "rcl/subscription.h"
#include "rcpputils/filesystem_helper.hpp"
#include "rcutils/env.h"

#include "rcl/rcl.h"
Expand Down Expand Up @@ -58,7 +58,7 @@ class CLASSNAME (TestPublisherFixtureSpecial, RMW_IMPLEMENTATION) : public ::tes
// By default, fastdds use intraprocess mode in this scenario. But this leads to high-speed
// data transmission. test_wait_for_all_acked need low data transmission. So disable this
// mode via fastdds profile file.
rcpputils::fs::path fastdds_profile(TEST_RESOURCES_DIRECTORY);
std::filesystem::path fastdds_profile(TEST_RESOURCES_DIRECTORY);
fastdds_profile /= "test_profile/disable_intraprocess.xml";
ASSERT_EQ(
rcutils_set_env("FASTRTPS_DEFAULT_PROFILES_FILE", fastdds_profile.string().c_str()),
Expand Down
1 change: 0 additions & 1 deletion rcl_yaml_param_parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ if(BUILD_TESTING)
target_link_libraries(benchmark_parse_yaml
${PROJECT_NAME}
performance_test_fixture::performance_test_fixture
rcpputils::rcpputils
rcutils::rcutils
)
endif()
Expand Down
1 change: 0 additions & 1 deletion rcl_yaml_param_parser/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<test_depend>mimick_vendor</test_depend>
<test_depend>osrf_testing_tools_cpp</test_depend>
<test_depend>performance_test_fixture</test_depend>
<test_depend>rcpputils</test_depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down
5 changes: 2 additions & 3 deletions rcl_yaml_param_parser/test/benchmark/benchmark_parse_yaml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <filesystem>
#include <string>

#include "performance_test_fixture/performance_test_fixture.hpp"

#include "rcl_yaml_param_parser/parser.h"

#include "rcpputils/filesystem_helper.hpp"

#include "rcutils/allocator.h"
#include "rcutils/error_handling.h"

Expand All @@ -28,7 +27,7 @@ using performance_test_fixture::PerformanceTest;
BENCHMARK_F(PerformanceTest, parser_yaml_param)(benchmark::State & st)
{
std::string path =
(rcpputils::fs::current_path() / "test" / "benchmark" / "benchmark_params.yaml").string();
(std::filesystem::current_path() / "test" / "benchmark" / "benchmark_params.yaml").string();
reset_heap_counters();
for (auto _ : st) {
RCUTILS_UNUSED(_);
Expand Down

0 comments on commit c65b517

Please sign in to comment.