diff options
Diffstat (limited to 'meta-selftest')
81 files changed, 570 insertions, 145 deletions
diff --git a/meta-selftest/classes/localpkgfeed.bbclass b/meta-selftest/classes/localpkgfeed.bbclass new file mode 100644 index 0000000000..b796375e55 --- /dev/null +++ b/meta-selftest/classes/localpkgfeed.bbclass | |||
@@ -0,0 +1,27 @@ | |||
1 | # Create a subset of the package feed that just contain the | ||
2 | # packages depended on by this recipe. | ||
3 | |||
4 | LOCALPKGFEED_DIR = "${WORKDIR}/localpkgfeed" | ||
5 | |||
6 | addtask localpkgfeed after do_build | ||
7 | do_localpkgfeed[cleandirs] = "${LOCALPKGFEED_DIR}" | ||
8 | do_localpkgfeed[nostamp] = "1" | ||
9 | |||
10 | def get_packaging_class(d): | ||
11 | package_class = d.getVar("PACKAGE_CLASSES").split()[0] | ||
12 | return package_class.replace("package_", "") | ||
13 | |||
14 | python () { | ||
15 | packaging = get_packaging_class(d) | ||
16 | d.setVarFlag("do_localpkgfeed", "rdeptask", "do_package_write_" + packaging) | ||
17 | } | ||
18 | |||
19 | python do_localpkgfeed() { | ||
20 | import oe.package_manager | ||
21 | |||
22 | packaging = get_packaging_class(d) | ||
23 | deploydir = d.getVar("DEPLOY_DIR_" + packaging.upper()) | ||
24 | task = "package_write_" + packaging | ||
25 | |||
26 | oe.package_manager.create_packages_dir(d, d.getVar("LOCALPKGFEED_DIR"), deploydir, task, True, True) | ||
27 | } | ||
diff --git a/meta-selftest/classes/test-mkimage-wrapper.bbclass b/meta-selftest/classes/test-mkimage-wrapper.bbclass deleted file mode 100644 index 7c98d7b71e..0000000000 --- a/meta-selftest/classes/test-mkimage-wrapper.bbclass +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | # Class to test UBOOT_MKIMAGE and UBOOT_MKIMAGE_SIGN | ||
2 | # (in conjunction with kernel-fitimage.bbclass) | ||
3 | # | ||
4 | # SPDX-License-Identifier: MIT | ||
5 | # | ||
6 | |||
7 | UBOOT_MKIMAGE = "test_mkimage_wrapper" | ||
8 | UBOOT_MKIMAGE_SIGN = "test_mkimage_signing_wrapper" | ||
9 | |||
10 | test_mkimage_wrapper() { | ||
11 | echo "### uboot-mkimage wrapper message" | ||
12 | uboot-mkimage "$@" | ||
13 | } | ||
14 | |||
15 | test_mkimage_signing_wrapper() { | ||
16 | echo "### uboot-mkimage signing wrapper message" | ||
17 | uboot-mkimage "$@" | ||
18 | } | ||
19 | |||
diff --git a/meta-selftest/classes/test_anon_func.bbclass b/meta-selftest/classes/test_anon_func.bbclass new file mode 100644 index 0000000000..b1197dc7a4 --- /dev/null +++ b/meta-selftest/classes/test_anon_func.bbclass | |||
@@ -0,0 +1,3 @@ | |||
1 | python () { | ||
2 | d.setVar("TEST_SET_FROM_ANON_FUNC", "expected value") | ||
3 | } | ||
diff --git a/meta-selftest/conf/fragments/more-fragments-here/test-another-fragment.conf b/meta-selftest/conf/fragments/more-fragments-here/test-another-fragment.conf new file mode 100644 index 0000000000..3bf0459047 --- /dev/null +++ b/meta-selftest/conf/fragments/more-fragments-here/test-another-fragment.conf | |||
@@ -0,0 +1,3 @@ | |||
1 | BB_CONF_FRAGMENT_SUMMARY = "This is a second configuration fragment intended for testing in oe-selftest context" | ||
2 | BB_CONF_FRAGMENT_DESCRIPTION = "It defines another variable that can be checked inside the test." | ||
3 | SELFTEST_FRAGMENT_ANOTHER_VARIABLE = "someothervalue" | ||
diff --git a/meta-selftest/conf/fragments/test-fragment.conf b/meta-selftest/conf/fragments/test-fragment.conf new file mode 100644 index 0000000000..82dd353767 --- /dev/null +++ b/meta-selftest/conf/fragments/test-fragment.conf | |||
@@ -0,0 +1,5 @@ | |||
1 | BB_CONF_FRAGMENT_SUMMARY = "This is a configuration fragment intended for testing in oe-selftest context" | ||
2 | BB_CONF_FRAGMENT_DESCRIPTION = "It defines a variable that can be checked inside the test." | ||
3 | |||
4 | SELFTEST_FRAGMENT_VARIABLE = "somevalue" | ||
5 | require conf/multilib.conf | ||
diff --git a/meta-selftest/conf/layer.conf b/meta-selftest/conf/layer.conf index 763ea011d4..ecc45ded8c 100644 --- a/meta-selftest/conf/layer.conf +++ b/meta-selftest/conf/layer.conf | |||
@@ -11,4 +11,4 @@ BBFILE_PRIORITY_selftest = "5" | |||
11 | 11 | ||
12 | addpylib ${LAYERDIR}/lib oeqa | 12 | addpylib ${LAYERDIR}/lib oeqa |
13 | 13 | ||
14 | LAYERSERIES_COMPAT_selftest = "styhead" | 14 | LAYERSERIES_COMPAT_selftest = "whinlatter" |
diff --git a/meta-selftest/files/static-group b/meta-selftest/files/static-group index f7a66de24d..441123e2c5 100644 --- a/meta-selftest/files/static-group +++ b/meta-selftest/files/static-group | |||
@@ -27,3 +27,4 @@ render:x:527: | |||
27 | sgx:x:528: | 27 | sgx:x:528: |
28 | ptest:x:529: | 28 | ptest:x:529: |
29 | xuser:x:530: | 29 | xuser:x:530: |
30 | seat:x:531: | ||
diff --git a/meta-selftest/recipes-devtools/mtd/mtd-utils-selftest_git.bb b/meta-selftest/recipes-devtools/mtd/mtd-utils-selftest_git.bb index ca2141c972..82019e2224 100644 --- a/meta-selftest/recipes-devtools/mtd/mtd-utils-selftest_git.bb +++ b/meta-selftest/recipes-devtools/mtd/mtd-utils-selftest_git.bb | |||
@@ -18,8 +18,6 @@ SRC_URI = "git://git.infradead.org/mtd-utils.git;branch=master \ | |||
18 | file://0001-tests-Remove-unused-linux-fs.h-header-from-includes.patch \ | 18 | file://0001-tests-Remove-unused-linux-fs.h-header-from-includes.patch \ |
19 | " | 19 | " |
20 | 20 | ||
21 | S = "${WORKDIR}/git" | ||
22 | |||
23 | # xattr support creates an additional compile-time dependency on acl because | 21 | # xattr support creates an additional compile-time dependency on acl because |
24 | # the sys/acl.h header is needed. libacl is not needed and thus enabling xattr | 22 | # the sys/acl.h header is needed. libacl is not needed and thus enabling xattr |
25 | # regardless whether acl is enabled or disabled in the distro should be okay. | 23 | # regardless whether acl is enabled or disabled in the distro should be okay. |
diff --git a/meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc b/meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc new file mode 100644 index 0000000000..7a1bfe101f --- /dev/null +++ b/meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc | |||
@@ -0,0 +1,82 @@ | |||
1 | # Autogenerated with 'bitbake -c update_crates python3-guessing-game' | ||
2 | |||
3 | # from Cargo.lock | ||
4 | SRC_URI += " \ | ||
5 | crate://crates.io/autocfg/1.2.0 \ | ||
6 | crate://crates.io/bitflags/1.3.2 \ | ||
7 | crate://crates.io/cfg-if/1.0.0 \ | ||
8 | crate://crates.io/getrandom/0.2.14 \ | ||
9 | crate://crates.io/indoc/1.0.9 \ | ||
10 | crate://crates.io/libc/0.2.153 \ | ||
11 | crate://crates.io/lock_api/0.4.11 \ | ||
12 | crate://crates.io/memoffset/0.9.0 \ | ||
13 | crate://crates.io/once_cell/1.19.0 \ | ||
14 | crate://crates.io/parking_lot/0.12.1 \ | ||
15 | crate://crates.io/parking_lot_core/0.9.9 \ | ||
16 | crate://crates.io/ppv-lite86/0.2.17 \ | ||
17 | crate://crates.io/proc-macro2/1.0.79 \ | ||
18 | crate://crates.io/pyo3/0.19.2 \ | ||
19 | crate://crates.io/pyo3-build-config/0.19.2 \ | ||
20 | crate://crates.io/pyo3-ffi/0.19.2 \ | ||
21 | crate://crates.io/pyo3-macros/0.19.2 \ | ||
22 | crate://crates.io/pyo3-macros-backend/0.19.2 \ | ||
23 | crate://crates.io/quote/1.0.35 \ | ||
24 | crate://crates.io/rand/0.8.5 \ | ||
25 | crate://crates.io/rand_chacha/0.3.1 \ | ||
26 | crate://crates.io/rand_core/0.6.4 \ | ||
27 | crate://crates.io/redox_syscall/0.4.1 \ | ||
28 | crate://crates.io/scopeguard/1.2.0 \ | ||
29 | crate://crates.io/smallvec/1.13.2 \ | ||
30 | crate://crates.io/syn/1.0.109 \ | ||
31 | crate://crates.io/target-lexicon/0.12.14 \ | ||
32 | crate://crates.io/unicode-ident/1.0.12 \ | ||
33 | crate://crates.io/unindent/0.1.11 \ | ||
34 | crate://crates.io/wasi/0.11.0+wasi-snapshot-preview1 \ | ||
35 | crate://crates.io/windows-targets/0.48.5 \ | ||
36 | crate://crates.io/windows_aarch64_gnullvm/0.48.5 \ | ||
37 | crate://crates.io/windows_aarch64_msvc/0.48.5 \ | ||
38 | crate://crates.io/windows_i686_gnu/0.48.5 \ | ||
39 | crate://crates.io/windows_i686_msvc/0.48.5 \ | ||
40 | crate://crates.io/windows_x86_64_gnu/0.48.5 \ | ||
41 | crate://crates.io/windows_x86_64_gnullvm/0.48.5 \ | ||
42 | crate://crates.io/windows_x86_64_msvc/0.48.5 \ | ||
43 | " | ||
44 | |||
45 | SRC_URI[autocfg-1.2.0.sha256sum] = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80" | ||
46 | SRC_URI[bitflags-1.3.2.sha256sum] = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" | ||
47 | SRC_URI[cfg-if-1.0.0.sha256sum] = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" | ||
48 | SRC_URI[getrandom-0.2.14.sha256sum] = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" | ||
49 | SRC_URI[indoc-1.0.9.sha256sum] = "bfa799dd5ed20a7e349f3b4639aa80d74549c81716d9ec4f994c9b5815598306" | ||
50 | SRC_URI[libc-0.2.153.sha256sum] = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" | ||
51 | SRC_URI[lock_api-0.4.11.sha256sum] = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" | ||
52 | SRC_URI[memoffset-0.9.0.sha256sum] = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" | ||
53 | SRC_URI[once_cell-1.19.0.sha256sum] = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" | ||
54 | SRC_URI[parking_lot-0.12.1.sha256sum] = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" | ||
55 | SRC_URI[parking_lot_core-0.9.9.sha256sum] = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" | ||
56 | SRC_URI[ppv-lite86-0.2.17.sha256sum] = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" | ||
57 | SRC_URI[proc-macro2-1.0.79.sha256sum] = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e" | ||
58 | SRC_URI[pyo3-0.19.2.sha256sum] = "e681a6cfdc4adcc93b4d3cf993749a4552018ee0a9b65fc0ccfad74352c72a38" | ||
59 | SRC_URI[pyo3-build-config-0.19.2.sha256sum] = "076c73d0bc438f7a4ef6fdd0c3bb4732149136abd952b110ac93e4edb13a6ba5" | ||
60 | SRC_URI[pyo3-ffi-0.19.2.sha256sum] = "e53cee42e77ebe256066ba8aa77eff722b3bb91f3419177cf4cd0f304d3284d9" | ||
61 | SRC_URI[pyo3-macros-0.19.2.sha256sum] = "dfeb4c99597e136528c6dd7d5e3de5434d1ceaf487436a3f03b2d56b6fc9efd1" | ||
62 | SRC_URI[pyo3-macros-backend-0.19.2.sha256sum] = "947dc12175c254889edc0c02e399476c2f652b4b9ebd123aa655c224de259536" | ||
63 | SRC_URI[quote-1.0.35.sha256sum] = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" | ||
64 | SRC_URI[rand-0.8.5.sha256sum] = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" | ||
65 | SRC_URI[rand_chacha-0.3.1.sha256sum] = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" | ||
66 | SRC_URI[rand_core-0.6.4.sha256sum] = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" | ||
67 | SRC_URI[redox_syscall-0.4.1.sha256sum] = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" | ||
68 | SRC_URI[scopeguard-1.2.0.sha256sum] = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" | ||
69 | SRC_URI[smallvec-1.13.2.sha256sum] = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" | ||
70 | SRC_URI[syn-1.0.109.sha256sum] = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" | ||
71 | SRC_URI[target-lexicon-0.12.14.sha256sum] = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f" | ||
72 | SRC_URI[unicode-ident-1.0.12.sha256sum] = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" | ||
73 | SRC_URI[unindent-0.1.11.sha256sum] = "e1766d682d402817b5ac4490b3c3002d91dfa0d22812f341609f97b08757359c" | ||
74 | SRC_URI[wasi-0.11.0+wasi-snapshot-preview1.sha256sum] = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" | ||
75 | SRC_URI[windows-targets-0.48.5.sha256sum] = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" | ||
76 | SRC_URI[windows_aarch64_gnullvm-0.48.5.sha256sum] = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" | ||
77 | SRC_URI[windows_aarch64_msvc-0.48.5.sha256sum] = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" | ||
78 | SRC_URI[windows_i686_gnu-0.48.5.sha256sum] = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" | ||
79 | SRC_URI[windows_i686_msvc-0.48.5.sha256sum] = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" | ||
80 | SRC_URI[windows_x86_64_gnu-0.48.5.sha256sum] = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" | ||
81 | SRC_URI[windows_x86_64_gnullvm-0.48.5.sha256sum] = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" | ||
82 | SRC_URI[windows_x86_64_msvc-0.48.5.sha256sum] = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" | ||
diff --git a/meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc.upgraded b/meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc.upgraded new file mode 100644 index 0000000000..b19b42832d --- /dev/null +++ b/meta-selftest/recipes-devtools/python/python3-guessing-game-crates.inc.upgraded | |||
@@ -0,0 +1,88 @@ | |||
1 | # Autogenerated with 'bitbake -c update_crates python3-guessing-game' | ||
2 | |||
3 | # from Cargo.lock | ||
4 | SRC_URI += " \ | ||
5 | crate://crates.io/autocfg/1.3.0 \ | ||
6 | crate://crates.io/bitflags/2.5.0 \ | ||
7 | crate://crates.io/cfg-if/1.0.0 \ | ||
8 | crate://crates.io/getrandom/0.2.15 \ | ||
9 | crate://crates.io/heck/0.4.1 \ | ||
10 | crate://crates.io/indoc/2.0.5 \ | ||
11 | crate://crates.io/libc/0.2.155 \ | ||
12 | crate://crates.io/lock_api/0.4.12 \ | ||
13 | crate://crates.io/memoffset/0.9.1 \ | ||
14 | crate://crates.io/once_cell/1.19.0 \ | ||
15 | crate://crates.io/parking_lot/0.12.3 \ | ||
16 | crate://crates.io/parking_lot_core/0.9.10 \ | ||
17 | crate://crates.io/portable-atomic/1.6.0 \ | ||
18 | crate://crates.io/ppv-lite86/0.2.17 \ | ||
19 | crate://crates.io/proc-macro2/1.0.84 \ | ||
20 | crate://crates.io/pyo3/0.21.2 \ | ||
21 | crate://crates.io/pyo3-build-config/0.21.2 \ | ||
22 | crate://crates.io/pyo3-ffi/0.21.2 \ | ||
23 | crate://crates.io/pyo3-macros/0.21.2 \ | ||
24 | crate://crates.io/pyo3-macros-backend/0.21.2 \ | ||
25 | crate://crates.io/quote/1.0.36 \ | ||
26 | crate://crates.io/rand/0.8.5 \ | ||
27 | crate://crates.io/rand_chacha/0.3.1 \ | ||
28 | crate://crates.io/rand_core/0.6.4 \ | ||
29 | crate://crates.io/redox_syscall/0.5.1 \ | ||
30 | crate://crates.io/scopeguard/1.2.0 \ | ||
31 | crate://crates.io/smallvec/1.13.2 \ | ||
32 | crate://crates.io/syn/2.0.66 \ | ||
33 | crate://crates.io/target-lexicon/0.12.14 \ | ||
34 | crate://crates.io/unicode-ident/1.0.12 \ | ||
35 | crate://crates.io/unindent/0.2.3 \ | ||
36 | crate://crates.io/wasi/0.11.0+wasi-snapshot-preview1 \ | ||
37 | crate://crates.io/windows-targets/0.52.5 \ | ||
38 | crate://crates.io/windows_aarch64_gnullvm/0.52.5 \ | ||
39 | crate://crates.io/windows_aarch64_msvc/0.52.5 \ | ||
40 | crate://crates.io/windows_i686_gnu/0.52.5 \ | ||
41 | crate://crates.io/windows_i686_gnullvm/0.52.5 \ | ||
42 | crate://crates.io/windows_i686_msvc/0.52.5 \ | ||
43 | crate://crates.io/windows_x86_64_gnu/0.52.5 \ | ||
44 | crate://crates.io/windows_x86_64_gnullvm/0.52.5 \ | ||
45 | crate://crates.io/windows_x86_64_msvc/0.52.5 \ | ||
46 | " | ||
47 | |||
48 | SRC_URI[autocfg-1.3.0.sha256sum] = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" | ||
49 | SRC_URI[bitflags-2.5.0.sha256sum] = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" | ||
50 | SRC_URI[cfg-if-1.0.0.sha256sum] = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" | ||
51 | SRC_URI[getrandom-0.2.15.sha256sum] = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" | ||
52 | SRC_URI[heck-0.4.1.sha256sum] = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" | ||
53 | SRC_URI[indoc-2.0.5.sha256sum] = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" | ||
54 | SRC_URI[libc-0.2.155.sha256sum] = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" | ||
55 | SRC_URI[lock_api-0.4.12.sha256sum] = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" | ||
56 | SRC_URI[memoffset-0.9.1.sha256sum] = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" | ||
57 | SRC_URI[once_cell-1.19.0.sha256sum] = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" | ||
58 | SRC_URI[parking_lot-0.12.3.sha256sum] = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" | ||
59 | SRC_URI[parking_lot_core-0.9.10.sha256sum] = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" | ||
60 | SRC_URI[portable-atomic-1.6.0.sha256sum] = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" | ||
61 | SRC_URI[ppv-lite86-0.2.17.sha256sum] = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" | ||
62 | SRC_URI[proc-macro2-1.0.84.sha256sum] = "ec96c6a92621310b51366f1e28d05ef11489516e93be030060e5fc12024a49d6" | ||
63 | SRC_URI[pyo3-0.21.2.sha256sum] = "a5e00b96a521718e08e03b1a622f01c8a8deb50719335de3f60b3b3950f069d8" | ||
64 | SRC_URI[pyo3-build-config-0.21.2.sha256sum] = "7883df5835fafdad87c0d888b266c8ec0f4c9ca48a5bed6bbb592e8dedee1b50" | ||
65 | SRC_URI[pyo3-ffi-0.21.2.sha256sum] = "01be5843dc60b916ab4dad1dca6d20b9b4e6ddc8e15f50c47fe6d85f1fb97403" | ||
66 | SRC_URI[pyo3-macros-0.21.2.sha256sum] = "77b34069fc0682e11b31dbd10321cbf94808394c56fd996796ce45217dfac53c" | ||
67 | SRC_URI[pyo3-macros-backend-0.21.2.sha256sum] = "08260721f32db5e1a5beae69a55553f56b99bd0e1c3e6e0a5e8851a9d0f5a85c" | ||
68 | SRC_URI[quote-1.0.36.sha256sum] = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" | ||
69 | SRC_URI[rand-0.8.5.sha256sum] = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" | ||
70 | SRC_URI[rand_chacha-0.3.1.sha256sum] = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" | ||
71 | SRC_URI[rand_core-0.6.4.sha256sum] = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" | ||
72 | SRC_URI[redox_syscall-0.5.1.sha256sum] = "469052894dcb553421e483e4209ee581a45100d31b4018de03e5a7ad86374a7e" | ||
73 | SRC_URI[scopeguard-1.2.0.sha256sum] = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" | ||
74 | SRC_URI[smallvec-1.13.2.sha256sum] = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" | ||
75 | SRC_URI[syn-2.0.66.sha256sum] = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5" | ||
76 | SRC_URI[target-lexicon-0.12.14.sha256sum] = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f" | ||
77 | SRC_URI[unicode-ident-1.0.12.sha256sum] = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" | ||
78 | SRC_URI[unindent-0.2.3.sha256sum] = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce" | ||
79 | SRC_URI[wasi-0.11.0+wasi-snapshot-preview1.sha256sum] = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" | ||
80 | SRC_URI[windows-targets-0.52.5.sha256sum] = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" | ||
81 | SRC_URI[windows_aarch64_gnullvm-0.52.5.sha256sum] = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" | ||
82 | SRC_URI[windows_aarch64_msvc-0.52.5.sha256sum] = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" | ||
83 | SRC_URI[windows_i686_gnu-0.52.5.sha256sum] = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" | ||
84 | SRC_URI[windows_i686_gnullvm-0.52.5.sha256sum] = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" | ||
85 | SRC_URI[windows_i686_msvc-0.52.5.sha256sum] = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" | ||
86 | SRC_URI[windows_x86_64_gnu-0.52.5.sha256sum] = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" | ||
87 | SRC_URI[windows_x86_64_gnullvm-0.52.5.sha256sum] = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" | ||
88 | SRC_URI[windows_x86_64_msvc-0.52.5.sha256sum] = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" | ||
diff --git a/meta-selftest/recipes-devtools/python/python3-guessing-game_git.bb b/meta-selftest/recipes-devtools/python/python3-guessing-game_git.bb new file mode 100644 index 0000000000..12afec8b1b --- /dev/null +++ b/meta-selftest/recipes-devtools/python/python3-guessing-game_git.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | SUMMARY = "The guessing game from The Rust Book using pyo3." | ||
2 | DESCRIPTION = "Wrap a version of the guessing game from The Rust Book \ | ||
3 | to run in Python using pyo3." | ||
4 | HOMEPAGE = "https://www.maturin.rs/tutorial" | ||
5 | SECTION = "devel/python" | ||
6 | LICENSE = "MIT & Apache-2.0" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \ | ||
8 | file://LICENSE-MIT;md5=85fd3b67069cff784d98ebfc7d5c0797" | ||
9 | |||
10 | SRC_URI = "git://git.yoctoproject.org/guessing-game.git;protocol=https;branch=main" | ||
11 | |||
12 | PV = "0.1.0" | ||
13 | SRCREV = "469c9e2230ca4fa9e391c94be6e697733e769500" | ||
14 | |||
15 | inherit python_maturin cargo-update-recipe-crates | ||
16 | |||
17 | require ${BPN}-crates.inc | ||
diff --git a/meta-selftest/recipes-devtools/python/python3-guessing-game_git.bb.upgraded b/meta-selftest/recipes-devtools/python/python3-guessing-game_git.bb.upgraded new file mode 100644 index 0000000000..194a8efe83 --- /dev/null +++ b/meta-selftest/recipes-devtools/python/python3-guessing-game_git.bb.upgraded | |||
@@ -0,0 +1,17 @@ | |||
1 | SUMMARY = "The guessing game from The Rust Book using pyo3." | ||
2 | DESCRIPTION = "Wrap a version of the guessing game from The Rust Book \ | ||
3 | to run in Python using pyo3." | ||
4 | HOMEPAGE = "https://www.maturin.rs/tutorial" | ||
5 | SECTION = "devel/python" | ||
6 | LICENSE = "MIT & Apache-2.0" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \ | ||
8 | file://LICENSE-MIT;md5=85fd3b67069cff784d98ebfc7d5c0797" | ||
9 | |||
10 | SRC_URI = "git://git.yoctoproject.org/guessing-game.git;protocol=https;branch=main" | ||
11 | |||
12 | PV = "0.2.0" | ||
13 | SRCREV = "40cf004c2772ffa20ea803fa3be1528a75be3e98" | ||
14 | |||
15 | inherit python_maturin cargo-update-recipe-crates | ||
16 | |||
17 | require ${BPN}-crates.inc | ||
diff --git a/meta-selftest/recipes-devtools/rust/rust-c-lib-example-bin_git.bb b/meta-selftest/recipes-devtools/rust/rust-c-lib-example-bin_git.bb index 47d878597a..890dbbbe8d 100644 --- a/meta-selftest/recipes-devtools/rust/rust-c-lib-example-bin_git.bb +++ b/meta-selftest/recipes-devtools/rust/rust-c-lib-example-bin_git.bb | |||
@@ -8,7 +8,6 @@ SRC_URI = " \ | |||
8 | " | 8 | " |
9 | 9 | ||
10 | SRCREV = "fc53c457f69aa5221ec1f8619a007e8150db5e60" | 10 | SRCREV = "fc53c457f69aa5221ec1f8619a007e8150db5e60" |
11 | S = "${WORKDIR}/git" | ||
12 | 11 | ||
13 | DEPENDS = "rust-c-lib-example" | 12 | DEPENDS = "rust-c-lib-example" |
14 | 13 | ||
diff --git a/meta-selftest/recipes-devtools/rust/rust-c-lib-example_git.bb b/meta-selftest/recipes-devtools/rust/rust-c-lib-example_git.bb index 6e7c250b92..0217d1718f 100644 --- a/meta-selftest/recipes-devtools/rust/rust-c-lib-example_git.bb +++ b/meta-selftest/recipes-devtools/rust/rust-c-lib-example_git.bb | |||
@@ -8,7 +8,6 @@ SRC_URI = " \ | |||
8 | " | 8 | " |
9 | 9 | ||
10 | SRCREV = "fc53c457f69aa5221ec1f8619a007e8150db5e60" | 10 | SRCREV = "fc53c457f69aa5221ec1f8619a007e8150db5e60" |
11 | S = "${WORKDIR}/git" | ||
12 | 11 | ||
13 | inherit cargo_c | 12 | inherit cargo_c |
14 | 13 | ||
diff --git a/meta-selftest/recipes-extended/hello-rs/hello-rs/0001-Greet-OE-Core.patch b/meta-selftest/recipes-extended/hello-rs/hello-rs/0001-Greet-OE-Core.patch index 7569ccef7b..96be6f4a61 100644 --- a/meta-selftest/recipes-extended/hello-rs/hello-rs/0001-Greet-OE-Core.patch +++ b/meta-selftest/recipes-extended/hello-rs/hello-rs/0001-Greet-OE-Core.patch | |||
@@ -4,7 +4,7 @@ Date: Wed, 27 Dec 2023 09:55:48 +0000 | |||
4 | Subject: [PATCH] Greet "OE-Core" | 4 | Subject: [PATCH] Greet "OE-Core" |
5 | 5 | ||
6 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | 6 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> |
7 | Upstream-Status: Inappropriate | 7 | Upstream-Status: Inappropriate [Test artefact] |
8 | --- | 8 | --- |
9 | src/main.rs | 2 +- | 9 | src/main.rs | 2 +- |
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
diff --git a/meta-selftest/recipes-extended/hello-rs/hello-rs_0.1.0.bb b/meta-selftest/recipes-extended/hello-rs/hello-rs_0.1.0.bb index 9a136f2978..f6555a31dd 100644 --- a/meta-selftest/recipes-extended/hello-rs/hello-rs_0.1.0.bb +++ b/meta-selftest/recipes-extended/hello-rs/hello-rs_0.1.0.bb | |||
@@ -12,7 +12,7 @@ SRCREV = "d3d096eda182644868f8e7458dcfa538ff637db3" | |||
12 | SRCREV_FORMAT .= "_hello-lib" | 12 | SRCREV_FORMAT .= "_hello-lib" |
13 | SRCREV_hello-lib = "59c84574e844617043cf337bc8fa537cf87ad8ae" | 13 | SRCREV_hello-lib = "59c84574e844617043cf337bc8fa537cf87ad8ae" |
14 | 14 | ||
15 | S = "${WORKDIR}/rust" | 15 | S = "${UNPACKDIR}/rust" |
16 | 16 | ||
17 | inherit cargo cargo-update-recipe-crates ptest-cargo | 17 | inherit cargo cargo-update-recipe-crates ptest-cargo |
18 | 18 | ||
diff --git a/meta-selftest/recipes-extended/sysdig/sysdig-selftest_0.28.0.bb b/meta-selftest/recipes-extended/sysdig/sysdig-selftest_0.28.0.bb index 2ce85fe451..ea9a78dd1b 100644 --- a/meta-selftest/recipes-extended/sysdig/sysdig-selftest_0.28.0.bb +++ b/meta-selftest/recipes-extended/sysdig/sysdig-selftest_0.28.0.bb | |||
@@ -23,17 +23,15 @@ JIT:powerpc64 = "" | |||
23 | RDEPENDS:${PN} = "bash" | 23 | RDEPENDS:${PN} = "bash" |
24 | 24 | ||
25 | SRC_URI = "git://github.com/draios/sysdig.git;branch=dev;protocol=https;name=sysdig \ | 25 | SRC_URI = "git://github.com/draios/sysdig.git;branch=dev;protocol=https;name=sysdig \ |
26 | git://github.com/falcosecurity/libs;protocol=https;branch=master;name=falco;subdir=git/falcosecurity-libs \ | 26 | git://github.com/falcosecurity/libs;protocol=https;branch=master;name=falco;subdir=${BB_GIT_DEFAULT_DESTSUFFIX}/falcosecurity-libs \ |
27 | file://0055-Add-cstdint-for-uintXX_t-types.patch;patchdir=./falcosecurity-libs \ | 27 | file://0055-Add-cstdint-for-uintXX_t-types.patch;patchdir=./falcosecurity-libs \ |
28 | file://0099-cmake-Pass-PROBE_NAME-via-CFLAGS.patch \ | 28 | file://0099-cmake-Pass-PROBE_NAME-via-CFLAGS.patch \ |
29 | " | 29 | " |
30 | SRCREV_sysdig = "4fb6288275f567f63515df0ff0a6518043ecfa9b" | 30 | SRCREV_sysdig = "4fb6288275f567f63515df0ff0a6518043ecfa9b" |
31 | SRCREV_falco= "caa0e4d0044fdaaebab086592a97f0c7f32aeaa9" | 31 | SRCREV_falco = "caa0e4d0044fdaaebab086592a97f0c7f32aeaa9" |
32 | 32 | ||
33 | SRCREV_FORMAT = "sysdig_falco" | 33 | SRCREV_FORMAT = "sysdig_falco" |
34 | 34 | ||
35 | S = "${WORKDIR}/git" | ||
36 | |||
37 | EXTRA_OECMAKE = "\ | 35 | EXTRA_OECMAKE = "\ |
38 | -DBUILD_DRIVER=OFF \ | 36 | -DBUILD_DRIVER=OFF \ |
39 | -DMINIMAL_BUILD=ON \ | 37 | -DMINIMAL_BUILD=ON \ |
diff --git a/meta-selftest/recipes-test/bbclasses/systemd-and-sysvinit.bb b/meta-selftest/recipes-test/bbclasses/systemd-and-sysvinit.bb new file mode 100644 index 0000000000..94f9a7a770 --- /dev/null +++ b/meta-selftest/recipes-test/bbclasses/systemd-and-sysvinit.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | LICENSE = "MIT" | ||
2 | |||
3 | inherit allarch systemd update-rc.d | ||
4 | |||
5 | do_install() { | ||
6 | install -d ${D}${systemd_system_unitdir} | ||
7 | touch ${D}${systemd_system_unitdir}/${BPN}.service | ||
8 | |||
9 | install -d ${D}${INIT_D_DIR} | ||
10 | touch ${D}${INIT_D_DIR}/${BPN} | ||
11 | } | ||
12 | |||
13 | INITSCRIPT_NAME = "${BPN}" | ||
14 | |||
15 | SYSTEMD_SERVICE:${PN} = "${BPN}.service" | ||
16 | |||
17 | EXCLUDE_FROM_WORLD = "1" | ||
diff --git a/meta-selftest/recipes-test/bbclasses/systemd-only.bb b/meta-selftest/recipes-test/bbclasses/systemd-only.bb new file mode 100644 index 0000000000..6968247b08 --- /dev/null +++ b/meta-selftest/recipes-test/bbclasses/systemd-only.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | LICENSE = "MIT" | ||
2 | |||
3 | inherit allarch systemd | ||
4 | |||
5 | do_install() { | ||
6 | install -d ${D}${systemd_system_unitdir} | ||
7 | touch ${D}${systemd_system_unitdir}/${BPN}.service | ||
8 | } | ||
9 | |||
10 | SYSTEMD_SERVICE:${PN} = "${BPN}.service" | ||
11 | |||
12 | EXCLUDE_FROM_WORLD = "1" | ||
diff --git a/meta-selftest/recipes-test/container-image/container-test-image.bb b/meta-selftest/recipes-test/container-image/container-test-image.bb index d5f939c6e9..26b6409d1d 100644 --- a/meta-selftest/recipes-test/container-image/container-test-image.bb +++ b/meta-selftest/recipes-test/container-image/container-test-image.bb | |||
@@ -4,5 +4,6 @@ LICENSE = "MIT" | |||
4 | 4 | ||
5 | IMAGE_FSTYPES = "container" | 5 | IMAGE_FSTYPES = "container" |
6 | IMAGE_LINGUAS = "" | 6 | IMAGE_LINGUAS = "" |
7 | IMAGE_FEATURES = "" | ||
7 | 8 | ||
8 | inherit core-image | 9 | inherit core-image |
diff --git a/meta-selftest/recipes-test/cpp/cpp-example.inc b/meta-selftest/recipes-test/cpp/cpp-example.inc index ad374be9d0..76ff64e87f 100644 --- a/meta-selftest/recipes-test/cpp/cpp-example.inc +++ b/meta-selftest/recipes-test/cpp/cpp-example.inc | |||
@@ -19,6 +19,6 @@ SRC_URI = "\ | |||
19 | file://run-ptest \ | 19 | file://run-ptest \ |
20 | " | 20 | " |
21 | 21 | ||
22 | S = "${WORKDIR}" | 22 | S = "${UNPACKDIR}" |
23 | 23 | ||
24 | inherit ptest | 24 | inherit ptest |
diff --git a/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemuarm/arm.patch b/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemuarm/arm.patch index e33a2753f9..17ed5a54f1 100644 --- a/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemuarm/arm.patch +++ b/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemuarm/arm.patch | |||
@@ -1,3 +1,5 @@ | |||
1 | Upstream-Status: Inappropriate [Test artefact] | ||
2 | |||
1 | --- source.orig 2020-10-06 13:26:10.792688630 +0100 | 3 | --- source.orig 2020-10-06 13:26:10.792688630 +0100 |
2 | +++ source 2020-10-06 13:26:18.853424694 +0100 | 4 | +++ source 2020-10-06 13:26:18.853424694 +0100 |
3 | @@ -1 +1 @@ | 5 | @@ -1 +1 @@ |
diff --git a/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemux86/x86.patch b/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemux86/x86.patch index 1a0a175fa8..0af5ebbfaf 100644 --- a/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemux86/x86.patch +++ b/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemux86/x86.patch | |||
@@ -1,3 +1,5 @@ | |||
1 | Upstream-Status: Inappropriate [Test artefact] | ||
2 | |||
1 | --- source.orig 2020-10-06 13:26:10.792688630 +0100 | 3 | --- source.orig 2020-10-06 13:26:10.792688630 +0100 |
2 | +++ source 2020-10-06 13:26:18.853424694 +0100 | 4 | +++ source 2020-10-06 13:26:18.853424694 +0100 |
3 | @@ -1 +1 @@ | 5 | @@ -1 +1 @@ |
diff --git a/meta-selftest/recipes-test/devtool/devtool-test-ignored.bb b/meta-selftest/recipes-test/devtool/devtool-test-ignored.bb index 6a3d58c884..c7740eb118 100644 --- a/meta-selftest/recipes-test/devtool/devtool-test-ignored.bb +++ b/meta-selftest/recipes-test/devtool/devtool-test-ignored.bb | |||
@@ -4,6 +4,6 @@ INHIBIT_DEFAULT_DEPS = "1" | |||
4 | SRC_URI = "file://${BPN}.tar.gz \ | 4 | SRC_URI = "file://${BPN}.tar.gz \ |
5 | file://${BPN}.patch" | 5 | file://${BPN}.patch" |
6 | 6 | ||
7 | S = "${WORKDIR}/${BPN}" | 7 | S = "${UNPACKDIR}/${BPN}" |
8 | 8 | ||
9 | EXCLUDE_FROM_WORLD = "1" | 9 | EXCLUDE_FROM_WORLD = "1" |
diff --git a/meta-selftest/recipes-test/devtool/devtool-test-ignored/devtool-test-ignored.patch b/meta-selftest/recipes-test/devtool/devtool-test-ignored/devtool-test-ignored.patch index 96ea0eb4e3..bc1ca4bc4a 100644 --- a/meta-selftest/recipes-test/devtool/devtool-test-ignored/devtool-test-ignored.patch +++ b/meta-selftest/recipes-test/devtool/devtool-test-ignored/devtool-test-ignored.patch | |||
@@ -1,3 +1,5 @@ | |||
1 | Upstream-Status: Inappropriate [Test artefact] | ||
2 | |||
1 | diff --git a/ignored b/ignored | 3 | diff --git a/ignored b/ignored |
2 | index a579759..e3d7b43 100644 | 4 | index a579759..e3d7b43 100644 |
3 | --- a/ignored | 5 | --- a/ignored |
diff --git a/meta-selftest/recipes-test/devtool/devtool-test-ignored/devtool-test-ignored.patch.expected b/meta-selftest/recipes-test/devtool/devtool-test-ignored/devtool-test-ignored.patch.expected index 68ec6d9875..8ead9ee1ce 100644 --- a/meta-selftest/recipes-test/devtool/devtool-test-ignored/devtool-test-ignored.patch.expected +++ b/meta-selftest/recipes-test/devtool/devtool-test-ignored/devtool-test-ignored.patch.expected | |||
@@ -3,6 +3,7 @@ From: Martin Jansa <Martin.Jansa@gmail.com> | |||
3 | Date: Thu, 28 May 2020 01:32:31 +0200 | 3 | Date: Thu, 28 May 2020 01:32:31 +0200 |
4 | Subject: [PATCH] meta-selftest: add test of .gitignore in tarball | 4 | Subject: [PATCH] meta-selftest: add test of .gitignore in tarball |
5 | 5 | ||
6 | Upstream-Status: Inappropriate [Test artefact] | ||
6 | --- | 7 | --- |
7 | ignored | 2 +- | 8 | ignored | 2 +- |
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
diff --git a/meta-selftest/recipes-test/devtool/devtool-test-local_6.03.bb b/meta-selftest/recipes-test/devtool/devtool-test-local_6.03.bb index d0fd697978..03e082e83f 100644 --- a/meta-selftest/recipes-test/devtool/devtool-test-local_6.03.bb +++ b/meta-selftest/recipes-test/devtool/devtool-test-local_6.03.bb | |||
@@ -12,7 +12,7 @@ SRC_URI:append:class-native = " file://file3" | |||
12 | SRC_URI[md5sum] = "92a253df9211e9c20172796ecf388f13" | 12 | SRC_URI[md5sum] = "92a253df9211e9c20172796ecf388f13" |
13 | SRC_URI[sha256sum] = "26d3986d2bea109d5dc0e4f8c4822a459276cf021125e8c9f23c3cca5d8c850e" | 13 | SRC_URI[sha256sum] = "26d3986d2bea109d5dc0e4f8c4822a459276cf021125e8c9f23c3cca5d8c850e" |
14 | 14 | ||
15 | S = "${WORKDIR}/syslinux-${PV}" | 15 | S = "${UNPACKDIR}/syslinux-${PV}" |
16 | 16 | ||
17 | EXCLUDE_FROM_WORLD = "1" | 17 | EXCLUDE_FROM_WORLD = "1" |
18 | BBCLASSEXTEND = "native" | 18 | BBCLASSEXTEND = "native" |
diff --git a/meta-selftest/recipes-test/devtool/devtool-test-localonly.bb b/meta-selftest/recipes-test/devtool/devtool-test-localonly.bb index e767619879..54463fed98 100644 --- a/meta-selftest/recipes-test/devtool/devtool-test-localonly.bb +++ b/meta-selftest/recipes-test/devtool/devtool-test-localonly.bb | |||
@@ -6,5 +6,7 @@ SRC_URI = "file://file1 \ | |||
6 | 6 | ||
7 | SRC_URI:append:class-native = " file://file3" | 7 | SRC_URI:append:class-native = " file://file3" |
8 | 8 | ||
9 | S = "${UNPACKDIR}" | ||
10 | |||
9 | EXCLUDE_FROM_WORLD = "1" | 11 | EXCLUDE_FROM_WORLD = "1" |
10 | BBCLASSEXTEND = "native" | 12 | BBCLASSEXTEND = "native" |
diff --git a/meta-selftest/recipes-test/devtool/devtool-test-long-filename.bb b/meta-selftest/recipes-test/devtool/devtool-test-long-filename.bb index 3ec22cae7f..3653403a2e 100644 --- a/meta-selftest/recipes-test/devtool/devtool-test-long-filename.bb +++ b/meta-selftest/recipes-test/devtool/devtool-test-long-filename.bb | |||
@@ -4,6 +4,6 @@ INHIBIT_DEFAULT_DEPS = "1" | |||
4 | SRC_URI = "file://${BPN}.tar.gz \ | 4 | SRC_URI = "file://${BPN}.tar.gz \ |
5 | file://0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch" | 5 | file://0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch" |
6 | 6 | ||
7 | S = "${WORKDIR}/${BPN}" | 7 | S = "${UNPACKDIR}/${BPN}" |
8 | 8 | ||
9 | EXCLUDE_FROM_WORLD = "1" | 9 | EXCLUDE_FROM_WORLD = "1" |
diff --git a/meta-selftest/recipes-test/devtool/devtool-test-long-filename/0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch b/meta-selftest/recipes-test/devtool/devtool-test-long-filename/0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch index 6aaf409ebc..2b7088e367 100644 --- a/meta-selftest/recipes-test/devtool/devtool-test-long-filename/0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch +++ b/meta-selftest/recipes-test/devtool/devtool-test-long-filename/0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch | |||
@@ -1,3 +1,5 @@ | |||
1 | Upstream-Status: Inappropriate [Test artefact] | ||
2 | |||
1 | diff --git a/patch-me b/patch-me | 3 | diff --git a/patch-me b/patch-me |
2 | index a20b29a..5e35d1b 100644 | 4 | index a20b29a..5e35d1b 100644 |
3 | --- a/patch-me | 5 | --- a/patch-me |
diff --git a/meta-selftest/recipes-test/devtool/devtool-test-long-filename/0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch.expected b/meta-selftest/recipes-test/devtool/devtool-test-long-filename/0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch.expected index 1bf25a61d0..52b0df74ce 100644 --- a/meta-selftest/recipes-test/devtool/devtool-test-long-filename/0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch.expected +++ b/meta-selftest/recipes-test/devtool/devtool-test-long-filename/0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch.expected | |||
@@ -3,6 +3,7 @@ From: Martin Jansa <Martin.Jansa@gmail.com> | |||
3 | Date: Thu, 28 May 2020 02:03:39 +0200 | 3 | Date: Thu, 28 May 2020 02:03:39 +0200 |
4 | Subject: [PATCH] meta-selftest: add test for .patch file with long filename | 4 | Subject: [PATCH] meta-selftest: add test for .patch file with long filename |
5 | 5 | ||
6 | Upstream-Status: Inappropriate [Test artefact] | ||
6 | --- | 7 | --- |
7 | patch-me | 2 +- | 8 | patch-me | 2 +- |
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
diff --git a/meta-selftest/recipes-test/devtool/devtool-test-patch-gz.bb b/meta-selftest/recipes-test/devtool/devtool-test-patch-gz.bb index e25b3d9747..f6960320db 100644 --- a/meta-selftest/recipes-test/devtool/devtool-test-patch-gz.bb +++ b/meta-selftest/recipes-test/devtool/devtool-test-patch-gz.bb | |||
@@ -8,7 +8,7 @@ SRC_URI = "http://downloads.yoctoproject.org/releases/xrestop/xrestop-0.4.tar.gz | |||
8 | " | 8 | " |
9 | UPSTREAM_VERSION_UNKNOWN = "1" | 9 | UPSTREAM_VERSION_UNKNOWN = "1" |
10 | 10 | ||
11 | S = "${WORKDIR}/xrestop-0.4" | 11 | S = "${UNPACKDIR}/xrestop-0.4" |
12 | 12 | ||
13 | SRC_URI[md5sum] = "d8a54596cbaf037e62b80c4585a3ca9b" | 13 | SRC_URI[md5sum] = "d8a54596cbaf037e62b80c4585a3ca9b" |
14 | SRC_URI[sha256sum] = "67c2fc94a7ecedbaae0d1837e82e93d1d98f4a6d759828860e552119af3ce257" | 14 | SRC_URI[sha256sum] = "67c2fc94a7ecedbaae0d1837e82e93d1d98f4a6d759828860e552119af3ce257" |
diff --git a/meta-selftest/recipes-test/devtool/devtool-test-reset-re++.bb b/meta-selftest/recipes-test/devtool/devtool-test-reset-re++.bb new file mode 100644 index 0000000000..0146be4c52 --- /dev/null +++ b/meta-selftest/recipes-test/devtool/devtool-test-reset-re++.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | LICENSE = "CLOSED" | ||
2 | INHIBIT_DEFAULT_DEPS = "1" | ||
3 | |||
4 | SRC_URI = "file://file1" | ||
5 | |||
6 | S = "${UNPACKDIR}" | ||
7 | |||
8 | EXCLUDE_FROM_WORLD = "1" | ||
diff --git a/meta-selftest/recipes-test/devtool/devtool-test-reset-re++/file1 b/meta-selftest/recipes-test/devtool/devtool-test-reset-re++/file1 new file mode 100644 index 0000000000..51f466f2e4 --- /dev/null +++ b/meta-selftest/recipes-test/devtool/devtool-test-reset-re++/file1 | |||
@@ -0,0 +1 @@ | |||
A file | |||
diff --git a/meta-selftest/recipes-test/devtool/devtool-test-subdir.bb b/meta-selftest/recipes-test/devtool/devtool-test-subdir.bb index 3f6956524b..966142431b 100644 --- a/meta-selftest/recipes-test/devtool/devtool-test-subdir.bb +++ b/meta-selftest/recipes-test/devtool/devtool-test-subdir.bb | |||
@@ -4,6 +4,6 @@ INHIBIT_DEFAULT_DEPS = "1" | |||
4 | SRC_URI = "file://devtool-test-subdir.tar.gz \ | 4 | SRC_URI = "file://devtool-test-subdir.tar.gz \ |
5 | file://testfile;subdir=${BPN}" | 5 | file://testfile;subdir=${BPN}" |
6 | 6 | ||
7 | S = "${WORKDIR}/${BPN}" | 7 | S = "${UNPACKDIR}/${BPN}" |
8 | 8 | ||
9 | EXCLUDE_FROM_WORLD = "1" | 9 | EXCLUDE_FROM_WORLD = "1" |
diff --git a/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/0001-Add-a-note-line-to-the-quick-reference.patch b/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/0001-Add-a-note-line-to-the-quick-reference.patch index 4ea3d74f0f..db66a284b7 100644 --- a/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/0001-Add-a-note-line-to-the-quick-reference.patch +++ b/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/0001-Add-a-note-line-to-the-quick-reference.patch | |||
@@ -4,6 +4,8 @@ Date: Wed, 24 Feb 2016 17:43:03 +1300 | |||
4 | Subject: [PATCH] Add a note line to the quick reference | 4 | Subject: [PATCH] Add a note line to the quick reference |
5 | 5 | ||
6 | A test patch so we have a file to move around. | 6 | A test patch so we have a file to move around. |
7 | |||
8 | Upstream-Status: Inappropriate [Test artefact] | ||
7 | --- | 9 | --- |
8 | doc/quickref.1.in | 1 + | 10 | doc/quickref.1.in | 1 + |
9 | 1 file changed, 1 insertion(+) | 11 | 1 file changed, 1 insertion(+) |
diff --git a/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/backported.patch b/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/backported.patch index c4f3f12666..5159652f69 100644 --- a/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/backported.patch +++ b/meta-selftest/recipes-test/devtool/devtool-upgrade-test1-1.5.3/backported.patch | |||
@@ -4,6 +4,8 @@ Date: Mon Nov 18 18:43:15 2019 +0100 | |||
4 | 4 | ||
5 | Backport of the NEWS file from version 1.6.0 | 5 | Backport of the NEWS file from version 1.6.0 |
6 | 6 | ||
7 | Upstream-Status: Inappropriate [Test artefact] | ||
8 | |||
7 | diff --git a/doc/NEWS b/doc/NEWS | 9 | diff --git a/doc/NEWS b/doc/NEWS |
8 | index 69793fc..fd49b1c 100644 | 10 | index 69793fc..fd49b1c 100644 |
9 | --- a/doc/NEWS | 11 | --- a/doc/NEWS |
diff --git a/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb b/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb index fee5bee739..254ea45708 100644 --- a/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb +++ b/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb | |||
@@ -14,7 +14,7 @@ SRC_URI[sha256sum] = "681bcca9784bf3cb2207e68236d1f68e2aa7b80f999b5750dc77dcd756 | |||
14 | 14 | ||
15 | PR = "r5" | 15 | PR = "r5" |
16 | 16 | ||
17 | S = "${WORKDIR}/pv-${PV}" | 17 | S = "${UNPACKDIR}/pv-${PV}" |
18 | 18 | ||
19 | EXCLUDE_FROM_WORLD = "1" | 19 | EXCLUDE_FROM_WORLD = "1" |
20 | 20 | ||
diff --git a/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded b/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded index d75df0c8c7..f80744e14b 100644 --- a/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded +++ b/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded | |||
@@ -11,7 +11,7 @@ RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature" | |||
11 | 11 | ||
12 | SRC_URI[sha256sum] = "9dd45391806b0ed215abee4c5ac1597d018c386fe9c1f5afd2f6bc3b07fd82c3" | 12 | SRC_URI[sha256sum] = "9dd45391806b0ed215abee4c5ac1597d018c386fe9c1f5afd2f6bc3b07fd82c3" |
13 | 13 | ||
14 | S = "${WORKDIR}/pv-${PV}" | 14 | S = "${UNPACKDIR}/pv-${PV}" |
15 | 15 | ||
16 | EXCLUDE_FROM_WORLD = "1" | 16 | EXCLUDE_FROM_WORLD = "1" |
17 | 17 | ||
diff --git a/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb b/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb index 2558a22ce5..66d66e95e2 100644 --- a/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb +++ b/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb | |||
@@ -15,8 +15,6 @@ SRC_URI = "git://git.yoctoproject.org/dbus-wait;branch=master" | |||
15 | UPSTREAM_CHECK_COMMITS = "1" | 15 | UPSTREAM_CHECK_COMMITS = "1" |
16 | RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature" | 16 | RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature" |
17 | 17 | ||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | EXCLUDE_FROM_WORLD = "1" | 18 | EXCLUDE_FROM_WORLD = "1" |
21 | 19 | ||
22 | inherit autotools pkgconfig | 20 | inherit autotools pkgconfig |
diff --git a/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb.upgraded b/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb.upgraded index eaa8bd898d..d3256ef5df 100644 --- a/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb.upgraded +++ b/meta-selftest/recipes-test/devtool/devtool-upgrade-test2_git.bb.upgraded | |||
@@ -14,8 +14,6 @@ SRC_URI = "git://git.yoctoproject.org/dbus-wait;branch=master" | |||
14 | UPSTREAM_CHECK_COMMITS = "1" | 14 | UPSTREAM_CHECK_COMMITS = "1" |
15 | RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature" | 15 | RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature" |
16 | 16 | ||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | EXCLUDE_FROM_WORLD = "1" | 17 | EXCLUDE_FROM_WORLD = "1" |
20 | 18 | ||
21 | inherit autotools pkgconfig | 19 | inherit autotools pkgconfig |
diff --git a/meta-selftest/recipes-test/devtool/devtool-upgrade-test3_1.5.3.bb b/meta-selftest/recipes-test/devtool/devtool-upgrade-test3_1.5.3.bb index 69c0d351ec..0501e2025f 100644 --- a/meta-selftest/recipes-test/devtool/devtool-upgrade-test3_1.5.3.bb +++ b/meta-selftest/recipes-test/devtool/devtool-upgrade-test3_1.5.3.bb | |||
@@ -8,7 +8,7 @@ RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature" | |||
8 | 8 | ||
9 | SRC_URI[md5sum] = "9365d86bd884222b4bf1039b5a9ed1bd" | 9 | SRC_URI[md5sum] = "9365d86bd884222b4bf1039b5a9ed1bd" |
10 | 10 | ||
11 | S = "${WORKDIR}/pv-${PV}" | 11 | S = "${UNPACKDIR}/pv-${PV}" |
12 | 12 | ||
13 | EXCLUDE_FROM_WORLD = "1" | 13 | EXCLUDE_FROM_WORLD = "1" |
14 | 14 | ||
diff --git a/meta-selftest/recipes-test/devtool/devtool-upgrade-test3_1.5.3.bb.upgraded b/meta-selftest/recipes-test/devtool/devtool-upgrade-test3_1.5.3.bb.upgraded index 3ce7e85e10..2ba7c8213e 100644 --- a/meta-selftest/recipes-test/devtool/devtool-upgrade-test3_1.5.3.bb.upgraded +++ b/meta-selftest/recipes-test/devtool/devtool-upgrade-test3_1.5.3.bb.upgraded | |||
@@ -7,7 +7,7 @@ SRC_URI = "http://www.ivarch.com/programs/sources/pv-${PV}.tar.gz" | |||
7 | UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml" | 7 | UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml" |
8 | RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature" | 8 | RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature" |
9 | 9 | ||
10 | S = "${WORKDIR}/pv-${PV}" | 10 | S = "${UNPACKDIR}/pv-${PV}" |
11 | 11 | ||
12 | EXCLUDE_FROM_WORLD = "1" | 12 | EXCLUDE_FROM_WORLD = "1" |
13 | 13 | ||
diff --git a/meta-selftest/recipes-test/devtool/devtool-upgrade-test4_1.5.3.bb b/meta-selftest/recipes-test/devtool/devtool-upgrade-test4_1.5.3.bb index 9abf80e6ed..71c03653f7 100644 --- a/meta-selftest/recipes-test/devtool/devtool-upgrade-test4_1.5.3.bb +++ b/meta-selftest/recipes-test/devtool/devtool-upgrade-test4_1.5.3.bb | |||
@@ -14,7 +14,7 @@ SRC_URI[sha512sum] = "32efe7071a363f547afc74e96774f711795edda1d2702823a347d0f995 | |||
14 | 14 | ||
15 | PR = "r5" | 15 | PR = "r5" |
16 | 16 | ||
17 | S = "${WORKDIR}/pv-${PV}" | 17 | S = "${UNPACKDIR}/pv-${PV}" |
18 | 18 | ||
19 | EXCLUDE_FROM_WORLD = "1" | 19 | EXCLUDE_FROM_WORLD = "1" |
20 | 20 | ||
diff --git a/meta-selftest/recipes-test/devtool/devtool-upgrade-test4_1.5.3.bb.upgraded b/meta-selftest/recipes-test/devtool/devtool-upgrade-test4_1.5.3.bb.upgraded index cd2a0842f4..0bc9f71da6 100644 --- a/meta-selftest/recipes-test/devtool/devtool-upgrade-test4_1.5.3.bb.upgraded +++ b/meta-selftest/recipes-test/devtool/devtool-upgrade-test4_1.5.3.bb.upgraded | |||
@@ -11,7 +11,7 @@ SRC_URI[sha256sum] = "9dd45391806b0ed215abee4c5ac1597d018c386fe9c1f5afd2f6bc3b07 | |||
11 | SRC_URI[sha384sum] = "218c8d2d097aeba5310be759bc20573f18ffa0b11701eac6dd2e7e14ddf13c6e0e094ca7ca026eaa05ef92a056402e36" | 11 | SRC_URI[sha384sum] = "218c8d2d097aeba5310be759bc20573f18ffa0b11701eac6dd2e7e14ddf13c6e0e094ca7ca026eaa05ef92a056402e36" |
12 | SRC_URI[sha512sum] = "1cf9d7376fceefcd594d0a8b591afc8e11ce89f7210d10ad74438974ecebe9cc5d9ec4db9cc79e0566bfd2b0278c0cc263c07547803e7536432cd1ffd32d8a45" | 12 | SRC_URI[sha512sum] = "1cf9d7376fceefcd594d0a8b591afc8e11ce89f7210d10ad74438974ecebe9cc5d9ec4db9cc79e0566bfd2b0278c0cc263c07547803e7536432cd1ffd32d8a45" |
13 | 13 | ||
14 | S = "${WORKDIR}/pv-${PV}" | 14 | S = "${UNPACKDIR}/pv-${PV}" |
15 | 15 | ||
16 | EXCLUDE_FROM_WORLD = "1" | 16 | EXCLUDE_FROM_WORLD = "1" |
17 | 17 | ||
diff --git a/meta-selftest/recipes-test/ext-dtb/bbb-dtbs-as-ext.bb b/meta-selftest/recipes-test/ext-dtb/bbb-dtbs-as-ext.bb new file mode 100644 index 0000000000..5055d03e54 --- /dev/null +++ b/meta-selftest/recipes-test/ext-dtb/bbb-dtbs-as-ext.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "Boeaglebone Devicetrees" | ||
2 | DESCRIPTION = "Handle the dtc files of the beaglebone-yocto via devicetree.bbclass just for testing purpose" | ||
3 | SECTION = "kernel" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
6 | |||
7 | inherit devicetree | ||
8 | |||
9 | COMPATIBLE_MACHINE = "^(beaglebone-yocto)$" | ||
10 | |||
11 | # Take a copy of a small devicetree from the kernel's source directory for handling it externally | ||
12 | # Borrowed an example DTB overlay from | ||
13 | # https://raw.githubusercontent.com/beagleboard/linux/refs/heads/5.10/arch/arm/boot/dts/overlays/BBORG_RELAY-00A2.dts | ||
14 | SRC_URI = "\ | ||
15 | file://am335x-bonegreen-ext.dts \ | ||
16 | file://BBORG_RELAY-00A2.dts \ | ||
17 | " | ||
18 | |||
19 | # The am335x-bonegreen-ext.dts needs also the ti directories | ||
20 | DT_INCLUDE:append = " ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts/ti/omap" | ||
21 | |||
22 | # Sym-links are handled as extra configuration nodes in FIT images. | ||
23 | do_install:append() { | ||
24 | ln -sf am335x-bonegreen-ext.dtb "${D}/boot/devicetree/am335x-bonegreen-ext-alias.dtb" | ||
25 | } | ||
26 | |||
27 | do_deploy:append() { | ||
28 | ln -sf am335x-bonegreen-ext.dtb "${DEPLOYDIR}/devicetree/am335x-bonegreen-ext-alias.dtb" | ||
29 | } | ||
diff --git a/meta-selftest/recipes-test/ext-dtb/files/BBORG_RELAY-00A2.dts b/meta-selftest/recipes-test/ext-dtb/files/BBORG_RELAY-00A2.dts new file mode 100644 index 0000000000..9530fa50fe --- /dev/null +++ b/meta-selftest/recipes-test/ext-dtb/files/BBORG_RELAY-00A2.dts | |||
@@ -0,0 +1,49 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
2 | /* | ||
3 | * Copyright (C) 2015 Robert Nelson <robertcnelson@gmail.com> | ||
4 | * Copyright (C) 2019 Amilcar Lucas <amilcar.lucas@iav.de> | ||
5 | */ | ||
6 | |||
7 | /dts-v1/; | ||
8 | /plugin/; | ||
9 | |||
10 | &{/chosen} { | ||
11 | overlays { | ||
12 | BBORG_RELAY-00A2.kernel = __TIMESTAMP__; | ||
13 | }; | ||
14 | }; | ||
15 | |||
16 | &ocp { | ||
17 | P9_41_pinmux { pinctrl-0 = <&P9_41_gpio_pin>;}; | ||
18 | P9_42_pinmux { pinctrl-0 = <&P9_42_gpio_pin>;}; | ||
19 | P9_30_pinmux { pinctrl-0 = <&P9_30_gpio_pin>;}; | ||
20 | P9_27_pinmux { pinctrl-0 = <&P9_27_gpio_pin>;}; | ||
21 | }; | ||
22 | |||
23 | // relay1 | ||
24 | &bone_led_P9_41 { | ||
25 | status = "okay"; | ||
26 | label = "relay1"; | ||
27 | default-state = "keep"; | ||
28 | }; | ||
29 | |||
30 | // relay2 | ||
31 | &bone_led_P9_42 { | ||
32 | status = "okay"; | ||
33 | label = "relay2"; | ||
34 | default-state = "keep"; | ||
35 | }; | ||
36 | |||
37 | // realy3 | ||
38 | &bone_led_P9_30 { | ||
39 | status = "okay"; | ||
40 | label = "relay3"; | ||
41 | default-state = "keep"; | ||
42 | }; | ||
43 | |||
44 | // realy4 | ||
45 | &bone_led_P9_27 { | ||
46 | status = "okay"; | ||
47 | label = "relay4"; | ||
48 | default-state = "keep"; | ||
49 | }; | ||
diff --git a/meta-selftest/recipes-test/ext-dtb/files/am335x-bonegreen-ext.dts b/meta-selftest/recipes-test/ext-dtb/files/am335x-bonegreen-ext.dts new file mode 100644 index 0000000000..a0b39337a9 --- /dev/null +++ b/meta-selftest/recipes-test/ext-dtb/files/am335x-bonegreen-ext.dts | |||
@@ -0,0 +1,14 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | ||
2 | /* | ||
3 | * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ | ||
4 | */ | ||
5 | /dts-v1/; | ||
6 | |||
7 | #include "am33xx.dtsi" | ||
8 | #include "am335x-bone-common.dtsi" | ||
9 | #include "am335x-bonegreen-common.dtsi" | ||
10 | |||
11 | / { | ||
12 | model = "TI AM335x BeagleBone Green External"; | ||
13 | compatible = "ti,am335x-bone-green", "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx"; | ||
14 | }; | ||
diff --git a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb index a897966608..240ed473cc 100644 --- a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb +++ b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb | |||
@@ -6,12 +6,14 @@ DEPENDS = "libgfortran" | |||
6 | 6 | ||
7 | SRC_URI = "file://hello.f95" | 7 | SRC_URI = "file://hello.f95" |
8 | 8 | ||
9 | S = "${UNPACKDIR}" | ||
10 | |||
9 | # These set flags that Fortran doesn't support | 11 | # These set flags that Fortran doesn't support |
10 | SECURITY_CFLAGS = "" | 12 | SECURITY_CFLAGS = "" |
11 | SECURITY_LDFLAGS = "" | 13 | SECURITY_LDFLAGS = "" |
12 | 14 | ||
13 | do_compile() { | 15 | do_compile() { |
14 | ${FC} ${LDFLAGS} ${UNPACKDIR}/hello.f95 -o ${B}/fortran-hello | 16 | ${FC} ${LDFLAGS} hello.f95 -o ${B}/fortran-hello |
15 | } | 17 | } |
16 | 18 | ||
17 | do_install() { | 19 | do_install() { |
diff --git a/meta-selftest/recipes-test/git-submodule-test/git-submodule-test.bb b/meta-selftest/recipes-test/git-submodule-test/git-submodule-test.bb index 90d9b66b2c..1c0886dcbe 100644 --- a/meta-selftest/recipes-test/git-submodule-test/git-submodule-test.bb +++ b/meta-selftest/recipes-test/git-submodule-test/git-submodule-test.bb | |||
@@ -10,8 +10,6 @@ UPSTREAM_VERSION_UNKNOWN = "1" | |||
10 | SRC_URI = "gitsm://git.yoctoproject.org/git-submodule-test;branch=master" | 10 | SRC_URI = "gitsm://git.yoctoproject.org/git-submodule-test;branch=master" |
11 | SRCREV = "a2885dd7d25380d23627e7544b7bbb55014b16ee" | 11 | SRCREV = "a2885dd7d25380d23627e7544b7bbb55014b16ee" |
12 | 12 | ||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | do_test_git_as_user() { | 13 | do_test_git_as_user() { |
16 | cd ${S} | 14 | cd ${S} |
17 | git status | 15 | git status |
diff --git a/meta-selftest/recipes-test/gitrepotest/gitrepotest.bb b/meta-selftest/recipes-test/gitrepotest/gitrepotest.bb index f1b6c55833..756c01cb09 100644 --- a/meta-selftest/recipes-test/gitrepotest/gitrepotest.bb +++ b/meta-selftest/recipes-test/gitrepotest/gitrepotest.bb | |||
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | |||
5 | 5 | ||
6 | INHIBIT_DEFAULT_DEPS = "1" | 6 | INHIBIT_DEFAULT_DEPS = "1" |
7 | 7 | ||
8 | PATCHTOOL="git" | 8 | PATCHTOOL = "git" |
9 | 9 | ||
10 | SRC_URI = "git://git.yoctoproject.org/git/matchbox-panel-2;branch=master;protocol=https \ | 10 | SRC_URI = "git://git.yoctoproject.org/git/matchbox-panel-2;branch=master;protocol=https \ |
11 | file://0001-testpatch.patch \ | 11 | file://0001-testpatch.patch \ |
@@ -13,4 +13,3 @@ SRC_URI = "git://git.yoctoproject.org/git/matchbox-panel-2;branch=master;protoco | |||
13 | 13 | ||
14 | SRCREV = "f82ca3f42510fb3ef10f598b393eb373a2c34ca7" | 14 | SRCREV = "f82ca3f42510fb3ef10f598b393eb373a2c34ca7" |
15 | 15 | ||
16 | S = "${WORKDIR}/git" | ||
diff --git a/meta-selftest/recipes-test/gitrepotest/gitrepotest/0001-testpatch.patch b/meta-selftest/recipes-test/gitrepotest/gitrepotest/0001-testpatch.patch index bccda17ee9..4f8b745995 100644 --- a/meta-selftest/recipes-test/gitrepotest/gitrepotest/0001-testpatch.patch +++ b/meta-selftest/recipes-test/gitrepotest/gitrepotest/0001-testpatch.patch | |||
@@ -1,3 +1,5 @@ | |||
1 | Upstream-Status: Inappropriate [Test artefact] | ||
2 | |||
1 | diff --git a/Makefile.am b/Makefile.am | 3 | diff --git a/Makefile.am b/Makefile.am |
2 | index 432a9b4..bbf7c74 100644 | 4 | index 432a9b4..bbf7c74 100644 |
3 | --- a/Makefile.am | 5 | --- a/Makefile.am |
diff --git a/meta-selftest/recipes-test/gitunpackoffline/gitunpackoffline.inc b/meta-selftest/recipes-test/gitunpackoffline/gitunpackoffline.inc index 602e895199..59b383800c 100644 --- a/meta-selftest/recipes-test/gitunpackoffline/gitunpackoffline.inc +++ b/meta-selftest/recipes-test/gitunpackoffline/gitunpackoffline.inc | |||
@@ -13,4 +13,3 @@ SRC_URI:append:gitunpack-enable-recipe = ";tag=${TAGVALUE}" | |||
13 | SRCREV = "f82ca3f42510fb3ef10f598b393eb373a2c34ca7" | 13 | SRCREV = "f82ca3f42510fb3ef10f598b393eb373a2c34ca7" |
14 | SRCREV:gitunpack-enable-recipe = "" | 14 | SRCREV:gitunpack-enable-recipe = "" |
15 | 15 | ||
16 | S = "${WORKDIR}/git" | ||
diff --git a/meta-selftest/recipes-test/images/oe-selftest-image.bb b/meta-selftest/recipes-test/images/oe-selftest-image.bb index 317a0712aa..0eb4057209 100644 --- a/meta-selftest/recipes-test/images/oe-selftest-image.bb +++ b/meta-selftest/recipes-test/images/oe-selftest-image.bb | |||
@@ -2,7 +2,7 @@ SUMMARY = "An image used during oe-selftest tests" | |||
2 | 2 | ||
3 | # libudev is needed for deploy mdadm via devtool | 3 | # libudev is needed for deploy mdadm via devtool |
4 | IMAGE_INSTALL = "packagegroup-core-boot packagegroup-core-ssh-dropbear libudev" | 4 | IMAGE_INSTALL = "packagegroup-core-boot packagegroup-core-ssh-dropbear libudev" |
5 | IMAGE_FEATURES = "debug-tweaks" | 5 | IMAGE_FEATURES = "allow-empty-password empty-root-password allow-root-login" |
6 | 6 | ||
7 | IMAGE_LINGUAS = " " | 7 | IMAGE_LINGUAS = " " |
8 | 8 | ||
diff --git a/meta-selftest/recipes-test/images/wic-image-minimal.bb b/meta-selftest/recipes-test/images/wic-image-minimal.bb index 84d3721885..89843d9b3c 100644 --- a/meta-selftest/recipes-test/images/wic-image-minimal.bb +++ b/meta-selftest/recipes-test/images/wic-image-minimal.bb | |||
@@ -16,3 +16,5 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384 | |||
16 | IMAGE_ROOTFS_EXTRA_SPACE = "2000" | 16 | IMAGE_ROOTFS_EXTRA_SPACE = "2000" |
17 | 17 | ||
18 | inherit image | 18 | inherit image |
19 | |||
20 | include test_recipe.inc | ||
diff --git a/meta-selftest/recipes-test/images/wic-image-minimal.wks b/meta-selftest/recipes-test/images/wic-image-minimal.wks index ae69cb6e3c..4186b16517 100644 --- a/meta-selftest/recipes-test/images/wic-image-minimal.wks +++ b/meta-selftest/recipes-test/images/wic-image-minimal.wks | |||
@@ -2,7 +2,7 @@ | |||
2 | # long-description: This image contains boot partition and 3 rootfs partitions | 2 | # long-description: This image contains boot partition and 3 rootfs partitions |
3 | # created from core-image-minimal and wic-image-minimal image recipes. | 3 | # created from core-image-minimal and wic-image-minimal image recipes. |
4 | 4 | ||
5 | part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024 | 5 | part /boot --source bootimg_pcbios --ondisk sda --label boot --active --align 1024 |
6 | part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid | 6 | part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid |
7 | part /media --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext4 --label uuid-test --align 1024 --use-uuid --fsuuid 2c71ef06-a81d-4735-9d3a-379b69c6bdba | 7 | part /media --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext4 --label uuid-test --align 1024 --use-uuid --fsuuid 2c71ef06-a81d-4735-9d3a-379b69c6bdba |
8 | part /mnt --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext4 --label core --align 1024 | 8 | part /mnt --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext4 --label core --align 1024 |
diff --git a/meta-selftest/recipes-test/man-db/files/0001-Test-patch-here.patch b/meta-selftest/recipes-test/man-db/files/0001-Test-patch-here.patch index b1d5eab2b8..7df224e5c8 100644 --- a/meta-selftest/recipes-test/man-db/files/0001-Test-patch-here.patch +++ b/meta-selftest/recipes-test/man-db/files/0001-Test-patch-here.patch | |||
@@ -4,6 +4,8 @@ Date: Fri, 9 Feb 2018 17:37:48 +0200 | |||
4 | Subject: [PATCH] Test patch here! | 4 | Subject: [PATCH] Test patch here! |
5 | 5 | ||
6 | This is an invalid patch used by oe-selftest | 6 | This is an invalid patch used by oe-selftest |
7 | |||
8 | Upstream-Status: Inappropriate [Test artefact] | ||
7 | --- | 9 | --- |
8 | README | 1 + | 10 | README | 1 + |
9 | 1 file changed, 1 insertion(+) | 11 | 1 file changed, 1 insertion(+) |
diff --git a/meta-selftest/recipes-test/poison/poison.bb b/meta-selftest/recipes-test/poison/poison.bb index e9eee0cdba..771113acf3 100644 --- a/meta-selftest/recipes-test/poison/poison.bb +++ b/meta-selftest/recipes-test/poison/poison.bb | |||
@@ -8,13 +8,25 @@ inherit nopackages | |||
8 | # This test confirms that compiling code that searches /usr/include for headers | 8 | # This test confirms that compiling code that searches /usr/include for headers |
9 | # will result in compiler errors. This recipe should will fail to build and | 9 | # will result in compiler errors. This recipe should will fail to build and |
10 | # oe-selftest has a test that verifies that. | 10 | # oe-selftest has a test that verifies that. |
11 | do_compile() { | 11 | python do_compile() { |
12 | bbnote Testing preprocessor | 12 | import subprocess |
13 | echo "int main(int argc, char** argv) {}" | ${CPP} -I/usr/include - | 13 | |
14 | bbnote Testing C compiler | 14 | tests = { |
15 | echo "int main(int argc, char** argv) {}" | ${CC} -x c -I/usr/include - | 15 | "Preprocessor": "${CPP} -I/usr/include -", |
16 | bbnote Testing C++ compiler | 16 | "C Compiler": "${CC} -I/usr/include -x c -", |
17 | echo "int main(int argc, char** argv) {}" | ${CC} -x c++ -I/usr/include - | 17 | "C++ Compiler": "${CXX} -I/usr/include -x c++ -", |
18 | } | ||
19 | |||
20 | for name, cmd in tests.items(): | ||
21 | cmd = d.expand(cmd) | ||
22 | bb.note("Test command: " + cmd) | ||
23 | testcode = "int main(int argc, char** argv) {}" | ||
24 | proc = subprocess.run(cmd, shell=True, input=testcode, capture_output=True, text=True) | ||
25 | |||
26 | if proc.returncode != 0 and "is unsafe for cross-compilation" in proc.stderr: | ||
27 | bb.note(f"{name} passed: {proc.stderr}") | ||
28 | else: | ||
29 | bb.error(f"{name} is not poisoned. Exit status {proc.returncode}, output: {proc.stdout} {proc.stderr}") | ||
18 | } | 30 | } |
19 | 31 | ||
20 | EXCLUDE_FROM_WORLD = "1" | 32 | EXCLUDE_FROM_WORLD = "1" |
diff --git a/meta-selftest/recipes-test/recipetool/files/add-file.patch b/meta-selftest/recipes-test/recipetool/files/add-file.patch index bdc99c94f0..cb43cc629d 100644 --- a/meta-selftest/recipes-test/recipetool/files/add-file.patch +++ b/meta-selftest/recipes-test/recipetool/files/add-file.patch | |||
@@ -1,3 +1,5 @@ | |||
1 | Upstream-Status: Inappropriate [Test artefact] | ||
2 | |||
1 | diff --git a/file2 b/file2 | 3 | diff --git a/file2 b/file2 |
2 | new file mode 100644 | 4 | new file mode 100644 |
3 | index 0000000..049b42e | 5 | index 0000000..049b42e |
diff --git a/meta-selftest/recipes-test/recipeutils/recipeutils-test_1.2.bb b/meta-selftest/recipes-test/recipeutils/recipeutils-test_1.2.bb index ad9f475d15..dfaf67c938 100644 --- a/meta-selftest/recipes-test/recipeutils/recipeutils-test_1.2.bb +++ b/meta-selftest/recipes-test/recipeutils/recipeutils-test_1.2.bb | |||
@@ -3,9 +3,11 @@ SUMMARY = "Test recipe for recipeutils.patch_recipe()" | |||
3 | require recipeutils-test.inc | 3 | require recipeutils-test.inc |
4 | 4 | ||
5 | LICENSE = "HPND" | 5 | LICENSE = "HPND" |
6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/somefile;md5=d41d8cd98f00b204e9800998ecf8427e" | 6 | LIC_FILES_CHKSUM = "file://${UNPACKDIR}/somefile;md5=d41d8cd98f00b204e9800998ecf8427e" |
7 | DEPENDS += "zlib" | 7 | DEPENDS += "zlib" |
8 | 8 | ||
9 | S = "${UNPACKDIR}" | ||
10 | |||
9 | BBCLASSEXTEND = "native nativesdk" | 11 | BBCLASSEXTEND = "native nativesdk" |
10 | 12 | ||
11 | SRC_URI += "file://somefile" | 13 | SRC_URI += "file://somefile" |
diff --git a/meta-selftest/recipes-test/selftest-chown/selftest-chown.bb b/meta-selftest/recipes-test/selftest-chown/selftest-chown.bb index aa6ce0c2a0..ca22e1e19c 100644 --- a/meta-selftest/recipes-test/selftest-chown/selftest-chown.bb +++ b/meta-selftest/recipes-test/selftest-chown/selftest-chown.bb | |||
@@ -5,7 +5,7 @@ LICENSE = "MIT" | |||
5 | 5 | ||
6 | DEPENDS += "coreutils-native" | 6 | DEPENDS += "coreutils-native" |
7 | 7 | ||
8 | S = "${WORKDIR}" | 8 | S = "${UNPACKDIR}" |
9 | 9 | ||
10 | inherit useradd allarch | 10 | inherit useradd allarch |
11 | 11 | ||
diff --git a/meta-selftest/recipes-test/selftest-ed/selftest-ed_0.5.bb b/meta-selftest/recipes-test/selftest-ed/selftest-ed_0.5.bb deleted file mode 100644 index 1a140a532f..0000000000 --- a/meta-selftest/recipes-test/selftest-ed/selftest-ed_0.5.bb +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | SUMMARY = "Line-oriented text editor -- selftest GPL-2.0-or-later version" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/ed/" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "GPL-2.0-or-later" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=6ddd5335ef96fb858a138230af773710 \ | ||
6 | file://main.c;beginline=1;endline=17;md5=36d4b85e5ae9028e918d1cc775c2475e" | ||
7 | |||
8 | SRC_URI = "${SAVANNAH_GNU_MIRROR}/ed/ed-${PV}.tar.bz2" | ||
9 | |||
10 | SRC_URI[md5sum] = "4ee21e9dcc9b5b6012c23038734e1632" | ||
11 | SRC_URI[sha256sum] = "edef2bbde0fbf0d88232782a0eded323f483a0519d6fde9a3b1809056fd35f3e" | ||
12 | |||
13 | inherit autotools texinfo | ||
14 | |||
15 | S = "${WORKDIR}/ed-${PV}" | ||
16 | |||
17 | EXTRA_OECONF = "'CC=${CC}' 'CXX=${CXX}' 'CFLAGS=${CFLAGS}' 'CXXFLAGS=${CXXFLAGS}' 'CPPFLAGS=${CPPFLAGS}' 'LDFLAGS=${LDFLAGS}'" | ||
18 | |||
19 | CONFIGUREOPTS:remove = "--disable-dependency-tracking" | ||
20 | CONFIGUREOPTS:remove = "--disable-silent-rules" | ||
21 | EXTRA_OECONF:remove = "--disable-static" | ||
22 | |||
23 | BBCLASSEXTEND = "native" | ||
diff --git a/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.14.1.bb b/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.14.1.bb deleted file mode 100644 index b92740de32..0000000000 --- a/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.14.1.bb +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | SUMMARY = "Line-oriented text editor -- selftest variant" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/ed/" | ||
3 | |||
4 | LICENSE = "GPL-3.0-or-later" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=0c7051aef9219dc7237f206c5c4179a7 \ | ||
6 | file://ed.h;endline=20;md5=4e36b7a40e137f42aee718165590d125 \ | ||
7 | file://main.c;endline=17;md5=c5b8f78f115df187af76868a2aead16a" | ||
8 | |||
9 | SECTION = "base" | ||
10 | |||
11 | # LSB states that ed should be in /bin/ | ||
12 | bindir = "${base_bindir}" | ||
13 | |||
14 | SRC_URI = "${GNU_MIRROR}/ed/ed-${PV}.tar.lz" | ||
15 | RECIPE_NO_UPDATE_REASON = "This recipe is used in selftest and shouldn't be updated otherwise" | ||
16 | |||
17 | SRC_URI[md5sum] = "7f4a54fa7f366479f03654b8af645fd0" | ||
18 | SRC_URI[sha256sum] = "ffb97eb8f2a2b5a71a9b97e3872adce953aa1b8958e04c5b7bf11d556f32552a" | ||
19 | |||
20 | S = "${WORKDIR}/ed-${PV}" | ||
21 | |||
22 | EXTRA_OEMAKE = "-e MAKEFLAGS=" | ||
23 | |||
24 | inherit texinfo | ||
25 | |||
26 | do_configure() { | ||
27 | ${S}/configure | ||
28 | } | ||
29 | |||
30 | do_install() { | ||
31 | oe_runmake 'DESTDIR=${D}' install | ||
32 | # Info dir listing isn't interesting at this point so remove it if it exists. | ||
33 | if [ -e "${D}${infodir}/dir" ]; then | ||
34 | rm -f ${D}${infodir}/dir | ||
35 | fi | ||
36 | } | ||
37 | |||
38 | BBCLASSEXTEND = "native" | ||
diff --git a/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.20.2.bb b/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.20.2.bb new file mode 100644 index 0000000000..e183d2d4e5 --- /dev/null +++ b/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.20.2.bb | |||
@@ -0,0 +1,44 @@ | |||
1 | SUMMARY = "Line-oriented text editor" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/ed/" | ||
3 | DESCRIPTION = "GNU ed is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files, both interactively and via shell scripts. A restricted version of ed, red, can only edit files in the current directory and cannot execute shell commands." | ||
4 | |||
5 | LICENSE = "GPL-2.0-only" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=76d6e300ffd8fb9d18bd9b136a9bba13 \ | ||
7 | file://ed.h;endline=20;md5=c3212b6c53b09668107420af9368c0ef \ | ||
8 | file://main.c;endline=17;md5=e5d2ae5ddd1ecb87dc71702c06dd06dc \ | ||
9 | " | ||
10 | |||
11 | SECTION = "base" | ||
12 | |||
13 | CVE_PRODUCT = "gnu:ed" | ||
14 | |||
15 | # LSB states that ed should be in /bin/ | ||
16 | bindir = "${base_bindir}" | ||
17 | |||
18 | # Upstream regularly removes previous releases from https://ftp.gnu.org/gnu/ed/ | ||
19 | SRC_URI = "${GNU_MIRROR}/ed/ed-${PV}.tar.lz" | ||
20 | UPSTREAM_CHECK_URI = "${GNU_MIRROR}/ed/" | ||
21 | |||
22 | SRC_URI[sha256sum] = "65fec7318f48c2ca17f334ac0f4703defe62037bb13cc23920de077b5fa24523" | ||
23 | |||
24 | S = "${UNPACKDIR}/ed-${PV}" | ||
25 | |||
26 | EXTRA_OEMAKE = "-e MAKEFLAGS=" | ||
27 | |||
28 | # for gcc 15 true/false change | ||
29 | CFLAGS += "-std=gnu17" | ||
30 | |||
31 | inherit texinfo | ||
32 | |||
33 | do_configure() { | ||
34 | ${S}/configure | ||
35 | } | ||
36 | |||
37 | do_install() { | ||
38 | oe_runmake 'DESTDIR=${D}' install | ||
39 | # Info dir listing isn't interesting at this point so remove it if it exists. | ||
40 | if [ -e "${D}${infodir}/dir" ]; then | ||
41 | rm -f ${D}${infodir}/dir | ||
42 | fi | ||
43 | } | ||
44 | BBCLASSEXTEND = "native" | ||
diff --git a/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.21.1.bb b/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.21.1.bb new file mode 100644 index 0000000000..6b8ce6e23b --- /dev/null +++ b/meta-selftest/recipes-test/selftest-ed/selftest-ed_1.21.1.bb | |||
@@ -0,0 +1,42 @@ | |||
1 | SUMMARY = "Line-oriented text editor" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/ed/" | ||
3 | DESCRIPTION = "GNU ed is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files, both interactively and via shell scripts. A restricted version of ed, red, can only edit files in the current directory and cannot execute shell commands." | ||
4 | |||
5 | LICENSE = "GPL-2.0-only" | ||
6 | LICENSE:gplv3test = "GPL-3.0-or-later" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=cca7f74ec83b7a9ce7ccd195aad471bd \ | ||
8 | file://ed.h;endline=20;md5=a24e7f91c0fb83e65a746f5994762a49 \ | ||
9 | file://main.c;endline=17;md5=fd6ad9f1853f123f4ae7a31d59761f09 \ | ||
10 | " | ||
11 | |||
12 | SECTION = "base" | ||
13 | |||
14 | CVE_PRODUCT = "gnu:ed" | ||
15 | |||
16 | # LSB states that ed should be in /bin/ | ||
17 | bindir = "${base_bindir}" | ||
18 | |||
19 | # Upstream regularly removes previous releases from https://ftp.gnu.org/gnu/ed/ | ||
20 | SRC_URI = "${GNU_MIRROR}/ed/ed-${PV}.tar.lz" | ||
21 | UPSTREAM_CHECK_URI = "${GNU_MIRROR}/ed/" | ||
22 | |||
23 | SRC_URI[sha256sum] = "d6d0c7192b02b0519c902a93719053e865ade5a784a3b327d93d888457b23c4b" | ||
24 | |||
25 | S = "${UNPACKDIR}/ed-${PV}" | ||
26 | |||
27 | EXTRA_OEMAKE = "-e MAKEFLAGS=" | ||
28 | |||
29 | inherit texinfo | ||
30 | |||
31 | do_configure() { | ||
32 | ${S}/configure | ||
33 | } | ||
34 | |||
35 | do_install() { | ||
36 | oe_runmake 'DESTDIR=${D}' install | ||
37 | # Info dir listing isn't interesting at this point so remove it if it exists. | ||
38 | if [ -e "${D}${infodir}/dir" ]; then | ||
39 | rm -f ${D}${infodir}/dir | ||
40 | fi | ||
41 | } | ||
42 | BBCLASSEXTEND = "native" | ||
diff --git a/meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb b/meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb index 49c3fe827a..8b2aa6c737 100644 --- a/meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb +++ b/meta-selftest/recipes-test/selftest-hardlink/selftest-hardlink.bb | |||
@@ -6,10 +6,13 @@ SRC_URI = "file://hello.c \ | |||
6 | file://gdb.sh \ | 6 | file://gdb.sh \ |
7 | " | 7 | " |
8 | 8 | ||
9 | S = "${WORKDIR}" | 9 | S = "${UNPACKDIR}" |
10 | 10 | ||
11 | do_compile () { | 11 | do_compile () { |
12 | ${CC} hello.c -o hello1 ${CFLAGS} ${LDFLAGS} | 12 | ${CC} hello.c -o hello1 ${CFLAGS} ${LDFLAGS} |
13 | |||
14 | ${CC} hello.c -c -o hello.o ${CFLAGS} | ||
15 | ${AR} rcs libhello.a hello.o | ||
13 | } | 16 | } |
14 | 17 | ||
15 | do_install () { | 18 | do_install () { |
@@ -22,9 +25,19 @@ do_install () { | |||
22 | ln ${D}${bindir}/hello1 ${D}${libexecdir}/hello3 | 25 | ln ${D}${bindir}/hello1 ${D}${libexecdir}/hello3 |
23 | ln ${D}${bindir}/hello1 ${D}${libexecdir}/hello4 | 26 | ln ${D}${bindir}/hello1 ${D}${libexecdir}/hello4 |
24 | 27 | ||
28 | # We need so many hardlink copies to look for specific race conditions | ||
29 | install -d ${D}${libdir} | ||
30 | install -m 0644 libhello.a ${D}${libdir} | ||
31 | for num in `seq 1 100` ; do | ||
32 | ln ${D}${libdir}/libhello.a ${D}${libdir}/libhello-${num}.a | ||
33 | done | ||
34 | |||
25 | dd if=/dev/zero of=${D}${bindir}/sparsetest bs=1 count=0 seek=1M | 35 | dd if=/dev/zero of=${D}${bindir}/sparsetest bs=1 count=0 seek=1M |
26 | } | 36 | } |
27 | 37 | ||
28 | RDEPENDS:${PN}-gdb += "gdb" | 38 | RDEPENDS:${PN}-gdb += "gdb" |
29 | PACKAGES =+ "${PN}-gdb" | 39 | PACKAGES =+ "${PN}-gdb" |
30 | FILES:${PN}-gdb = "${bindir}/gdb.sh" | 40 | FILES:${PN}-gdb = "${bindir}/gdb.sh" |
41 | |||
42 | PACKAGE_STRIP_STATIC = "1" | ||
43 | PACKAGE_DEBUG_STATIC_SPLIT = "1" | ||
diff --git a/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb b/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb index 547587bef4..0ffe7308ba 100644 --- a/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb +++ b/meta-selftest/recipes-test/selftest-hello/selftest-hello_1.0.bb | |||
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda | |||
5 | 5 | ||
6 | SRC_URI = "file://helloworld.c" | 6 | SRC_URI = "file://helloworld.c" |
7 | 7 | ||
8 | S = "${WORKDIR}" | 8 | S = "${UNPACKDIR}" |
9 | 9 | ||
10 | do_compile() { | 10 | do_compile() { |
11 | ${CC} ${CFLAGS} ${LDFLAGS} helloworld.c -o helloworld | 11 | ${CC} ${CFLAGS} ${LDFLAGS} helloworld.c -o helloworld |
@@ -16,4 +16,4 @@ do_install() { | |||
16 | install -m 0755 helloworld ${D}${bindir} | 16 | install -m 0755 helloworld ${D}${bindir} |
17 | } | 17 | } |
18 | 18 | ||
19 | BBCLASSEXTEND = "native nativesdk" \ No newline at end of file | 19 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta-selftest/recipes-test/selftest-users/acreategroup.bb b/meta-selftest/recipes-test/selftest-users/acreategroup.bb index 66ed5695a2..07771ecf40 100644 --- a/meta-selftest/recipes-test/selftest-users/acreategroup.bb +++ b/meta-selftest/recipes-test/selftest-users/acreategroup.bb | |||
@@ -3,9 +3,9 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda | |||
3 | 3 | ||
4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
5 | 5 | ||
6 | S = "${WORKDIR}" | 6 | S = "${UNPACKDIR}" |
7 | 7 | ||
8 | EXCLUDE_FROM_WORLD="1" | 8 | EXCLUDE_FROM_WORLD = "1" |
9 | 9 | ||
10 | inherit useradd allarch | 10 | inherit useradd allarch |
11 | 11 | ||
diff --git a/meta-selftest/recipes-test/selftest-users/bcreategroup.bb b/meta-selftest/recipes-test/selftest-users/bcreategroup.bb index c4844dd0da..0071fcc331 100644 --- a/meta-selftest/recipes-test/selftest-users/bcreategroup.bb +++ b/meta-selftest/recipes-test/selftest-users/bcreategroup.bb | |||
@@ -7,9 +7,9 @@ LICENSE = "MIT" | |||
7 | 7 | ||
8 | USERADD_DEPENDS = "acreategroup ccreategroup" | 8 | USERADD_DEPENDS = "acreategroup ccreategroup" |
9 | 9 | ||
10 | S = "${WORKDIR}" | 10 | S = "${UNPACKDIR}" |
11 | 11 | ||
12 | EXCLUDE_FROM_WORLD="1" | 12 | EXCLUDE_FROM_WORLD = "1" |
13 | 13 | ||
14 | inherit useradd allarch | 14 | inherit useradd allarch |
15 | 15 | ||
diff --git a/meta-selftest/recipes-test/selftest-users/ccreategroup.bb b/meta-selftest/recipes-test/selftest-users/ccreategroup.bb index 021b1ebbf7..1685916630 100644 --- a/meta-selftest/recipes-test/selftest-users/ccreategroup.bb +++ b/meta-selftest/recipes-test/selftest-users/ccreategroup.bb | |||
@@ -5,9 +5,9 @@ LICENSE = "MIT" | |||
5 | 5 | ||
6 | USERADD_DEPENDS = "acreategroup" | 6 | USERADD_DEPENDS = "acreategroup" |
7 | 7 | ||
8 | S = "${WORKDIR}" | 8 | S = "${UNPACKDIR}" |
9 | 9 | ||
10 | EXCLUDE_FROM_WORLD="1" | 10 | EXCLUDE_FROM_WORLD = "1" |
11 | 11 | ||
12 | inherit useradd allarch | 12 | inherit useradd allarch |
13 | 13 | ||
diff --git a/meta-selftest/recipes-test/selftest-users/creategroup1.bb b/meta-selftest/recipes-test/selftest-users/creategroup1.bb index afd23ed1ee..28651d3ed7 100644 --- a/meta-selftest/recipes-test/selftest-users/creategroup1.bb +++ b/meta-selftest/recipes-test/selftest-users/creategroup1.bb | |||
@@ -3,7 +3,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda | |||
3 | 3 | ||
4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
5 | 5 | ||
6 | S = "${WORKDIR}" | 6 | S = "${UNPACKDIR}" |
7 | 7 | ||
8 | inherit useradd allarch | 8 | inherit useradd allarch |
9 | 9 | ||
diff --git a/meta-selftest/recipes-test/selftest-users/creategroup2.bb b/meta-selftest/recipes-test/selftest-users/creategroup2.bb index f776f43aed..2840c92106 100644 --- a/meta-selftest/recipes-test/selftest-users/creategroup2.bb +++ b/meta-selftest/recipes-test/selftest-users/creategroup2.bb | |||
@@ -5,7 +5,7 @@ LICENSE = "MIT" | |||
5 | 5 | ||
6 | USERADD_DEPENDS = "creategroup1" | 6 | USERADD_DEPENDS = "creategroup1" |
7 | 7 | ||
8 | S = "${WORKDIR}" | 8 | S = "${UNPACKDIR}" |
9 | 9 | ||
10 | inherit useradd allarch | 10 | inherit useradd allarch |
11 | 11 | ||
diff --git a/meta-selftest/recipes-test/selftest-users/dcreategroup.bb b/meta-selftest/recipes-test/selftest-users/dcreategroup.bb index b96ca92a16..eba91fe63d 100644 --- a/meta-selftest/recipes-test/selftest-users/dcreategroup.bb +++ b/meta-selftest/recipes-test/selftest-users/dcreategroup.bb | |||
@@ -5,9 +5,9 @@ LICENSE = "MIT" | |||
5 | 5 | ||
6 | USERADD_DEPENDS = "bcreategroup" | 6 | USERADD_DEPENDS = "bcreategroup" |
7 | 7 | ||
8 | S = "${WORKDIR}" | 8 | S = "${UNPACKDIR}" |
9 | 9 | ||
10 | EXCLUDE_FROM_WORLD="1" | 10 | EXCLUDE_FROM_WORLD = "1" |
11 | 11 | ||
12 | inherit useradd allarch | 12 | inherit useradd allarch |
13 | 13 | ||
diff --git a/meta-selftest/recipes-test/selftest-users/useraddbadtask.bb b/meta-selftest/recipes-test/selftest-users/useraddbadtask.bb index 99e04a80b3..7ba7ec85fe 100644 --- a/meta-selftest/recipes-test/selftest-users/useraddbadtask.bb +++ b/meta-selftest/recipes-test/selftest-users/useraddbadtask.bb | |||
@@ -5,7 +5,7 @@ LICENSE = "MIT" | |||
5 | 5 | ||
6 | DEPENDS:append = "coreutils-native" | 6 | DEPENDS:append = "coreutils-native" |
7 | 7 | ||
8 | S = "${WORKDIR}" | 8 | S = "${UNPACKDIR}" |
9 | 9 | ||
10 | inherit useradd allarch | 10 | inherit useradd allarch |
11 | 11 | ||
diff --git a/meta-selftest/recipes-test/testrpm/testrpm_0.0.1.bb b/meta-selftest/recipes-test/testrpm/testrpm_0.0.1.bb index 5e8761ab55..17ab7af0ab 100644 --- a/meta-selftest/recipes-test/testrpm/testrpm_0.0.1.bb +++ b/meta-selftest/recipes-test/testrpm/testrpm_0.0.1.bb | |||
@@ -6,6 +6,8 @@ LICENSE = "MIT" | |||
6 | SRC_URI = "file://testfile.txt" | 6 | SRC_URI = "file://testfile.txt" |
7 | INHIBIT_DEFAULT_DEPS = "1" | 7 | INHIBIT_DEFAULT_DEPS = "1" |
8 | 8 | ||
9 | S = "${UNPACKDIR}" | ||
10 | |||
9 | do_compile(){ | 11 | do_compile(){ |
10 | echo "testdata" > ${B}/"file with [brackets].txt" | 12 | echo "testdata" > ${B}/"file with [brackets].txt" |
11 | echo "testdata" > ${B}/"file with (parentheses).txt" | 13 | echo "testdata" > ${B}/"file with (parentheses).txt" |
diff --git a/meta-selftest/wic/overlayfs_etc.wks.in b/meta-selftest/wic/overlayfs_etc.wks.in index 066cd35b15..8375d73a9c 100644 --- a/meta-selftest/wic/overlayfs_etc.wks.in +++ b/meta-selftest/wic/overlayfs_etc.wks.in | |||
@@ -1,4 +1,4 @@ | |||
1 | part /boot --active --source bootimg-biosplusefi --ondisk sda --sourceparams="loader=grub-efi" --align 1024 | 1 | part /boot --active --source bootimg_biosplusefi --ondisk sda --sourceparams="loader=grub-efi" --align 1024 |
2 | part / --source rootfs --ondisk sda --fstype=${OVERLAYFS_ROOTFS_TYPE} --use-uuid --align 1024 | 2 | part / --source rootfs --ondisk sda --fstype=${OVERLAYFS_ROOTFS_TYPE} --use-uuid --align 1024 |
3 | part --ondisk sda --fstype=ext4 --size=5 --align 1024 | 3 | part --ondisk sda --fstype=ext4 --size=5 --align 1024 |
4 | bootloader --ptable gpt --timeout=1 --append="rootfstype=${OVERLAYFS_ROOTFS_TYPE} console=ttyS0,115200 console=tty0 ${OVERLAYFS_INIT_OPTION}" | 4 | bootloader --ptable gpt --timeout=1 --append="rootfstype=${OVERLAYFS_ROOTFS_TYPE} console=ttyS0,115200 console=tty0 ${OVERLAYFS_INIT_OPTION}" |
diff --git a/meta-selftest/wic/test_biosplusefi_plugin.wks b/meta-selftest/wic/test_biosplusefi_plugin.wks index 5a56c84518..4be6643a6f 100644 --- a/meta-selftest/wic/test_biosplusefi_plugin.wks +++ b/meta-selftest/wic/test_biosplusefi_plugin.wks | |||
@@ -1,6 +1,6 @@ | |||
1 | # short-description: This file is used in oe-selftest wic module to test biosplusefi plugin | 1 | # short-description: This file is used in oe-selftest wic module to test biosplusefi plugin |
2 | 2 | ||
3 | part /boot --source bootimg-biosplusefi --sourceparams="loader=grub-efi" --active --align 1024 --use-uuid | 3 | part /boot --source bootimg_biosplusefi --sourceparams="loader=grub-efi" --active --align 1024 --use-uuid |
4 | part / --source rootfs --fstype=ext4 --align 1024 --use-uuid | 4 | part / --source rootfs --fstype=ext4 --align 1024 --use-uuid |
5 | 5 | ||
6 | bootloader --timeout=0 --append="console=ttyS0,115200n8" | 6 | bootloader --timeout=0 --append="console=ttyS0,115200n8" |
diff --git a/meta-selftest/wic/test_efi_plugin.wks b/meta-selftest/wic/test_efi_plugin.wks index 1603d6c4bb..f75e0f0e0b 100644 --- a/meta-selftest/wic/test_efi_plugin.wks +++ b/meta-selftest/wic/test_efi_plugin.wks | |||
@@ -1,6 +1,5 @@ | |||
1 | # short-description: This file is used in oe-selftest wic module to test efi plugin | 1 | # short-description: This file is used in oe-selftest wic module to test efi plugin |
2 | 2 | part /boot --source bootimg_efi --sourceparams="loader=systemd-boot" --active --align 1024 --use-uuid | |
3 | part /boot --source bootimg-efi --sourceparams="loader=systemd-boot,create-unified-kernel-image=true,initrd=${INITRAMFS_IMAGE}-${MACHINE}.${INITRAMFS_FSTYPES}" --active --align 1024 --use-uuid | 3 | part / --source rootfs --fstype=ext4 --align 1024 --use-uuid --label root |
4 | part / --source rootfs --fstype=ext4 --align 1024 --use-uuid | ||
5 | 4 | ||
6 | bootloader --timeout=0 --append="console=ttyS0,115200n8" | 5 | bootloader --timeout=0 --append="console=ttyS0,115200n8" |
diff --git a/meta-selftest/wic/test_efi_plugin_plain_systemd-boot.wks b/meta-selftest/wic/test_efi_plugin_plain_systemd-boot.wks new file mode 100644 index 0000000000..3a58c8137c --- /dev/null +++ b/meta-selftest/wic/test_efi_plugin_plain_systemd-boot.wks | |||
@@ -0,0 +1,5 @@ | |||
1 | # short-description: This file is used in oe-selftest wic module to test efi plugin | ||
2 | part /boot --source bootimg_efi --sourceparams="loader=systemd-boot,initrd=${INITRAMFS_IMAGE}-${MACHINE}.${INITRAMFS_FSTYPES}" --active --align 1024 --use-uuid | ||
3 | part / --source rootfs --fstype=ext4 --align 1024 --use-uuid | ||
4 | |||
5 | bootloader --timeout=0 | ||
diff --git a/meta-selftest/wic/test_rawcopy_plugin.wks.in b/meta-selftest/wic/test_rawcopy_plugin.wks.in index a865dd1d32..ba324d9980 100644 --- a/meta-selftest/wic/test_rawcopy_plugin.wks.in +++ b/meta-selftest/wic/test_rawcopy_plugin.wks.in | |||
@@ -1,6 +1,6 @@ | |||
1 | # short-description: This file is used in oe-selftest wic module to test rawcopy plugin | 1 | # short-description: This file is used in oe-selftest wic module to test rawcopy plugin |
2 | 2 | ||
3 | part /boot --active --source bootimg-pcbios | 3 | part /boot --active --source bootimg_pcbios |
4 | part / --source rawcopy --sourceparams="file=${IMAGE_LINK_NAME_CORE_IMAGE_MINIMAL}.ext4" --use-uuid | 4 | part / --source rawcopy --sourceparams="file=${IMAGE_LINK_NAME_CORE_IMAGE_MINIMAL}.ext4" --use-uuid |
5 | 5 | ||
6 | bootloader --timeout=0 --append="console=ttyS0,115200n8" | 6 | bootloader --timeout=0 --append="console=ttyS0,115200n8" |
diff --git a/meta-selftest/wic/test_uefikernel.wks b/meta-selftest/wic/test_uefikernel.wks index bede2288f6..9bc4813dfa 100644 --- a/meta-selftest/wic/test_uefikernel.wks +++ b/meta-selftest/wic/test_uefikernel.wks | |||
@@ -1,5 +1,5 @@ | |||
1 | # short-description: This file is used in oe-selftest wic module to test uefi-kernel loader | 1 | # short-description: This file is used in oe-selftest wic module to test uefi-kernel loader |
2 | 2 | ||
3 | part /boot --source bootimg-efi --sourceparams="loader=uefi-kernel" | 3 | part /boot --source bootimg_efi --sourceparams="loader=uefi-kernel" |
4 | part / --source rootfs --fstype=ext4 --align 1024 --use-uuid | 4 | part / --source rootfs --fstype=ext4 --align 1024 --use-uuid |
5 | 5 | ||