1 #include <gtest/gtest.h> 2 #include <boost/filesystem.hpp> 6 TEST( STLLoader, load )
10 meshDir /=
"src/test/meshes";
14 boost::filesystem::path meshFilePath = meshDir /
"ascii.stl";
15 EXPECT_FALSE(loader.
load(meshFilePath.string()));
18 meshFilePath = meshDir /
"invalid_short.stl";
19 EXPECT_FALSE(loader.
load(meshFilePath.string()));
22 meshFilePath = meshDir /
"invalid.stl";
23 EXPECT_FALSE(loader.
load(meshFilePath.string()));
27 meshFilePath = meshDir /
"16bit_vs_32bit_should_fail.stl";
28 EXPECT_FALSE(loader.
load(meshFilePath.string()));
31 meshFilePath = meshDir /
"valid.stl";
32 EXPECT_TRUE(loader.
load(meshFilePath.string()));
37 meshFilePath = meshDir /
"valid_extra.stl";
38 EXPECT_TRUE(loader.
load(meshFilePath.string()));
41 int main(
int argc,
char **argv ) {
42 testing::InitGoogleTest( &argc, argv );
43 return RUN_ALL_TESTS();
int main(int argc, char **argv)
ROSLIB_DECL std::string getPath(const std::string &package_name)