diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/lib/oeqa/runtime/scanelf.py | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/lib/oeqa/runtime/scanelf.py')
-rw-r--r-- | meta/lib/oeqa/runtime/scanelf.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/scanelf.py b/meta/lib/oeqa/runtime/scanelf.py new file mode 100644 index 0000000000..43a024ab9a --- /dev/null +++ b/meta/lib/oeqa/runtime/scanelf.py | |||
@@ -0,0 +1,28 @@ | |||
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 | |||
11 | def setUp(self): | ||
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])) | ||