ci: add vmtest as a reusable workflow

Signed-off-by: Ihor Solodrai <ihor.solodrai@pm.me>
This commit is contained in:
Ihor Solodrai
2024-11-14 11:02:24 -08:00
committed by Andrii Nakryiko
parent dcf6ad6c70
commit e0687f9f54
5 changed files with 159 additions and 25 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/bash
set -euo pipefail
# noop script: it's here as a reminder that we might need it for other kernel versions
# for 4.9.0 and 5.5.0 code was:
# cd "${SELFTESTS_BPF}"
# printf "all:\n\ttouch bpf_testmod.ko\n\nclean:\n" > bpf_testmod/Makefile
# printf "all:\n\ttouch bpf_test_no_cfi.ko\n\nclean:\n" > bpf_test_no_cfi/Makefile
exit 0

View File

@@ -1,8 +0,0 @@
#!/bin/bash
set -euo pipefail
cd "${SELFTESTS_BPF}"
printf "all:\n\ttouch bpf_testmod.ko\n\nclean:\n" > bpf_testmod/Makefile
printf "all:\n\ttouch bpf_test_no_cfi.ko\n\nclean:\n" > bpf_test_no_cfi/Makefile

View File

@@ -36,6 +36,6 @@ if [[ "${KERNEL}" == "5.5.0" ]]; then
echo "KERNEL_TEST=test_progs test_progs_no_alu32" >> $GITHUB_ENV
fi
mkdir "${GITHUB_WORKSPACE}/selftests"
mkdir -p "${GITHUB_WORKSPACE}/selftests"
cp -R "${SELFTESTS_BPF}" "${GITHUB_WORKSPACE}/selftests"