From 077bf3c410bf0df9a6709be6403a87b230c294f5 Mon Sep 17 00:00:00 2001 From: Pavel Zhukov Date: Fri, 19 Aug 2022 15:15:38 +0200 Subject: 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 Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/rpmtests.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta/lib/oeqa/selftest/cases/rpmtests.py (limited to 'meta/lib') 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 @@ +# +# Copyright OpenEmbedded Contributors +# +# SPDX-License-Identifier: MIT +# + +from oeqa.selftest.case import OESelftestTestCase +from oeqa.utils.commands import bitbake + +class BitbakeTests(OESelftestTestCase): + + def test_rpm_filenames(self): + test_recipe = "testrpm" + bitbake(test_recipe) -- cgit v1.2.3-54-g00ecf