poky/meta-selftest
Ross Burton 1c5a2c8bcc oeqa/poisoning: fix gcc include poisoning test
The test code in poison was flawed: as long as one CPP/CC/CXX has fatal
poisoning enabled then the test passes.  However, at the moment due to
a bad rebase only CPP has fatal poisoning and CC/CXX do not.

Rewrite the do_compile() task to more carefully check the output so the
test harness itself just has to bitbake the recipe.

Note that this results in the test failing:

  ERROR: poison-1.0-r0 do_compile: C Compiler is not poisoned.
  Exit status 0, output:  cc1: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]
  ERROR: poison-1.0-r0 do_compile: C++ Compiler is not poisoned.
  Exit status 0, output:  cc1plus: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]

(From OE-Core rev: 5b413d1fdb4bdbaec86d630bb52c3ccf68aae789)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-01-22 13:20:29 +00:00
..
classes oeqa/selftest: add a test for bitbake "-e" and "-getvar" difference 2024-11-18 22:09:03 +00:00
conf bbconfigbuild/configfragments.py: set BBPATH in standalone datastore 2025-01-09 16:59:23 +00:00
files selftest/static-group: Add seat 2024-11-28 12:37:12 +00:00
lib oeqa dnf_runtime.py: fix HTTP server IP address and port 2023-09-12 12:37:56 +01:00
recipes-devtools oe-selftest: add RECIPE_UPDATE_EXTRA_TASKS test 2024-06-13 09:11:17 +01:00
recipes-extended selftest: add Upstream-Status to .patch files 2024-06-10 14:27:24 +01:00
recipes-test oeqa/poisoning: fix gcc include poisoning test 2025-01-22 13:20:29 +00:00
wic oeqa selftest wic.py: support UKIs via uki.bbclass 2024-10-25 15:12:22 +01:00
README meta-selftest: create a new test layer to be used by oe-selftest script 2013-12-03 17:45:50 +00:00

This layer is intended as test layer, used by scripts/oe-selftest and it's probably a mistake to include it in your builds (unless you want to run the script).