mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-05 08:09:07 +08:00
ci: add vmtest as a reusable workflow
Signed-off-by: Ihor Solodrai <ihor.solodrai@pm.me>
This commit is contained in:
committed by
Andrii Nakryiko
parent
dcf6ad6c70
commit
e0687f9f54
12
ci/vmtest/prepare-selftests-LATEST.sh
Executable file
12
ci/vmtest/prepare-selftests-LATEST.sh
Executable 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
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user