Author: kkaempf Date: Wed May 28 17:33:00 2008 New Revision: 10267 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10267&view=rev Log: add binary .solv file in a recent format and use it Added: trunk/sat-solver/bindings/ruby/tests/os11-biarch.solv (with props) Modified: trunk/sat-solver/bindings/ruby/tests/providers.rb trunk/sat-solver/bindings/ruby/tests/repo.rb Added: trunk/sat-solver/bindings/ruby/tests/os11-biarch.solv URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/os11-biarch.solv?rev=10267&view=auto ============================================================================== Binary file - no diff available. Modified: trunk/sat-solver/bindings/ruby/tests/providers.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/providers.rb?rev=10267&r1=10266&r2=10267&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/providers.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/providers.rb Wed May 28 17:33:00 2008 @@ -13,8 +13,8 @@ pool = Satsolver::Pool.new assert pool pool.arch = "x86_64" - repo = pool.add_solv( "10.3-x86_64.solv" ) - repo.name = "10.3-x86_64" + repo = pool.add_solv( "os11-biarch.solv" ) + repo.name = "openSUSE 11.0 Beta3 BiArch" puts "Repo #{repo.name} loaded with #{repo.size} solvables" system = pool.add_rpmdb( "/" ) system.name = "@system" Modified: trunk/sat-solver/bindings/ruby/tests/repo.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/repo.rb?rev=10267&r1=10266&r2=10267&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/repo.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/repo.rb Wed May 28 17:33:00 2008 @@ -30,6 +30,7 @@ # test Repo require 'test/unit' +require 'pathname' require 'satsolver' class RepoTest < Test::Unit::TestCase @@ -47,7 +48,7 @@ pool = Satsolver::Pool.new assert pool pool.arch = "i686" - repo = pool.add_solv( "../../../testsuite/data.libzypp/basic-exercises/exercise-1-packages.solv" ) + repo = pool.add_solv( Pathname( File.dirname( __FILE__ ) ) + "os11-biarch.solv" ) repo.name = "test" assert repo.name == "test" assert repo.size > 0 @@ -56,7 +57,7 @@ pool = Satsolver::Pool.new assert pool pool.arch = "i686" - repo = pool.add_solv( "../../../testsuite/data.libzypp/basic-exercises/exercise-1-packages.solv" ) + repo = pool.add_solv( Pathname( File.dirname( __FILE__ ) ) + "os11-biarch.solv" ) repo.each { |s| puts s } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org