diff options
| author | Pavel Zhukov <pavel@zhukoff.net> | 2022-08-19 15:15:38 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-21 22:51:42 +0100 |
| commit | 077bf3c410bf0df9a6709be6403a87b230c294f5 (patch) | |
| tree | 5b030a9123cfdd0214c0ce456d9905c7b6f5d180 /meta/lib | |
| parent | 48124db7ca06e9fd8879a2ff0d70f7ea63acfa37 (diff) | |
| download | poky-077bf3c410bf0df9a6709be6403a87b230c294f5.tar.gz | |
selftest: Add regression test for rpm filesnames
Escaping globs and quoting in rpm spec files is tricky and requires a
bit of dancing. In addition to that it changes from time to time.
Adding (simple) regression test for different types of filename
patterns. Cover brackets and parentheses in first iteration
[Yocto #13746]
(From OE-Core rev: 142432217c152970249884fad240f7441cb1a2ad)
Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/rpmtests.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/rpmtests.py b/meta/lib/oeqa/selftest/cases/rpmtests.py new file mode 100644 index 0000000000..902d7dca3d --- /dev/null +++ b/meta/lib/oeqa/selftest/cases/rpmtests.py | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | # | ||
| 2 | # Copyright OpenEmbedded Contributors | ||
| 3 | # | ||
| 4 | # SPDX-License-Identifier: MIT | ||
| 5 | # | ||
| 6 | |||
| 7 | from oeqa.selftest.case import OESelftestTestCase | ||
| 8 | from oeqa.utils.commands import bitbake | ||
| 9 | |||
| 10 | class BitbakeTests(OESelftestTestCase): | ||
| 11 | |||
| 12 | def test_rpm_filenames(self): | ||
| 13 | test_recipe = "testrpm" | ||
| 14 | bitbake(test_recipe) | ||
