diff options
-rw-r--r-- | meta/classes-recipe/testexport.bbclass | 43 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-15.1.inc | 1 | ||||
-rw-r--r-- | meta/recipes-multimedia/libpng/libpng_1.6.48.bb (renamed from meta/recipes-multimedia/libpng/libpng_1.6.49.bb) | 2 | ||||
-rwxr-xr-x | scripts/oe-test | 12 |
4 files changed, 27 insertions, 31 deletions
diff --git a/meta/classes-recipe/testexport.bbclass b/meta/classes-recipe/testexport.bbclass index 3005fc0dfa..2da5dbcb6b 100644 --- a/meta/classes-recipe/testexport.bbclass +++ b/meta/classes-recipe/testexport.bbclass | |||
@@ -85,7 +85,6 @@ def copy_needed_files(d, tc): | |||
85 | 85 | ||
86 | export_path = d.getVar('TEST_EXPORT_DIR') | 86 | export_path = d.getVar('TEST_EXPORT_DIR') |
87 | corebase_path = d.getVar('COREBASE') | 87 | corebase_path = d.getVar('COREBASE') |
88 | bblayers = d.getVar('BBLAYERS').split() | ||
89 | 88 | ||
90 | # Clean everything before starting | 89 | # Clean everything before starting |
91 | oe.path.remove(export_path) | 90 | oe.path.remove(export_path) |
@@ -93,11 +92,17 @@ def copy_needed_files(d, tc): | |||
93 | 92 | ||
94 | # The source of files to copy are relative to 'COREBASE' directory | 93 | # The source of files to copy are relative to 'COREBASE' directory |
95 | # The destination is relative to 'TEST_EXPORT_DIR' | 94 | # The destination is relative to 'TEST_EXPORT_DIR' |
96 | # core files/dirs first | 95 | # Because we are squashing the libraries, we need to remove |
97 | core_files_to_copy = [ os.path.join('scripts', 'oe-test'), | 96 | # the layer/script directory |
97 | files_to_copy = [ os.path.join('meta', 'lib', 'oeqa', 'core'), | ||
98 | os.path.join('meta', 'lib', 'oeqa', 'runtime'), | ||
99 | os.path.join('meta', 'lib', 'oeqa', 'files'), | ||
100 | os.path.join('meta', 'lib', 'oeqa', 'utils'), | ||
101 | os.path.join('scripts', 'oe-test'), | ||
98 | os.path.join('scripts', 'lib', 'argparse_oe.py'), | 102 | os.path.join('scripts', 'lib', 'argparse_oe.py'), |
99 | os.path.join('scripts', 'lib', 'scriptutils.py'), ] | 103 | os.path.join('scripts', 'lib', 'scriptutils.py'), ] |
100 | for f in core_files_to_copy: | 104 | |
105 | for f in files_to_copy: | ||
101 | src = os.path.join(corebase_path, f) | 106 | src = os.path.join(corebase_path, f) |
102 | dst = os.path.join(export_path, f.split('/', 1)[-1]) | 107 | dst = os.path.join(export_path, f.split('/', 1)[-1]) |
103 | if os.path.isdir(src): | 108 | if os.path.isdir(src): |
@@ -105,21 +110,18 @@ def copy_needed_files(d, tc): | |||
105 | else: | 110 | else: |
106 | shutil.copy2(src, dst) | 111 | shutil.copy2(src, dst) |
107 | 112 | ||
108 | # layer specific files/dirs | 113 | # Remove cases and just copy the ones specified |
109 | layer_files_to_copy = [ os.path.join('lib', 'oeqa', 'core'), | 114 | cases_path = os.path.join(export_path, 'lib', 'oeqa', 'runtime', 'cases') |
110 | os.path.join('lib', 'oeqa', 'runtime'), | 115 | oe.path.remove(cases_path) |
111 | os.path.join('lib', 'oeqa', 'files'), | 116 | bb.utils.mkdirhier(cases_path) |
112 | os.path.join('lib', 'oeqa', 'utils'),] | 117 | test_paths = get_runtime_paths(d) |
113 | for layer in bblayers: | 118 | test_modules = d.getVar('TEST_SUITES').split() |
114 | meta = os.path.basename(layer) | 119 | tc.loadTests(test_paths, modules=test_modules) |
115 | for f in layer_files_to_copy: | 120 | for f in getSuiteCasesFiles(tc.suites): |
116 | src = os.path.join(layer, f) | 121 | shutil.copy2(f, cases_path) |
117 | dst = os.path.join(export_path, meta, f) | 122 | json_file = _get_json_file(f) |
118 | if os.path.exists(src): | 123 | if json_file: |
119 | if os.path.isdir(src): | 124 | shutil.copy2(json_file, cases_path) |
120 | oe.path.copytree(src, dst) | ||
121 | else: | ||
122 | shutil.copy2(src, dst) | ||
123 | 125 | ||
124 | # Copy test data | 126 | # Copy test data |
125 | image_name = ("%s/%s" % (d.getVar('DEPLOY_DIR_IMAGE'), | 127 | image_name = ("%s/%s" % (d.getVar('DEPLOY_DIR_IMAGE'), |
@@ -144,9 +146,6 @@ def copy_needed_files(d, tc): | |||
144 | (image_basename, image_machine_suffix), d.getVar("TEST_EXPORT_DIR")) | 146 | (image_basename, image_machine_suffix), d.getVar("TEST_EXPORT_DIR")) |
145 | 147 | ||
146 | # Copy packages needed for runtime testing | 148 | # Copy packages needed for runtime testing |
147 | test_paths = get_runtime_paths(d) | ||
148 | test_modules = d.getVar('TEST_SUITES').split() | ||
149 | tc.loadTests(test_paths, modules=test_modules) | ||
150 | package_extraction(d, tc.suites) | 149 | package_extraction(d, tc.suites) |
151 | test_pkg_dir = d.getVar("TEST_NEEDED_PACKAGES_DIR") | 150 | test_pkg_dir = d.getVar("TEST_NEEDED_PACKAGES_DIR") |
152 | if os.path.isdir(test_pkg_dir) and os.listdir(test_pkg_dir): | 151 | if os.path.isdir(test_pkg_dir) and os.listdir(test_pkg_dir): |
diff --git a/meta/recipes-devtools/gcc/gcc-15.1.inc b/meta/recipes-devtools/gcc/gcc-15.1.inc index 28fcf9376c..af29db8e5b 100644 --- a/meta/recipes-devtools/gcc/gcc-15.1.inc +++ b/meta/recipes-devtools/gcc/gcc-15.1.inc | |||
@@ -53,6 +53,7 @@ SRC_URI = "${BASEURI} \ | |||
53 | file://0005-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ | 53 | file://0005-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ |
54 | file://0006-cpp-honor-sysroot.patch \ | 54 | file://0006-cpp-honor-sysroot.patch \ |
55 | file://0007-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \ | 55 | file://0007-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \ |
56 | file://0008-libtool.patch \ | ||
56 | file://0009-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \ | 57 | file://0009-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch \ |
57 | file://0010-Use-the-multilib-config-files-from-B-instead-of-usin.patch \ | 58 | file://0010-Use-the-multilib-config-files-from-B-instead-of-usin.patch \ |
58 | file://0011-aarch64-Fix-include-paths-when-S-B.patch \ | 59 | file://0011-aarch64-Fix-include-paths-when-S-B.patch \ |
diff --git a/meta/recipes-multimedia/libpng/libpng_1.6.49.bb b/meta/recipes-multimedia/libpng/libpng_1.6.48.bb index c4af30be80..e603df1edd 100644 --- a/meta/recipes-multimedia/libpng/libpng_1.6.49.bb +++ b/meta/recipes-multimedia/libpng/libpng_1.6.48.bb | |||
@@ -14,7 +14,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}${LIBV}/${BP}.tar.xz \ | |||
14 | file://run-ptest \ | 14 | file://run-ptest \ |
15 | " | 15 | " |
16 | 16 | ||
17 | SRC_URI[sha256sum] = "43182aa48e39d64b1ab4ec6b71ab3e910b67eed3a0fff3777cf8cf40d6ef7024" | 17 | SRC_URI[sha256sum] = "46fd06ff37db1db64c0dc288d78a3f5efd23ad9ac41561193f983e20937ece03" |
18 | 18 | ||
19 | MIRRORS += "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}${LIBV}/ ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}${LIBV}/older-releases/" | 19 | MIRRORS += "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}${LIBV}/ ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}${LIBV}/older-releases/" |
20 | 20 | ||
diff --git a/scripts/oe-test b/scripts/oe-test index efb83c3e78..55985b0b24 100755 --- a/scripts/oe-test +++ b/scripts/oe-test | |||
@@ -7,18 +7,14 @@ | |||
7 | # SPDX-License-Identifier: MIT | 7 | # SPDX-License-Identifier: MIT |
8 | # | 8 | # |
9 | 9 | ||
10 | import argparse | ||
11 | import glob | ||
12 | import logging | ||
13 | import os | 10 | import os |
14 | import sys | 11 | import sys |
12 | import argparse | ||
13 | import logging | ||
15 | 14 | ||
16 | scripts_path = os.path.dirname(os.path.realpath(__file__)) | 15 | scripts_path = os.path.dirname(os.path.realpath(__file__)) |
17 | lib_path = os.path.join(scripts_path, 'lib') | 16 | lib_path = scripts_path + '/lib' |
18 | sys.path.append(lib_path) | 17 | sys.path = sys.path + [lib_path] |
19 | meta_lib_paths = glob.glob(scripts_path + '/*/lib', root_dir=scripts_path, recursive=True) | ||
20 | for p in meta_lib_paths: | ||
21 | sys.path.append(p) | ||
22 | import argparse_oe | 18 | import argparse_oe |
23 | import scriptutils | 19 | import scriptutils |
24 | 20 | ||