From 6c8fe83bb5d1aaa11307253e8ab33c2d7f1a4a3f Mon Sep 17 00:00:00 2001 From: Thomas Roos Date: Wed, 17 May 2023 14:13:53 +0200 Subject: oeqa: adding selftest-hello and use it to speed up tests Adding a selftest version of hello world to run it in tests where no download is necessary. Also using this in several tests to speed them up. Using the -native version wherever possible will also speed up tests a lot. [YOCTO #11142] (From OE-Core rev: c3f26b63934888df0e3cd563c1c2804eb78a368e) Signed-off-by: Thomas Roos Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta-selftest/recipes-test/selftest-hello/files/helloworld.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 meta-selftest/recipes-test/selftest-hello/files/helloworld.c (limited to 'meta-selftest/recipes-test/selftest-hello/files/helloworld.c') diff --git a/meta-selftest/recipes-test/selftest-hello/files/helloworld.c b/meta-selftest/recipes-test/selftest-hello/files/helloworld.c new file mode 100644 index 0000000000..fc7169b7b8 --- /dev/null +++ b/meta-selftest/recipes-test/selftest-hello/files/helloworld.c @@ -0,0 +1,8 @@ +#include + +int main(void) +{ + printf("Hello world!\n"); + + return 0; +} -- cgit v1.2.3-54-g00ecf