Author: schubi2 Date: Mon Jan 21 17:52:35 2008 New Revision: 8336 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8336&view=rev Log: generating testcase while every run (only the task) Modified: trunk/libzypp/zypp/sat/SATResolver.cc trunk/libzypp/zypp/solver/detail/Resolver.cc Modified: trunk/libzypp/zypp/sat/SATResolver.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/sat/SATResolver.cc?rev=8336&r1=8335&r2=8336&view=diff ============================================================================== --- trunk/libzypp/zypp/sat/SATResolver.cc (original) +++ trunk/libzypp/zypp/sat/SATResolver.cc Mon Jan 21 17:52:35 2008 @@ -33,6 +33,7 @@ #include "zypp/sat/SATResolver.h" #include "zypp/sat/Pool.h" #include "zypp/solver/detail/ProblemSolutionCombi.h" +#include "zypp/solver/detail/Testcase.h" extern "C" { #include "satsolver/repo_solv.h" @@ -94,6 +95,8 @@ , _architecture( zypp_detail::defaultArchitecture() ) { + Testcase testcase("/var/log/YaST2/autotestcase"); + testcase.createTestcasePool (pool); // dump pool to testcase } Modified: trunk/libzypp/zypp/solver/detail/Resolver.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/solver/detail/Resolver.cc?rev=8336&r1=8335&r2=8336&view=diff ============================================================================== --- trunk/libzypp/zypp/solver/detail/Resolver.cc (original) +++ trunk/libzypp/zypp/solver/detail/Resolver.cc Mon Jan 21 17:52:35 2008 @@ -34,6 +34,7 @@ #include "zypp/ZYppFactory.h" #include "zypp/SystemResObject.h" #include "zypp/solver/detail/ResolverInfoNeededBy.h" +#include "zypp/solver/detail/Testcase.h" #include "zypp/capability/FilesystemCap.h" #include "zypp/sat/Pool.h" #include "zypp/sat/Solvable.h" @@ -1312,6 +1313,13 @@ // Solving with the satsolver if ( !getenv("ZYPP_RC_SOLVER")) { MIL << "-------------- Calling SAT Solver -------------------" << endl; + + // create testcase (only tasks will be written) + Testcase testcase("/var/log/YaST2/autotestcase"); + testcase.createTestcase (*this, + false, // do not dump pool + false); // do not run solver while generating testcase + if ( !_satResolver ) { // syncing with sat pool sat::Pool satPool( sat::Pool::instance() ); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org