From b0df39edd79ec620df6e00fa132fde9558fc95b2 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 8 Mar 2021 18:01:52 +0000 Subject: oeqa/selftest: add test to verify that poisoned sysroots are detected Add a recipe that explicitly searches /usr/include, and use that in oe-selftest to verify that host include paths are correctly causing build failures. (From OE-Core rev: b3e3eba796b843021b264f0e98dc30f983775d58) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/buildoptions.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meta') diff --git a/meta/lib/oeqa/selftest/cases/buildoptions.py b/meta/lib/oeqa/selftest/cases/buildoptions.py index 3495bee986..20fe8ed8f6 100644 --- a/meta/lib/oeqa/selftest/cases/buildoptions.py +++ b/meta/lib/oeqa/selftest/cases/buildoptions.py @@ -197,3 +197,9 @@ PREMIRRORS = "\\ bitbake("world --runall fetch") + +class Poisoning(OESelftestTestCase): + def test_poisoning(self): + res = bitbake("poison", ignore_status=True) + self.assertNotEqual(res.status, 0) + self.assertTrue("is unsafe for cross-compilation" in res.output) -- cgit v1.2.3-54-g00ecf