From: Ross Burton Date: Thu, 4 Dec 2025 16:18:16 +0000 (+0000) Subject: binutils-testsuite: run tests in the testsuite directory X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4926e1a49d567b1f86a7b8e69dfcdad896fc7d0a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git binutils-testsuite: run tests in the testsuite directory 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 Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb b/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb index e5e159bc71..fe6b8c6f40 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' \