forked from kernel-patches/vmtest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
47 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
# This file is sourced by libbpf/ci/run-vmtest Github Action scripts. | ||
# | ||
# The primary reason it exists is that assembling ALLOWLIST and | ||
# DENYLIST for a particular test run is not a trivial operation. | ||
# | ||
# Users of libbpf/ci/run-vmtest action need to be able to specify a | ||
# list of allow/denylist **files**, that later has to be correctly | ||
# merged into a single allow/denylist passed to a test runner. | ||
# | ||
# Obviously it's perferrable for the scripts merging many lists into | ||
# one to be reusable, and not copy-pasted between repositories which | ||
# use libbpf/ci actions. And specifying the lists should be trivial. | ||
# This file is a solution to that. | ||
|
||
ALLOWLIST_FILES=( | ||
"${SELFTESTS_BPF}/ALLOWLIST" | ||
"${SELFTESTS_BPF}/ALLOWLIST.${ARCH}" | ||
"${VMTEST_CONFIGS}/ALLOWLIST" | ||
"${VMTEST_CONFIGS}/ALLOWLIST.${ARCH}" | ||
"${VMTEST_CONFIGS}/ALLOWLIST.${DEPLOYMENT}" | ||
"${VMTEST_CONFIGS}/ALLOWLIST.${KERNEL_TEST}" | ||
) | ||
|
||
DENYLIST_FILES=( | ||
"${SELFTESTS_BPF}/DENYLIST" | ||
"${SELFTESTS_BPF}/DENYLIST.${ARCH}" | ||
"${VMTEST_CONFIGS}/DENYLIST" | ||
"${VMTEST_CONFIGS}/DENYLIST.${ARCH}" | ||
"${VMTEST_CONFIGS}/DENYLIST.${DEPLOYMENT}" | ||
"${VMTEST_CONFIGS}/DENYLIST.${KERNEL_TEST}" | ||
) | ||
|
||
# Export pipe-separated strings, because bash doesn't support array export | ||
export SELFTESTS_BPF_ALLOWLIST_FILES=$(IFS="|"; echo "${ALLOWLIST_FILES[*]}") | ||
export SELFTESTS_BPF_DENYLIST_FILES=$(IFS="|"; echo "${DENYLIST_FILES[*]}") | ||
|