selftests/bpf: convert test_cgrp2_attach2 example into kselftest
Convert test_cgrp2_attach2 example into a proper test_cgroup_attach kselftest. It's better because we do run kselftest on a constant basis, so there are better chances to spot a potential regression. Also make it slightly less verbose to conform kselftests output style. Output example: $ ./test_cgroup_attach #override:PASS #multi:PASS test_cgroup_attach:PASS Signed-off-by:Roman Gushchin <guro@fb.com> Acked-by:
Yonghong Song <yhs@fb.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org>
Showing
- samples/bpf/Makefile 0 additions, 2 deletionssamples/bpf/Makefile
- tools/testing/selftests/bpf/.gitignore 1 addition, 0 deletionstools/testing/selftests/bpf/.gitignore
- tools/testing/selftests/bpf/Makefile 2 additions, 1 deletiontools/testing/selftests/bpf/Makefile
- tools/testing/selftests/bpf/test_cgroup_attach.c 33 additions, 17 deletionstools/testing/selftests/bpf/test_cgroup_attach.c
Loading
Please register or sign in to comment