21 {
return _pimpl->priority; }
48 {
return _pimpl->channel; }
51 {
return _pimpl->package; }
63 {
return _pimpl->architecture; }
66 {
return _pimpl->systemRepo; }
72 {
return _pimpl->resolverFocus; }
75 {
return _pimpl->globalPath; }
78 {
return _pimpl->hardwareInfoFile; }
81 {
return _pimpl->systemCheck; }
84 {
return _pimpl->modaliasList; }
87 {
return _pimpl->localesTracker; }
90 {
return _pimpl->vendorLists; }
93 {
return _pimpl->autoinstalled; }
96 {
return _pimpl->multiversionSpec; }
99 {
return _pimpl->forceInstallTasks; }
102 {
return _pimpl->set_licence; }
105 {
return _pimpl->show_mediaid; }
108 {
return _pimpl->ignorealreadyrecommended; }
111 {
return _pimpl->onlyRequires; }
114 {
return _pimpl->forceResolve; }
117 {
return _pimpl->cleandepsOnRemove; }
120 {
return _pimpl->allowDowngrade; }
123 {
return _pimpl->allowNameChange; }
126 {
return _pimpl->allowArchChange; }
129 {
return _pimpl->allowVendorChange; }
132 {
return _pimpl->dupAllowDowngrade; }
135 {
return _pimpl->dupAllowNameChange; }
138 {
return _pimpl->dupAllowArchChange; }
141 {
return _pimpl->dupAllowVendorChange; }
146 if ( !
setup.architecture.empty() )
148 MIL <<
"Setting architecture to '" <<
setup.architecture <<
"'" << std::endl;
150 setenv (
"ZYPP_TESTSUITE_FAKE_ARCH",
setup.architecture.c_str(), 1);
153 if (
setup.systemRepo ) {
156 ERR <<
"Can't setup 'system'" << std::endl;
161 if ( !
setup.hardwareInfoFile.empty() ) {
162 setenv(
"ZYPP_MODALIAS_SYSFS",
setup.hardwareInfoFile.asString().c_str(), 1 );
163 MIL <<
"setting HardwareInfo to: " <<
setup.hardwareInfoFile.asString() << std::endl;
166 for (
const auto &channel :
setup.repos ) {
169 ERR <<
"Can't setup 'channel'" << std::endl;
174 if ( !
setup.systemCheck.empty() ) {
175 MIL <<
"setting systemCheck to: " <<
setup.systemCheck.asString() << std::endl;
176 SystemCheck::instance().setFile(
setup.systemCheck );
186 MIL <<
"'" << pathname <<
"'" << std::endl;
192 if (
repoData.type == TrType::Url ) {
194 MIL <<
"Load from Url '" <<
repoData.path <<
"'" << std::endl;
199 nrepo.setEnabled (
true );
200 nrepo.setAutorefresh(
false );
210 ERR <<
"Couldn't load packages from Url '" <<
repoData.path <<
"'" << std::endl;
216 MIL <<
"Load from File '" << pathname <<
"'" << std::endl;
219 if (
repoData.alias ==
"@System" ) {
229 nrepo.setEnabled (
true );
230 nrepo.setAutorefresh(
false );
235 if (
repoData.type == TrType::Helix )
238 satRepo.addTesttags( pathname );
243 ERR <<
"Couldn't load packages from XML file '" <<
repoData.path <<
"'" << std::endl;
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
shared_ptr< Impl > _pimpl
Base class for Exception.
What is known about a repository.
static ZConfig & instance()
Singleton ctor.
Url asUrl(const std::string &scheme_r) const
Url representation using scheme_r schema .
const std::string & asString() const
String representation.
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
Arch architecture() const
const std::vector< RepoData > & repos() const
bool applySetup(zypp::RepoManager &manager) const
ResolverFocus resolverFocus() const
bool onlyRequires() 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
bool dupAllowVendorChange() const
RWCOW_pointer< TestcaseSetupImpl > _pimpl
bool allowNameChange() const
const sat::StringQueue & autoinstalled() const
bool allowDowngrade() const
static bool loadRepo(zypp::RepoManager &manager, const TestcaseSetup &setup, const RepoData &data)
const Pathname & systemCheck() const
TestcaseSetupImpl & data()
bool dupAllowNameChange() const
bool allowArchChange() const
bool cleandepsOnRemove() const
bool show_mediaid() const
bool forceResolve() const
const Pathname & globalPath() const
const Pathname & hardwareInfoFile() const
bool ignorealreadyrecommended() const
bool allowVendorChange() const
const base::SetTracker< LocaleSet > & localesTracker() const
bool dupAllowArchChange() const
bool dupAllowDowngrade() const
static Pool instance()
Singleton ctor.
Libsolv Id queue wrapper.
std::vector< std::string > ModaliasList
ResolverFocus
The resolver's general attitude.
creates and provides information about known sources.
Track added/removed set items based on an initial set.
#define ZYPP_CAUGHT(EXCPT)
Drops a logline telling the Exception was caught (in order to handle it).