You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge: redhat: add all namespace-dependent selftests to kernel-selftests-internal
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1687
redhat: add all namespace-dependent selftests to kernel-selftests-internal
Upstream Status: RHEL-only
ARK commit: b96bc78d0727ac28dae7d21b0930fd76e48f3696
JIRA: https://issues.redhat.com/browse/RHEL-122506
Utilizing the output of the following script:
SORTED_TEST_FILENAMES=$(mktemp)
PATTERNS=(
".*CLONE_NEW.*"
".*setns.*"
".*unshare.*"
".*/proc/.*/ns.*"
)
KERNEL_TREE=${KERNEL_TREE:-/home/jsavitz/src/centos-stream-10}
pushd "$KERNEL_TREE" > /dev/null
for P in "${PATTERNS[@]}"; do
git grep "$P" tools/testing/selftests/ | \
awk -F':' '{print $1}' | \
sed 's/tools\/testing\/selftests\///g' | \
grep -vE "(gitignore|Makefile)"
done | sort | uniq > "$SORTED_TEST_FILENAMES"
for t in $(cat "$SORTED_TEST_FILENAMES"); do
echo "$t"
grep -oE '(CLONE_NEW[[:alpha:]]*|/proc/.*/ns/[[:alpha:]]*)' tools/testing/selftests/"$t"
echo "--"
done | awk -F'\n' -v RS='\n--\n' '{
for (i = 2; i <= NF; i++) {
print $i " " $1
}
}' | sort | uniq
popd > /dev/null
And piping the results into this script:
while read -r tline; do
echo ${tline} | awk -F'/' '
BEGIN {RS=" "}
{if (NR==2) print $1 }
'
done | sort | uniq
I came up with a list of all selftests that have any interaction with
the namespace subsytem.
Add any not already present in kernel-modules-internal to the package.
These tests will be used by CKI to add further targeted testing to the
kernel namespace subsystem.
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
Approved-by: Jan Stancek <jstancek@redhat.com>
Approved-by: Herton R. Krzesinski <herton@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
0 commit comments