diff options
Diffstat (limited to 'yocto-poky/meta/lib/oeqa/runtime/scanelf.py')
-rw-r--r-- | yocto-poky/meta/lib/oeqa/runtime/scanelf.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/yocto-poky/meta/lib/oeqa/runtime/scanelf.py b/yocto-poky/meta/lib/oeqa/runtime/scanelf.py new file mode 100644 index 0000000000..43a024ab9a --- /dev/null +++ b/yocto-poky/meta/lib/oeqa/runtime/scanelf.py @@ -0,0 +1,28 @@ +import unittest +from oeqa.oetest import oeRuntimeTest, skipModule +from oeqa.utils.decorators import * + +def setUpModule(): + if not oeRuntimeTest.hasPackage("pax-utils"): + skipModule("pax-utils package not installed") + +class ScanelfTest(oeRuntimeTest): + + def setUp(self): + self.scancmd = 'scanelf --quiet --recursive --mount --ldpath --path' + + @testcase(966) + @skipUnlessPassed('test_ssh') + def test_scanelf_textrel(self): + # print TEXTREL information + self.scancmd += " --textrel" + (status, output) = self.target.run(self.scancmd) + self.assertEqual(output.strip(), "", "\n".join([self.scancmd, output])) + + @testcase(967) + @skipUnlessPassed('test_ssh') + def test_scanelf_rpath(self): + # print RPATH information + self.scancmd += " --rpath" + (status, output) = self.target.run(self.scancmd) + self.assertEqual(output.strip(), "", "\n".join([self.scancmd, output])) |