libept
test.h
Go to the documentation of this file.
1 //#include <ept/core/apt.h>
2 #include <ept/config.h>
4 
5 #include <wibble/test.h>
6 
7 #include <apt-pkg/pkgcache.h>
8 #include <apt-pkg/sourcelist.h>
9 #include <apt-pkg/error.h>
10 #include <apt-pkg/policy.h>
11 #include <apt-pkg/cachefile.h>
12 #include <apt-pkg/progress.h>
13 #include <apt-pkg/pkgcachegen.h>
14 #include <apt-pkg/init.h>
15 
16 
17 #ifndef EPT_TEST_H
18 #define EPT_TEST_H
19 
21  //ept::core::AptDatabase db;
23  pkgInitConfig (*_config);
24  _config->Set("Initialized", 1);
25  _config->Set("Dir", TEST_ENV_DIR);
26  _config->Set("Dir::Cache", "cache");
27  _config->Set("Dir::State", "state");
28  _config->Set("Dir::Etc", "etc");
29  _config->Set("Dir::Etc::sourcelist", "sources.list");
30  _config->Set("Dir::State::status", TEST_ENV_DIR "dpkg-status");
31  pkgInitSystem (*_config, _system);
32  }
33 };
34 
40 
42  : odsd( TEST_ENV_DIR "debtags/"),
43  odid( TEST_ENV_DIR "debtags/"),
44  odusd( TEST_ENV_DIR "debtags/"),
45  oduid( TEST_ENV_DIR "debtags/")
46  {}
47 };
48 
49 #endif