32 #include <gtest/gtest.h> 40 printf(
"Path: %s\n", path.c_str());
41 ASSERT_FALSE(path.empty());
49 ASSERT_FALSE(packages.empty());
51 V_string::iterator it = packages.begin();
52 V_string::iterator end = packages.end();
53 for (; it != end; ++it)
55 printf(
"Package: %s\n", it->c_str());
59 int main(
int argc,
char **argv){
60 testing::InitGoogleTest(&argc, argv);
61 return RUN_ALL_TESTS();
ROSLIB_DECL bool getAll(V_string &packages)
Gets a list of all packages. Returns false if it could not run the command.
std::vector< std::string > V_string
int main(int argc, char **argv)
ROSLIB_DECL std::string getPath(const std::string &package_name)
Returns the fully-qualified path to a package, or an empty string if the package is not found...