poky/meta/lib/oeqa/runtime/cases/scanelf.py
Mariano Lopez b569aa0e00 oeqa/runtime/cases: Migrate runtime tests.
This migrates current runtime test suite to be used with the new framework.

[YOCTO #10234]

(From OE-Core rev: b39c61f2d442c79d03b73e8ffd104996fcb2177e)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-23 12:05:20 +00:00

27 lines
1008 B
Python

from oeqa.runtime.case import OERuntimeTestCase
from oeqa.core.decorator.depends import OETestDepends
from oeqa.core.decorator.oeid import OETestID
from oeqa.runtime.decorator.package import OEHasPackage
class ScanelfTest(OERuntimeTestCase):
scancmd = 'scanelf --quiet --recursive --mount --ldpath --path'
@OETestID(966)
@OETestDepends(['ssh.SSHTest.test_ssh'])
@OEHasPackage(['pax-utils'])
def test_scanelf_textrel(self):
# print TEXTREL information
cmd = '%s --textrel' % self.scancmd
status, output = self.target.run(cmd)
msg = '\n'.join([cmd, output])
self.assertEqual(output.strip(), '', msg=msg)
@OETestID(967)
@OETestDepends(['scanelf.ScanelfTest.test_scanelf_textrel'])
def test_scanelf_rpath(self):
# print RPATH information
cmd = '%s --textrel --rpath' % self.scancmd
status, output = self.target.run(cmd)
msg = '\n'.join([cmd, output])
self.assertEqual(output.strip(), '', msg=msg)