Commit 64be5d4e authored by Antonio Terceiro's avatar Antonio Terceiro

t/teststatus: port to test/unit

Also, read the status for a single package to reduce the test run time
parent d18c6902
require 'runit/testcase'
require 'runit/cui/testrunner'
require 'test/unit'
require 'debian'
$:.unshift("../lib")
require '../lib/debian.rb'
class TestDebian__Status < RUNIT::TestCase
class TestDebian__Status < Test::Unit::TestCase
def test_s_new
s = Debian::Status.new
s = Debian::Status.new(['dpkg'])
assert((s['dpkg'].data.find {|f| f == "/usr/bin/dpkg" }) != nil)
end
#
......@@ -24,15 +21,3 @@ class TestDebian__Status < RUNIT::TestCase
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment