Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | import unittest |
| 2 | from oeqa.oetest import oeRuntimeTest, skipModule |
| 3 | from oeqa.utils.decorators import * |
| 4 | |
| 5 | def setUpModule(): |
| 6 | if not oeRuntimeTest.hasPackage("pax-utils"): |
| 7 | skipModule("pax-utils package not installed") |
| 8 | |
| 9 | class ScanelfTest(oeRuntimeTest): |
| 10 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 11 | def setUpLocal(self): |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | self.scancmd = 'scanelf --quiet --recursive --mount --ldpath --path' |
| 13 | |
| 14 | @testcase(966) |
| 15 | @skipUnlessPassed('test_ssh') |
| 16 | def test_scanelf_textrel(self): |
| 17 | # print TEXTREL information |
| 18 | self.scancmd += " --textrel" |
| 19 | (status, output) = self.target.run(self.scancmd) |
| 20 | self.assertEqual(output.strip(), "", "\n".join([self.scancmd, output])) |
| 21 | |
| 22 | @testcase(967) |
| 23 | @skipUnlessPassed('test_ssh') |
| 24 | def test_scanelf_rpath(self): |
| 25 | # print RPATH information |
| 26 | self.scancmd += " --rpath" |
| 27 | (status, output) = self.target.run(self.scancmd) |
| 28 | self.assertEqual(output.strip(), "", "\n".join([self.scancmd, output])) |