23 #include <boost/filesystem.hpp> 44 tc =
new TaskContext(
"root", TaskContext::Stopped );
84 #if defined(__APPLE__) 198 BOOST_CHECK( pl->isLoaded(
"typekit_plugin") ==
false);
199 BOOST_CHECK( pl->isLoaded(
"TypesPluginTest") ==
false);
200 pl->loadTypekit(
"testproject",
".;..");
201 BOOST_CHECK( pl->isLoaded(
"typekit_plugin") );
202 BOOST_CHECK( pl->isLoaded(
"TypesPluginTest") );
212 BOOST_REQUIRE( pl->loadTypekit(
"typekit_plugin",
"testproject;../testproject") );
213 BOOST_CHECK( pl->isLoaded(
"typekit_plugin") );
214 BOOST_CHECK( pl->isLoaded(
"TypesPluginTest") );
221 BOOST_CHECK( pl->isLoaded(
"service_plugin") ==
false);
222 BOOST_CHECK( pl->isLoaded(
"serviceplugin") ==
false);
223 BOOST_CHECK( pl->isLoaded(
"global_service_plugin") ==
false);
224 BOOST_CHECK( pl->isLoaded(
"globalserviceplugin") ==
false);
225 pl->loadPlugin(
"testproject",
".;..");
226 BOOST_CHECK( pl->isLoaded(
"service_plugin") );
227 BOOST_CHECK( pl->isLoaded(
"serviceplugin") );
228 BOOST_CHECK( pl->isLoaded(
"global_service_plugin") );
229 BOOST_CHECK( pl->isLoaded(
"globalserviceplugin") );
238 BOOST_REQUIRE( pl->loadService(
"serviceplugin",
tc) );
239 BOOST_CHECK(
tc->
provides()->hasService(
"the_service") );
#define BOOST_FIXTURE_TEST_SUITE(suite_name, F)
Service::shared_ptr provides()
BOOST_AUTO_TEST_CASE(testExtensionVersion)
#define BOOST_AUTO_TEST_SUITE_END()
RTT_API bool isLoadableLibrary(const boost::filesystem::path &filename)
RTT_API bool isExtensionVersion(const std::string &ext)
static RTT_API Service::shared_ptr Instance()
boost::shared_ptr< PluginLoader > shared_ptr