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
|