Author: kkaempf Date: Wed May 28 17:01:41 2008 New Revision: 10264 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10264&view=rev Log: adapt load path to match just build binary when in ctest Modified: trunk/sat-solver/bindings/ruby/tests/covenants.rb trunk/sat-solver/bindings/ruby/tests/decisions.rb trunk/sat-solver/bindings/ruby/tests/dumpsolv.rb trunk/sat-solver/bindings/ruby/tests/gen_patches.rb trunk/sat-solver/bindings/ruby/tests/loading.rb trunk/sat-solver/bindings/ruby/tests/patch_updates.rb trunk/sat-solver/bindings/ruby/tests/patchsolv2updateinfo.rb trunk/sat-solver/bindings/ruby/tests/pool.rb trunk/sat-solver/bindings/ruby/tests/problems.rb trunk/sat-solver/bindings/ruby/tests/providers.rb trunk/sat-solver/bindings/ruby/tests/relation.rb trunk/sat-solver/bindings/ruby/tests/repo.rb trunk/sat-solver/bindings/ruby/tests/repodata.rb trunk/sat-solver/bindings/ruby/tests/rpmdb.rb trunk/sat-solver/bindings/ruby/tests/solutions.rb trunk/sat-solver/bindings/ruby/tests/solvable.rb trunk/sat-solver/bindings/ruby/tests/solver.rb trunk/sat-solver/bindings/ruby/tests/transaction.rb trunk/sat-solver/bindings/ruby/tests/updates.rb Modified: trunk/sat-solver/bindings/ruby/tests/covenants.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/covenants.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/covenants.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/covenants.rb Wed May 28 17:01:41 2008 @@ -1,4 +1,4 @@ -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Covenants Modified: trunk/sat-solver/bindings/ruby/tests/decisions.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/decisions.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/decisions.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/decisions.rb Wed May 28 17:01:41 2008 @@ -19,7 +19,7 @@ # The number of decision steps is available through Solver.decision_count # -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Decisions require 'test/unit' Modified: trunk/sat-solver/bindings/ruby/tests/dumpsolv.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/dumpsolv.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/dumpsolv.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/dumpsolv.rb Wed May 28 17:01:41 2008 @@ -4,7 +4,7 @@ # Example code how to use Ruby bindings to implement tools/dumpsolv # -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." require 'satsolver' require 'pp' Modified: trunk/sat-solver/bindings/ruby/tests/gen_patches.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/gen_patches.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/gen_patches.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/gen_patches.rb Wed May 28 17:01:41 2008 @@ -1,4 +1,4 @@ -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # # Generate 'code11 patches' from code10 patch repo Modified: trunk/sat-solver/bindings/ruby/tests/loading.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/loading.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/loading.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/loading.rb Wed May 28 17:01:41 2008 @@ -2,7 +2,11 @@ # Test loading of the bindings # -$:.unshift "../../../build/bindings/ruby" +File.open("/tmp/output", "w") { |f| + f.puts "PWD: #{Dir.pwd}" +} + +$:.unshift ".." # test loading of extension require 'test/unit' Modified: trunk/sat-solver/bindings/ruby/tests/patch_updates.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/patch_updates.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/patch_updates.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/patch_updates.rb Wed May 28 17:01:41 2008 @@ -1,4 +1,4 @@ -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Patch and Update Modified: trunk/sat-solver/bindings/ruby/tests/patchsolv2updateinfo.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/patchsolv2updateinfo.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/patchsolv2updateinfo.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/patchsolv2updateinfo.rb Wed May 28 17:01:41 2008 @@ -1,4 +1,4 @@ -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # # Generate 'code11 updateinfo' from (code10) patch solv Modified: trunk/sat-solver/bindings/ruby/tests/pool.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/pool.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/pool.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/pool.rb Wed May 28 17:01:41 2008 @@ -15,7 +15,7 @@ # For Repos there is each_repo, count_repos, get_repo and find_repo. # -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Pool require 'test/unit' Modified: trunk/sat-solver/bindings/ruby/tests/problems.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/problems.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/problems.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/problems.rb Wed May 28 17:01:41 2008 @@ -40,7 +40,7 @@ # source requires relation but no providers are installable # -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Problems require 'test/unit' 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=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/providers.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/providers.rb Wed May 28 17:01:41 2008 @@ -2,7 +2,7 @@ # Check each_provider callback # -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test EachProvider require 'test/unit' Modified: trunk/sat-solver/bindings/ruby/tests/relation.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/relation.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/relation.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/relation.rb Wed May 28 17:01:41 2008 @@ -18,7 +18,7 @@ # # -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Relation require 'test/unit' 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=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/repo.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/repo.rb Wed May 28 17:01:41 2008 @@ -26,7 +26,7 @@ # this will return the 'best' solvable named 'A' or nil if no such solvable exists. # -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Repo require 'test/unit' Modified: trunk/sat-solver/bindings/ruby/tests/repodata.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/repodata.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/repodata.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/repodata.rb Wed May 28 17:01:41 2008 @@ -2,7 +2,7 @@ # Check Repodata of Repo # -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Repodata require 'test/unit' Modified: trunk/sat-solver/bindings/ruby/tests/rpmdb.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/rpmdb.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/rpmdb.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/rpmdb.rb Wed May 28 17:01:41 2008 @@ -10,7 +10,7 @@ # # -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test adding rpmdb require 'test/unit' Modified: trunk/sat-solver/bindings/ruby/tests/solutions.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/solutions.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/solutions.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/solutions.rb Wed May 28 17:01:41 2008 @@ -5,7 +5,7 @@ # # -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Solutions require 'test/unit' Modified: trunk/sat-solver/bindings/ruby/tests/solvable.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/solvable.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/solvable.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/solvable.rb Wed May 28 17:01:41 2008 @@ -1,4 +1,4 @@ -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Solvable Modified: trunk/sat-solver/bindings/ruby/tests/solver.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/solver.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/solver.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/solver.rb Wed May 28 17:01:41 2008 @@ -1,4 +1,4 @@ -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Solver Modified: trunk/sat-solver/bindings/ruby/tests/transaction.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/transaction.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/transaction.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/transaction.rb Wed May 28 17:01:41 2008 @@ -1,4 +1,4 @@ -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Transction Modified: trunk/sat-solver/bindings/ruby/tests/updates.rb URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/ruby/tests/updates.rb?rev=10264&r1=10263&r2=10264&view=diff ============================================================================== --- trunk/sat-solver/bindings/ruby/tests/updates.rb (original) +++ trunk/sat-solver/bindings/ruby/tests/updates.rb Wed May 28 17:01:41 2008 @@ -1,4 +1,4 @@ -$:.unshift "../../../build/bindings/ruby" +$:.unshift ".." # test Updates -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org