1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
10 #ifndef ZYPP_MISC_TESTCASESETUPIMPL_H
11 #define ZYPP_MISC_TESTCASESETUPIMPL_H
13 #include <zypp/misc/TestcaseSetup.h>
14 #include <zypp/ZConfig.h>
15 #include <zypp/base/LogControl.h>
16 #include <zypp/Repository.h>
17 #include <zypp/RepoManager.h>
18 #include <zypp/sat/Pool.h>
20 #define ZYPP_USE_RESOLVER_INTERNALS
21 #include <zypp/solver/detail/SystemCheck.h>
23 namespace zypp::misc::testcase
26 TestcaseRepoType type;
31 RepoDataImpl *clone () const { return new RepoDataImpl(*this); }
34 struct ForceInstallImpl {
39 ForceInstallImpl *clone () const { return new ForceInstallImpl(*this); }
42 struct TestcaseSetupImpl
44 Arch architecture = Arch_noarch;
46 std::optional<RepoData> systemRepo;
47 std::vector<RepoData> repos;
49 // solver flags: default to false - set true if mentioned in <setup>
50 ResolverFocus resolverFocus = ResolverFocus::Default;
53 Pathname hardwareInfoFile;
56 target::Modalias::ModaliasList modaliasList;
57 base::SetTracker<LocaleSet> localesTracker;
58 std::vector<std::vector<std::string>> vendorLists;
59 sat::StringQueue autoinstalled;
60 std::set<std::string> multiversionSpec;
61 std::vector<ForceInstall> forceInstallTasks;
63 bool set_licence = false;
64 bool show_mediaid = false;
66 bool ignorealreadyrecommended = false;
67 bool onlyRequires = false;
68 bool forceResolve = false;
69 bool cleandepsOnRemove = false;
71 bool allowDowngrade = false;
72 bool allowNameChange = false;
73 bool allowArchChange = false;
74 bool allowVendorChange = false;
76 bool dupAllowDowngrade = false;
77 bool dupAllowNameChange = false;
78 bool dupAllowArchChange = false;
79 bool dupAllowVendorChange = false;
81 TestcaseSetupImpl *clone () const { return new TestcaseSetupImpl(*this); }