diff mbox series

[1/5] binutils-testsuite: run tests in the testsuite directory

Message ID 20251204161820.1339988-1-ross.burton@arm.com
State New
Headers show
Series [1/5] binutils-testsuite: run tests in the testsuite directory | expand

Commit Message

Ross Burton Dec. 4, 2025, 4:18 p.m. UTC
The tests expect to be ran inside the testsuite directory, which means
some tests fail because files cannot be found.

This fixes the tests:

    ptestresult.binutils-gas.DWARF5 .loc 0
    ptestresult.binutils-gas.DWARF5 dir[0]

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb b/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb
index e5e159bc718..fe6b8c6f404 100644
--- a/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb
+++ b/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb
@@ -61,7 +61,7 @@  python check_prepare() {
         return "\n".join(content)
 
     for i in ["binutils", "gas", "ld"]:
-        builddir = os.path.join(d.getVar("B"), i)
+        builddir = os.path.join(d.getVar("B"), i, "testsuite")
         if not os.path.isdir(builddir):
             os.makedirs(builddir)
         with open(os.path.join(builddir, "site.exp"), "w") as f:
@@ -70,13 +70,13 @@  python check_prepare() {
 
 CHECK_TARGETS ??= "binutils gas ld"
 
-do_check[dirs] = "${B} ${B}/binutils ${B}/gas ${B}/ld"
+do_check[dirs] = "${B} ${B}/binutils/testsuite ${B}/gas/testsuite ${B}/ld/testsuite"
 do_check[prefuncs] += "check_prepare"
 do_check[nostamp] = "1"
 do_check() {
     export LC_ALL=C
     for i in ${CHECK_TARGETS}; do
-        (cd ${B}/$i; runtest \
+        (cd ${B}/$i/testsuite; runtest \
             --tool $i \
             --srcdir ${S}/$i/testsuite \
             --ignore 'plugin.exp' \