diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a168daf5..19969395 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -10,6 +10,11 @@ set (gtest_sources ign_TEST.cc ) +# Disable tests that need CLI on homebrew +if (APPLE) + list(REMOVE_ITEM gtest_sources ign_TEST.cc) +endif() + # Create the library target. ign_create_core_library(SOURCES ${sources} CXX_STANDARD 17) diff --git a/src/ign_TEST.cc b/src/ign_TEST.cc index a9af15e9..587466ae 100644 --- a/src/ign_TEST.cc +++ b/src/ign_TEST.cc @@ -24,6 +24,8 @@ #include #include "ignition/launch/test_config.hh" // NOLINT(build/include) +#include + static const std::string kIgnCommand( std::string("IGN_CONFIG_PATH=") + IGN_CONFIG_PATH + " " + std::string(BREW_RUBY) + std::string(IGN_PATH) + " launch "); @@ -51,7 +53,7 @@ std::string customExecStr(std::string _cmd) } ///////////////////////////////////////////////// -TEST(CmdLine, Ls) +TEST(CmdLine, IGN_UTILS_TEST_DISABLED_ON_MAC(Ls)) { std::string cmd = kIgnCommand + std::string(PROJECT_SOURCE_PATH) + "/test/config/ls.ign"; @@ -65,7 +67,7 @@ TEST(CmdLine, Ls) } ///////////////////////////////////////////////// -TEST(CmdLine, EchoSelf) +TEST(CmdLine, IGN_UTILS_TEST_DISABLED_ON_MAC(EchoSelf)) { std::string filePath = std::string(PROJECT_SOURCE_PATH) + "/test/config/echo.ign";