diff --git a/loader/src/gz_TEST.cc b/loader/src/gz_TEST.cc index 13327ac0..69d266ab 100644 --- a/loader/src/gz_TEST.cc +++ b/loader/src/gz_TEST.cc @@ -28,7 +28,7 @@ using namespace gz; -static const std::string g_ignVersion("--force-version " + // NOLINT(*) +static const std::string g_gzVersion("--force-version " + // NOLINT(*) std::string(GZ_VERSION_FULL)); ///////////////////////////////////////////////// @@ -55,11 +55,11 @@ std::string custom_exec_str(std::string _cmd) ////////////////////////////////////////////////// /// \brief Check 'gz plugin --help'. -TEST(ignTest, IgnPluginHelp) +TEST(gzTest, IgnPluginHelp) { // Path to gz executable - std::string ign = std::string(GZ_PATH); - std::string output = custom_exec_str(ign + " plugin --help"); + std::string gz = std::string(GZ_PATH); + std::string output = custom_exec_str(gz + " plugin --help"); EXPECT_NE(std::string::npos, output.find("-i,--info Get info about a plugin.")) << output; @@ -67,7 +67,7 @@ TEST(ignTest, IgnPluginHelp) output.find("-p,--plugin TEXT Needs: --info")) << output; - output = custom_exec_str(ign + " plugin"); + output = custom_exec_str(gz + " plugin"); EXPECT_NE(std::string::npos, output.find("-i,--info Get info about a plugin.")) << output; @@ -78,12 +78,12 @@ TEST(ignTest, IgnPluginHelp) ////////////////////////////////////////////////// /// \brief Check 'gz plugin --info' for a non-existent file. -TEST(ignTest, PluginInfoNonexistentLibrary) +TEST(gzTest, PluginInfoNonexistentLibrary) { // Path to gz executable - std::string ign = std::string(GZ_PATH); + std::string gz = std::string(GZ_PATH); - std::string output = custom_exec_str(ign + " plugin --info --plugin " + + std::string output = custom_exec_str(gz + " plugin --info --plugin " + "/path/to/libDoesNotExist.so"); EXPECT_NE(std::string::npos, output.find("Error while loading the library")) @@ -96,12 +96,12 @@ TEST(ignTest, PluginInfoNonexistentLibrary) ////////////////////////////////////////////////// /// \brief Check 'gz plugin --info' for a file that isn't a shared library. -TEST(ignTest, PluginInfoNonLibrary) +TEST(gzTest, PluginInfoNonLibrary) { // Path to gz executable - std::string ign = std::string(GZ_PATH); + std::string gz = std::string(GZ_PATH); - std::string output = custom_exec_str(ign + " plugin --info --plugin " + + std::string output = custom_exec_str(gz + " plugin --info --plugin " + std::string(GZ_PLUGIN_SOURCE_DIR) + "/core/src/Plugin.cc"); EXPECT_NE(std::string::npos, output.find("Error while loading the library")) @@ -114,12 +114,12 @@ TEST(ignTest, PluginInfoNonLibrary) ////////////////////////////////////////////////// /// \brief Check 'gz plugin --info' for a library that has no plugins. -TEST(ignTest, PluginInfoNonPluginLibrary) +TEST(gzTest, PluginInfoNonPluginLibrary) { // Path to gz executable - std::string ign = std::string(GZ_PATH); + std::string gz = std::string(GZ_PATH); - std::string output = custom_exec_str(ign + " plugin --info --plugin " + + std::string output = custom_exec_str(gz + " plugin --info --plugin " + GZ_PLUGIN_LIB); EXPECT_NE(std::string::npos, output.find("does not export any plugins. The " @@ -133,12 +133,12 @@ TEST(ignTest, PluginInfoNonPluginLibrary) ////////////////////////////////////////////////// /// \brief Check 'gz plugin --info' for a library with plugins. -TEST(ignTest, PluginInfoDummyPlugins) +TEST(gzTest, PluginInfoDummyPlugins) { // Path to gz executable - std::string ign = std::string(GZ_PATH); + std::string gz = std::string(GZ_PATH); - std::string output = custom_exec_str(ign + " plugin --info --plugin " + + std::string output = custom_exec_str(gz + " plugin --info --plugin " + GzDummyPlugins_LIB); EXPECT_NE(std::string::npos, output.find("Found 3 plugins in library file")) @@ -172,12 +172,12 @@ TEST(ignTest, PluginInfoDummyPlugins) ////////////////////////////////////////////////// /// \brief Check 'gz plugin --info' with verbose output. -TEST(ignTest, PluginInfoVerboseDummyPlugins) +TEST(gzTest, PluginInfoVerboseDummyPlugins) { // Path to gz executable - std::string ign = std::string(GZ_PATH); + std::string gz = std::string(GZ_PATH); - std::string output = custom_exec_str(ign + " plugin --info --plugin " + + std::string output = custom_exec_str(gz + " plugin --info --plugin " + GzDummyPlugins_LIB + " --verbose"); EXPECT_NE(std::string::npos, output.find("Known Interfaces: 7"))