400bacba381edf2c041b33bfecfa117b7aef9116
[platform/upstream/libzypp.git] / devel / devel.dmacvicar / testbed.cc
1 #include <sys/time.h>
2
3 #include <iostream>
4 #include <fstream>
5
6 #include <zypp/base/Logger.h>
7 #include <zypp/ZYpp.h>
8 #include <zypp/ZYppFactory.h>
9
10 #include "zypp/Product.h"
11 #include "zypp/detail/PackageImplIf.h"
12 #include "zypp/Package.h"
13 #include "zypp2/RepositoryFactory.h"
14 #include "zypp2/repo/cached/RepoImpl.h"
15 #include "zypp/data/ResolvableData.h"
16
17 using namespace std;
18 using namespace zypp;
19 using namespace zypp::repo;
20 using namespace zypp::repo::cached;
21
22
23 int main(int argc, char **argv)
24 {
25     try
26     {
27       ZYpp::Ptr z = getZYpp();
28     
29       z->initializeTarget("/");
30       ResStore res = z->target()->resolvables();
31       MIL << res.size() << " resolvables" << endl;
32
33     }
34     catch ( const Exception &e )
35     {
36       ZYPP_CAUGHT(e);
37       cout << e.msg() << endl;
38     }
39     
40     return 0;
41 }
42
43
44