Codebase list ruby-debian / 64be5d4
t/teststatus: port to test/unit Also, read the status for a single package to reduce the test run time Antonio Terceiro 5 years ago
1 changed file(s) with 4 addition(s) and 19 deletion(s). Raw diff Collapse all Expand all
0 require 'runit/testcase'
1 require 'runit/cui/testrunner'
0 require 'test/unit'
1 require 'debian'
22
3 $:.unshift("../lib")
4 require '../lib/debian.rb'
5
6 class TestDebian__Status < RUNIT::TestCase
3 class TestDebian__Status < Test::Unit::TestCase
74
85 def test_s_new
9 s = Debian::Status.new
6 s = Debian::Status.new(['dpkg'])
107 assert((s['dpkg'].data.find {|f| f == "/usr/bin/dpkg" }) != nil)
118 end
129 #
2320 # end
2421
2522 end
26
27 if $0 == __FILE__
28 if ARGV.size == 0
29 suite = TestDebian__Status.suite
30 else
31 suite = RUNIT::TestSuite.new
32 ARGV.each do |testmethod|
33 suite.add_test(TestDebian__Status.new(testmethod))
34 end
35 end
36 RUNIT::CUI::TestRunner.run(suite)
37 end