ref: refs/heads/master
commit fee2d2170eabf99f3d9b7dcd770362db86aa9a96
Author: Klaus Kämpf
Date: Wed Feb 25 13:29:28 2009 +0100
Fix test, run it during build
---
bindings/ruby/tests/transaction.rb | 4 ++--
package/libsatsolver.spec.in | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/bindings/ruby/tests/transaction.rb b/bindings/ruby/tests/transaction.rb
index b2de649..454572f 100644
--- a/bindings/ruby/tests/transaction.rb
+++ b/bindings/ruby/tests/transaction.rb
@@ -18,10 +18,10 @@ class TransactionTest < Test::Unit::TestCase
transaction = Satsolver::Transaction.new( pool )
assert transaction
transaction.install( "foo" )
- transaction.install( repo[0] )
+ transaction.install( repo.find "ruby" )
transaction.install( Satsolver::Relation.new( pool, "foo", Satsolver::REL_EQ, "42-7" ) )
transaction.remove( "bar" )
- transaction.remove( repo[1] )
+ transaction.remove( repo.find "glibc" )
transaction.remove( Satsolver::Relation.new( pool, "bar", Satsolver::REL_EQ, "42-7" ) )
assert transaction.size == 6
transaction.each { |a|
diff --git a/package/libsatsolver.spec.in b/package/libsatsolver.spec.in
index 2fe8e4b..1cc79a3 100644
--- a/package/libsatsolver.spec.in
+++ b/package/libsatsolver.spec.in
@@ -126,6 +126,10 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
make %{?jobs:-j %jobs}
make doc_forced
+%if 0%{?run_testsuite}
+ ctest .
+%endif
+
%install
make DESTDIR=$RPM_BUILD_ROOT install
# we want to leave the .a file untouched
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org