Skip to content

Commit

Permalink
config/lava: download and build uname-os.c and use it
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
gctucker committed Jan 18, 2024
1 parent d31ee94 commit 66eb1aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/lava/uname/uname.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66eb1aa

Please sign in to comment.