diff options
| -rw-r--r-- | meta-selftest/recipes-test/testrpm/files/testfile.txt | 1 | ||||
| -rw-r--r-- | meta-selftest/recipes-test/testrpm/testrpm_0.0.1.bb | 18 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/rpmtests.py | 14 |
3 files changed, 33 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/testrpm/files/testfile.txt b/meta-selftest/recipes-test/testrpm/files/testfile.txt new file mode 100644 index 0000000000..c4d7630c1e --- /dev/null +++ b/meta-selftest/recipes-test/testrpm/files/testfile.txt | |||
| @@ -0,0 +1 @@ | |||
| == This file serves the purposes of SRC_URI only | |||
diff --git a/meta-selftest/recipes-test/testrpm/testrpm_0.0.1.bb b/meta-selftest/recipes-test/testrpm/testrpm_0.0.1.bb new file mode 100644 index 0000000000..5e8761ab55 --- /dev/null +++ b/meta-selftest/recipes-test/testrpm/testrpm_0.0.1.bb | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | SUMMARY = "Test recipe for testing rpm generated by oe-core" | ||
| 2 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
| 3 | |||
| 4 | LICENSE = "MIT" | ||
| 5 | |||
| 6 | SRC_URI = "file://testfile.txt" | ||
| 7 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 8 | |||
| 9 | do_compile(){ | ||
| 10 | echo "testdata" > ${B}/"file with [brackets].txt" | ||
| 11 | echo "testdata" > ${B}/"file with (parentheses).txt" | ||
| 12 | } | ||
| 13 | |||
| 14 | do_install(){ | ||
| 15 | install ${B}/* ${D}/ | ||
| 16 | } | ||
| 17 | |||
| 18 | FILES:${PN} = "*" | ||
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) | ||
