[DRE-commits] [SCM] bsfilter.git branch, master, updated. debian/1%1.0.17-2-15-g15ef7f6

Taku YASUI tach at debian.org
Sun Jun 17 15:49:57 UTC 2012


The following commit has been merged in the master branch:
commit 9b4b7d53f0115699c9c0445321dd50594e94f33d
Author: Taku YASUI <tach at debian.org>
Date:   Sun Jun 17 22:33:32 2012 +0900

    Remove bdb1 test suite

diff --git a/debian/patches/020_disable_bdb1 b/debian/patches/020_disable_bdb1
index 55033aa..96f1573 100644
--- a/debian/patches/020_disable_bdb1
+++ b/debian/patches/020_disable_bdb1
@@ -67,3 +67,67 @@
      when "bdb"
        require 'bdb'
      when "qdbm"
+--- a/test/test.rb
++++ b/test/test.rb
+@@ -63,9 +63,6 @@
+   unlink_prob_gdbm({:force => true})
+   unlink_token_gdbm({:force => true})
+ 
+-  unlink_prob_bdb1({:force => true})
+-  unlink_token_bdb1({:force => true})
+-
+   unlink_prob_bdb({:force => true})
+   unlink_token_bdb({:force => true})
+ 
+@@ -114,25 +111,6 @@
+                   "ja.spam.gdbm.lock"], options)
+ end
+ 
+-def unlink_prob_bdb1(options = {})
+-    FileUtils.rm(["C.prob.bdb1",
+-                  "C.prob.bdb1.lock",
+-                  "ja.prob.bdb1",
+-                  "ja.prob.bdb1.lock"], options)
+-end
+-
+-
+-def unlink_token_bdb1(options = {})
+-    FileUtils.rm(["C.clean.bdb1",
+-                  "C.clean.bdb1.lock",
+-                  "ja.clean.bdb1",
+-                  "ja.clean.bdb1.lock",
+-                  "C.spam.bdb1",
+-                  "C.spam.bdb1.lock",
+-                  "ja.spam.bdb1",
+-                  "ja.spam.bdb1.lock"], options)
+-end
+-
+ def unlink_prob_bdb(options = {})
+     FileUtils.rm(["C.prob.bdb",
+                   "C.prob.bdb.lock",
+@@ -433,25 +411,6 @@
+     unlink_prob_gdbm
+   end
+ 
+-  def test_bdb1
+-    assert_nothing_raised('Warning: ignore this test if BDB1 is NOT installed') do
+-      @bsfilter.setup($default_options + ["--db", "bdb1", "-c"])
+-    end
+-    @bsfilter.use_dummyfh
+-    @bsfilter.run(@files)
+-    assert(File::readable?("ja.clean.bdb1"), "ja.clean.bdb1")
+-    assert(File::readable?("C.clean.bdb1"), "C.clean.bdb1")
+-
+-    @bsfilter.setup($default_options + ["--db", "bdb1", "-u"])
+-    @bsfilter.use_dummyfh
+-    @bsfilter.run([])
+-    assert(File::readable?("ja.prob.bdb1"), "ja.prob.bdb1")
+-    assert(File::readable?("C.prob.bdb1"), "C.prob.bdb1")
+-
+-    unlink_token_bdb1
+-    unlink_prob_bdb1
+-  end
+-
+   def test_bdb
+     assert_nothing_raised('Warning: ignore this test if BDB is NOT installed') do
+       @bsfilter.setup($default_options + ["--db", "bdb", "-c"])

-- 
bsfilter.git



More information about the Pkg-ruby-extras-commits mailing list