Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | from oeqa.runtime.case import OERuntimeTestCase |
| 2 | from oeqa.core.decorator.depends import OETestDepends |
| 3 | from oeqa.core.decorator.oeid import OETestID |
| 4 | from oeqa.runtime.decorator.package import OEHasPackage |
| 5 | |
| 6 | class 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) |