File: testsources.rb

package info (click to toggle)
ruby-debian 0.3.12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 488 kB
  • sloc: ruby: 2,704; fortran: 90; makefile: 44; cpp: 36
file content (44 lines) | stat: -rw-r--r-- 809 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require 'runit/testcase'
require 'runit/cui/testrunner'

$:.unshift("../lib")
require '../lib/debian.rb'

class TestDebian__Sources < RUNIT::TestCase
  

  def setup
    @ss = [Debian::Sources.new("d/sid_Sources"),
           Debian::Sources.new("d/non-US_sid_Sources")]
  end

  def test_s_new
    @ss[0].each {|p,s|  assert_equals(Debian::Dsc, s.class) }
    @ss[1].each {|p,s|  assert_equals(Debian::Dsc, s.class) }
  end

#  def test_s_parse
#    
#  end

#  def test_s_parseAptLine
#    
#  end

#  def test_s_parseArchiveFile
#    
#  end

end

if $0 == __FILE__
  if ARGV.size == 0
    suite = TestDebian__Sources.suite
  else
    suite = RUNIT::TestSuite.new
    ARGV.each do |testmethod|
      suite.add_test(TestDebian__Sources.new(testmethod))
    end
  end
  RUNIT::CUI::TestRunner.run(suite)
end