diff options
| author | Paulo Neves <ptsneves@gmail.com> | 2022-06-14 17:11:02 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-01 12:37:52 +0100 |
| commit | 53f0ee8d420008efa7408b1a83c42f7d5438f06a (patch) | |
| tree | a43ee843978a20bf5de843302ea32f20ce5545a8 /meta | |
| parent | 82589b5936df1b0ad55ebd5961f3943d33f8bacc (diff) | |
| download | poky-53f0ee8d420008efa7408b1a83c42f7d5438f06a.tar.gz | |
oeqa/selftest: Add test for shebang overflow
Make sure we do not stage any executable with a bigger shebang
than 128. Fixes [1]
[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=11053
(From OE-Core rev: 280f68528c93b5ffab888c99190accf59e807a3f)
Signed-off-by: Paulo Neves <ptsneves@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/sysroot.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/sysroot.py b/meta/lib/oeqa/selftest/cases/sysroot.py index 315d1a61c2..9457f1e3ac 100644 --- a/meta/lib/oeqa/selftest/cases/sysroot.py +++ b/meta/lib/oeqa/selftest/cases/sysroot.py | |||
| @@ -35,3 +35,13 @@ TESTSTRING:pn-sysroot-test-arch1 = "%s" | |||
| 35 | TESTSTRING:pn-sysroot-test-arch2 = "%s" | 35 | TESTSTRING:pn-sysroot-test-arch2 = "%s" |
| 36 | """ % (uuid1, uuid2)) | 36 | """ % (uuid1, uuid2)) |
| 37 | bitbake("sysroot-test") | 37 | bitbake("sysroot-test") |
| 38 | |||
| 39 | def test_sysroot_max_shebang(self): | ||
| 40 | """ | ||
| 41 | Summary: Check max shebang triggers. To confirm [YOCTO #11053] is closed. | ||
| 42 | Expected: Fail when a shebang bigger than the max shebang-size is reached. | ||
| 43 | Author: Paulo Neves <ptsneves@gmail.com> | ||
| 44 | """ | ||
| 45 | expected = "maximum shebang size exceeded, the maximum size is 128. [shebang-size]" | ||
| 46 | res = bitbake("sysroot-shebang-test-native -c populate_sysroot", ignore_status=True) | ||
| 47 | self.assertTrue(expected in res.output, msg=res.output) | ||
