ci: add a vmtest step for setting up selftests run

Signed-off-by: Ihor Solodrai <ihor.solodrai@pm.me>
This commit is contained in:
Ihor Solodrai
2024-11-06 16:53:58 -08:00
committed by Andrii Nakryiko
parent 779cb2b65b
commit a453ffb7ea
2 changed files with 38 additions and 9 deletions

View File

@@ -8,8 +8,6 @@ source ${THISDIR}/helpers.sh
foldable start prepare_selftests "Building selftests"
LIBBPF_PATH="${REPO_ROOT}"
llvm_latest_version() {
echo "19"
}
@@ -50,11 +48,9 @@ make \
-C "${REPO_ROOT}/${REPO_PATH}/tools/testing/selftests/bpf" \
-j $((4*$(nproc))) > /dev/null
cd -
mkdir ${LIBBPF_PATH}/selftests
mkdir ${GITHUB_WORKSPACE}/selftests
cp -R "${REPO_ROOT}/${REPO_PATH}/tools/testing/selftests/bpf" \
${LIBBPF_PATH}/selftests
cd ${LIBBPF_PATH}
rm selftests/bpf/.gitignore
git add selftests
${GITHUB_WORKSPACE}/selftests
foldable end prepare_selftests