[Apt-listbugs-commits] [SCM] apt-listbugs development tree branch, master, updated. apt-listbugs/0.1.5-4-g7b220a8
Francesco Poli (wintermute)
invernomuto at paranoici.org
Sun Oct 16 22:06:18 UTC 2011
The following commit has been merged in the master branch:
commit 7b220a839fef5e2cd4ba896d99f5fc2b7b3bedd8
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date: Sat Oct 15 19:17:52 2011 +0200
fix test_logic.rb
The test_logic.rb test suite had to be adjusted, in order to cope with
recent code changes (see commit 4c98389b20f5710dd85b631d54930686a09ed622).
An appropriate copyright and permission notice has been reconstructed
and added in the meanwhile.
diff --git a/debian/changelog b/debian/changelog
index 14e9c91..37703a3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,8 +6,9 @@ apt-listbugs (0.1.6) UNRELEASED; urgency=low
backport-friendly as possible (Closes: #639972)
* moved the first test suite to Make check target, disabled the second
test suite (which is outdated), changed build-dependencies accordingly
+ * fixed the first test suite so that it actually works
- -- Francesco Poli (wintermute) <invernomuto at paranoici.org> Sat, 15 Oct 2011 00:34:21 +0200
+ -- Francesco Poli (wintermute) <invernomuto at paranoici.org> Sat, 15 Oct 2011 18:32:12 +0200
apt-listbugs (0.1.5) unstable; urgency=low
diff --git a/test_logic.rb b/test_logic.rb
index bc3b14d..23009e6 100755
--- a/test_logic.rb
+++ b/test_logic.rb
@@ -1,4 +1,26 @@
#!/usr/bin/ruby1.8 -Ilib/
+#
+# test_logic: perform unit tests on apt-listbugs/logic
+#
+# Copyright (C) 2008 Junichi Uekawa <dancer at debian.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License with
+# the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
+# if not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+#
+#
+
require 'test/unit'
require 'apt-listbugs/logic'
@@ -359,7 +381,7 @@ class TC_BugsFactory_List < Test::Unit::TestCase
def test_bug_is_irrelevant_list
assert_equal(false,
Factory::BugsFactory.bug_is_irrelevant("apt-test",
- "3.0", nil,
+ nil, "3.1",
123456,
["apt-test/2.0", "apt-test/3.5"].join(" "), # fixed
["apt-test/1.5", "apt-test/3.0"].join(" ") # found
@@ -368,7 +390,7 @@ class TC_BugsFactory_List < Test::Unit::TestCase
assert_equal(true,
Factory::BugsFactory.bug_is_irrelevant("apt-test",
- "3.5", nil,
+ nil, "3.6",
123456,
["apt-test/2.0", "apt-test/3.5"].join(" "), # fixed
["apt-test/1.5", "apt-test/3.0"].join(" ") # found
@@ -377,7 +399,7 @@ class TC_BugsFactory_List < Test::Unit::TestCase
assert_equal(true,
Factory::BugsFactory.bug_is_irrelevant("apt-test",
- "0.7.14+b1", nil,
+ nil, "0.7.14+b1",
482476,
["0.7.14"].join(" "), # fixed
["apt/0.7.11", "apt/0.6.46.4-0.1"].join(" ") # found
@@ -386,7 +408,7 @@ class TC_BugsFactory_List < Test::Unit::TestCase
assert_equal(true,
Factory::BugsFactory.bug_is_irrelevant("apt-test",
- "3.0", nil,
+ nil, "3.0",
123456,
["apt-test/3.5"].join(" "), # fixed
["apt-test/3.2"].join(" ") # found
--
apt-listbugs development tree
More information about the Apt-listbugs-commits
mailing list