From 66eb1aab440157747d458e088610a1764b983441 Mon Sep 17 00:00:00 2001 From: Guillaume Tucker Date: Thu, 5 Aug 2021 11:27:47 +0100 Subject: [PATCH] config/lava: download and build uname-os.c and use it Add some inline steps to install wget and gcc at runtime, then download uname-os.c and build it. Add a test case which runs it, so now we have uname-os-shell for the shell version and uname-os-c for the C version of the same test. Signed-off-by: Guillaume Tucker --- config/lava/uname/uname.jinja2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/lava/uname/uname.jinja2 b/config/lava/uname/uname.jinja2 index 9d5b7b7393..2a1e6ce65b 100644 --- a/config/lava/uname/uname.jinja2 +++ b/config/lava/uname/uname.jinja2 @@ -13,7 +13,12 @@ - functional run: steps: - - lava-test-case uname-os --shell '[ $(uname -o) = "GNU/Linux" ]' + - apt update + - apt install -y wget gcc + - wget https://raw.githubusercontent.com/kernelci/kernelci-core/how-to/config/lava/uname/uname-os.c + - gcc -o uname-os uname-os.c + - lava-test-case uname-os-shell --shell '[ $(uname -o) = "GNU/Linux" ]' + - lava-test-case uname-os-c --shell './uname-os' from: inline name: {{ plan }} path: inline/{{ plan }}.yaml