aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/scanelf.py
blob: 3ba1f78af9b52cc9023c329e66dcdb724e1e3e4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from oeqa.runtime.case import OERuntimeTestCase
from oeqa.core.decorator.depends import OETestDepends
from oeqa.core.decorator.oeid import OETestID
from oeqa.runtime.decorator.package import OEHasPackage

class ScanelfTest(OERuntimeTestCase):
    scancmd = 'scanelf --quiet --recursive --mount --ldpath --path'

    @OETestID(966)
    @OETestDepends(['ssh.SSHTest.test_ssh'])
    @OEHasPackage(['pax-utils'])
    def test_scanelf_textrel(self):
        # print TEXTREL information
        cmd = '%s --textrel' % self.scancmd
        status, output = self.target.run(cmd)
        msg = '\n'.join([cmd, output])
        self.assertEqual(output.strip(), '', msg=msg)

    @OETestID(967)
    @OETestDepends(['scanelf.ScanelfTest.test_scanelf_textrel'])
    def test_scanelf_rpath(self):
        # print RPATH information
        cmd = '%s --textrel --rpath' % self.scancmd
        status, output = self.target.run(cmd)
        msg = '\n'.join([cmd, output])
        self.assertEqual(output.strip(), '', msg=msg)