1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/solver/detail/Testcase.cc
12 #include "zypp/solver/detail/Testcase.h"
13 #include "zypp/base/Logger.h"
14 #include "zypp/base/LogControl.h"
15 #include "zypp/PathInfo.h"
17 /////////////////////////////////////////////////////////////////////////
19 { ///////////////////////////////////////////////////////////////////////
20 ///////////////////////////////////////////////////////////////////////
22 { /////////////////////////////////////////////////////////////////////
23 /////////////////////////////////////////////////////////////////////
25 { ///////////////////////////////////////////////////////////////////
29 //---------------------------------------------------------------------------
32 :dumpPath("/var/log/YaST2/solverTestcase")
36 Testcase::Testcase(const std::string & path)
46 bool Testcase::createTestcase(Resolver & resolver)
48 PathInfo path (dumpPath);
50 if ( !path.isExist() ) {
51 if (zypp::filesystem::mkdir (dumpPath)!=0) {
52 ERR << "Cannot create directory " << dumpPath << endl;
57 ERR << dumpPath << " is not a directory." << endl;
61 zypp::base::LogControl::instance().logfile( dumpPath +"/y2log" );
62 zypp::base::LogControl::TmpExcessive excessive; // ZYPP_FULLLOG=1
64 resolver.resolveDependencies();
69 ///////////////////////////////////////////////////////////////////
71 /////////////////////////////////////////////////////////////////////
72 /////////////////////////////////////////////////////////////////////
74 ///////////////////////////////////////////////////////////////////////
75 ///////////////////////////////////////////////////////////////////////
77 /////////////////////////////////////////////////////////////////////////