mirror of
https://git.yoctoproject.org/poky
synced 2026-03-12 10:19:44 +01:00
The new oeqa core framework will modify the structure of the runtime folder the new runtime folder will have python code inside to support runtime test cases. (From OE-Core rev: 637b712096e9d230e15b1a432a561e4118db34c8) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
29 lines
959 B
Python
29 lines
959 B
Python
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 setUpLocal(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]))
|