File: teststatus.rb

package info (click to toggle)
ruby-debian 0.3.9
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 340 kB
  • ctags: 378
  • sloc: ruby: 2,835; fortran: 90; makefile: 42; cpp: 36
file content (38 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (6)
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
require 'runit/testcase'
require 'runit/cui/testrunner'

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

class TestDebian__Status < RUNIT::TestCase
  
   def test_s_new
     s = Debian::Status.new
     assert((s['dpkg'].data.find {|f| f == "/usr/bin/dpkg" }) != nil)
   end
#
#  def test_s_parse
#    assert_fail("untested")
#  end
#
#  def test_s_parseAptLine
#    assert_fail("untested")
#  end

#  def test_s_parseArchiveFile
#    assert_fail("untested")
#  end

end

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