6 #include <boost/test/unit_test.hpp>
8 #include <zypp/ZYppFactory.h>
10 #include <zypp/PathInfo.h>
11 #include <zypp/TmpPath.h>
12 #include <zypp/ZConfig.h>
13 #include <zypp/repo/PluginServices.h>
14 #include <zypp/ServiceInfo.h>
20 using namespace boost::unit_test;
21 using namespace zypp::repo;
23 #define DATADIR (Pathname(TESTS_SRC_DIR) + "/repo/yum/data")
25 class ServiceCollector
28 typedef std::set<ServiceInfo> ServiceSet;
30 ServiceCollector( ServiceSet & services_r )
31 : _services( services_r )
34 bool operator()( const ServiceInfo & service_r ) const
36 _services.insert( service_r );
41 ServiceSet & _services;
45 BOOST_AUTO_TEST_CASE(plugin_services)
47 ServiceCollector::ServiceSet services;
49 PluginServices local("/space/tmp/services", ServiceCollector(services));
52 // vim: set ts=2 sts=2 sw=2 ai et: