blob: 3ba1f78af9b52cc9023c329e66dcdb724e1e3e4e [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001from oeqa.runtime.case import OERuntimeTestCase
2from oeqa.core.decorator.depends import OETestDepends
3from oeqa.core.decorator.oeid import OETestID
4from oeqa.runtime.decorator.package import OEHasPackage
5
6class ScanelfTest(OERuntimeTestCase):
7 scancmd = 'scanelf --quiet --recursive --mount --ldpath --path'
8
9 @OETestID(966)
10 @OETestDepends(['ssh.SSHTest.test_ssh'])
11 @OEHasPackage(['pax-utils'])
12 def test_scanelf_textrel(self):
13 # print TEXTREL information
14 cmd = '%s --textrel' % self.scancmd
15 status, output = self.target.run(cmd)
16 msg = '\n'.join([cmd, output])
17 self.assertEqual(output.strip(), '', msg=msg)
18
19 @OETestID(967)
20 @OETestDepends(['scanelf.ScanelfTest.test_scanelf_textrel'])
21 def test_scanelf_rpath(self):
22 # print RPATH information
23 cmd = '%s --textrel --rpath' % self.scancmd
24 status, output = self.target.run(cmd)
25 msg = '\n'.join([cmd, output])
26 self.assertEqual(output.strip(), '', msg=msg)