Skip to content

Commit

Permalink
ci: run test_progs-cpuv4 flavor
Browse files Browse the repository at this point in the history
Add test_progs-cpuv4 flavor to the matrix, if LLVM is new enough.

Signed-off-by: Andrii Nakryiko <[email protected]>
  • Loading branch information
anakryiko committed Dec 11, 2023
1 parent e1133cb commit 4f7b46b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def get_tests(config):
"test_maps",
"test_verifier",
]
if int(config.get("llvm-version", 0)) >= 18:
tests.append("test_progs_cpuv4")
if config.get("parallel_tests", False):
return tests
return [test for test in tests if not test.endswith("parallel")]
Expand Down
5 changes: 5 additions & 0 deletions ci/vmtest/run_selftests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ test_progs_no_alu32_parallel() {
test_progs_helper "-no_alu32" "-j"
}
test_progs_cpuv4() {
test_progs_helper "-cpuv4" ""
}
test_maps() {
foldable start test_maps "Testing test_maps"
taskset 0xF ./test_maps && true
Expand Down Expand Up @@ -179,6 +183,7 @@ read_test_names "$@"
if [ ${#TEST_NAMES[@]} -eq 0 ]; then
test_progs
test_progs_no_alu32
test_progs_cpuv4
test_maps
test_verifier
else
Expand Down

0 comments on commit 4f7b46b

Please sign in to comment.