~noskcaj/ubuntu/saucy/dhelp/apache2.4

« back to all changes in this revision

Viewing changes to tmp/dhelp-ruby/test/ts_dhelp.rb

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-06-19 01:25:07 UTC
  • Revision ID: james.westby@ubuntu.com-20080619012507-adt75omul1shucde
Tags: 0.6.9ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Recommends: firefox-3.0.
  - Exit zero if the bdb module is not available; this usually indicates
    that dhelp is not configured yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
=begin
2
 
Testsuite for the Ruby parts of dhelp
3
 
 
4
 
    Copyright (C) 2005  Esteban Manchado Vel�zquez
5
 
 
6
 
    This program is free software; you can redistribute it and/or modify
7
 
    it under the terms of the GNU General Public License as published by
8
 
    the Free Software Foundation; either version 2 of the License, or
9
 
    (at your option) any later version.
10
 
 
11
 
    This program is distributed in the hope that it will be useful,
12
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
    GNU General Public License for more details.
15
 
 
16
 
    You should have received a copy of the GNU General Public License
17
 
    along with this program; if not, write to the Free Software
18
 
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19
 
=end
20
 
 
21
 
Dir.entries('test').find_all {|e| e =~ /^tc_.*\.rb/}.each do |e|
22
 
   require "test/#{e}"
23
 
end
24
 
 
25
 
class TS_Dhelp
26
 
   def self.suite
27
 
      suite = Test::Unit::TestSuite.new
28
 
      ObjectSpace.each_object(Class) do |o|
29
 
         next unless o.name =~ /^TC_/
30
 
         suite << o.suite
31
 
      end
32
 
      return suite
33
 
   end
34
 
end