libzypp 17.37.17
TestcaseSetup.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12
13#ifndef ZYPP_MISC_TESTCASESETUP_H
14#define ZYPP_MISC_TESTCASESETUP_H
15
16#include <zypp/Arch.h>
17#include <zypp/Globals.h>
18#include <zypp/Locale.h>
19#include <zypp/Pathname.h>
20#include <zypp/ResolverFocus.h>
21#include <zypp/Url.h>
22#include <zypp/base/PtrTypes.h>
24#include <zypp/sat/Queue.h>
26
27#include <optional>
28#include <vector>
29
30namespace zypp {
31 class RepoManager;
32}
33
35{
36
42
43 struct RepoDataImpl;
44 struct ForceInstallImpl;
45 struct TestcaseSetupImpl;
46
47 class RepoData {
48 public:
49 RepoData ();
50 ~RepoData ();
52 TestcaseRepoType type() const;
53 const std::string &alias() const;
54 uint priority() const;
55 const std::string &path() const;
56
57 const RepoDataImpl &data() const;
59 private:
61 };
62
64 public:
65 ForceInstall ();
68 const std::string &channel () const;
69 const std::string &package () const;
70 const std::string &kind () const;
71
72 const ForceInstallImpl &data() const;
74 private:
76 };
77
79 {
80 public:
81
84
85 Arch architecture () const;
86
87 const std::optional<RepoData> &systemRepo() const;
88 const std::vector<RepoData> &repos() const;
89
90 // solver flags: default to false - set true if mentioned in <setup>
92
93 const Pathname &globalPath() const;
94 const Pathname &hardwareInfoFile() const;
95 const Pathname &systemCheck() const;
96
99 const std::vector<std::vector<std::string>> &vendorLists() const;
100 const sat::StringQueue &autoinstalled() const;
101 const std::set<std::string> &multiversionSpec() const;
102 const std::vector<ForceInstall> &forceInstallTasks() const;
103
104 bool set_licence() const;
105 bool show_mediaid() const;
106
107 bool ignorealreadyrecommended() const;
108 bool onlyRequires() const;
109 bool forceResolve() const;
110 bool cleandepsOnRemove() const;
111
112 bool allowDowngrade() const;
113 bool allowNameChange() const;
114 bool allowArchChange() const;
115 bool allowVendorChange() const;
116
117 bool dupAllowDowngrade() const;
118 bool dupAllowNameChange() const;
119 bool dupAllowArchChange() const;
120 bool dupAllowVendorChange() const;
121
122 bool applySetup ( zypp::RepoManager &manager ) const;
123
124 static bool loadRepo (zypp::RepoManager &manager, const TestcaseSetup &setup, const RepoData &data );
125
127 const TestcaseSetupImpl &data() const;
128
129 private:
131 };
132
133}
134
135
136#endif // ZYPP_MISC_TESTCASESETUPIMPL_H
Architecture.
Definition Arch.h:37
creates and provides information about known sources.
Definition RepoManager.h:60
RWCOW_pointer< ForceInstallImpl > _pimpl
const std::string & package() const
const std::string & kind() const
const std::string & channel() const
const ForceInstallImpl & data() const
const RepoDataImpl & data() const
TestcaseRepoType type() const
RWCOW_pointer< RepoDataImpl > _pimpl
const std::string & path() const
const std::string & alias() const
const std::vector< RepoData > & repos() const
bool applySetup(zypp::RepoManager &manager) const
ResolverFocus resolverFocus() const
const target::Modalias::ModaliasList & modaliasList() const
const std::vector< ForceInstall > & forceInstallTasks() const
const std::optional< RepoData > & systemRepo() const
const std::vector< std::vector< std::string > > & vendorLists() const
const std::set< std::string > & multiversionSpec() const
RWCOW_pointer< TestcaseSetupImpl > _pimpl
const sat::StringQueue & autoinstalled() const
static bool loadRepo(zypp::RepoManager &manager, const TestcaseSetup &setup, const RepoData &data)
const Pathname & systemCheck() const
const Pathname & globalPath() const
const Pathname & hardwareInfoFile() const
const base::SetTracker< LocaleSet > & localesTracker() const
std::vector< std::string > ModaliasList
Definition Modalias.h:45
Queue StringQueue
Queue with String ids.
Definition Queue.h:28
Easy-to use interface to the ZYPP dependency resolver.
ResolverFocus
The resolver's general attitude.
RW_pointer supporting 'copy on write' functionality.
Definition PtrTypes.h:469
Track added/removed set items based on an initial set.
Definition SetTracker.h:38
#define ZYPP_API_DEPTESTOMATIC
Definition Globals.h:77