criu/test
Abhishek Vijeev 82cd3bb0d0 zdtm: update and refactor tests for BPF array and hash maps
This commit achieves the following:
a) Refactors ZDTM tests bpf_array.c and bpf_hash.c to make use of the
BPF ZDTM library functions. In addition, these tests now verify whether
information obtained from both procfs and BPF_OBJ_GET_INFO_BY_FD are
the same before and after c/r.
b) Updates ZDTM tests bpf_array.c and bpf_hash.c to include a BPF map's
name and also to freeze maps

Source files modified:

* zdtm/static/bpf_array.c
* zdtm/static/bpf_hash.c

Source files added:

* zdtm/static/bpf_array.desc
* zdtm/static/bpf_hash.desc

Note: ${test_name}.desc files have the 'suid' flag set because
BPF_MAP_FREEZE requires the global (root-userns) CAP_SYS_ADMIN or
CAP_BPF. Hence, only test flavors 'h' and 'ns' are executed ('uns'
is skipped) because BPF_MAP_FREEZE can't be used from non-root user
namespaces.

Signed-off-by: Abhishek Vijeev <abhishek.vijeev@gmail.com>
2020-10-20 00:18:24 -07:00
..
compel compel: Provide piegen_opt_t in library 2019-04-20 20:25:26 -07:00
exhaustive py: Reformat everything into pep8 style 2019-09-07 15:59:56 +03:00
inhfd python: sort imports 2020-03-27 19:36:20 +03:00
javaTests Add Socket-based Java Functional Tests 2020-02-04 12:39:44 -08:00
jenkins test/jenkins: use bash to run shell scripts 2020-10-20 00:18:24 -07:00
others pidns: fixup 2020-10-20 00:18:24 -07:00
pki Update certificates for failing tls based tests 2020-06-05 11:37:50 -07:00
zdtm zdtm: update and refactor tests for BPF array and hash maps 2020-10-20 00:18:24 -07:00
.gitignore gitignores: ignore some more generated files 2017-03-15 00:05:55 +03:00
abrt.sh test/abrt: skip core dumps from the seccomp_filter test 2019-04-20 20:25:26 -07:00
check_actions.py test/other: Resolve Py3 compatibility issues 2019-09-07 15:59:56 +03:00
crit-recode.py crit-recode: skip (not try to parse) nftables raw image 2020-03-27 19:36:20 +03:00
empty-netns-prep.sh test: don't use nsenter in tests 2017-05-19 09:17:20 +03:00
groups.desc zdtm.py: Generator of groups of tests 2015-12-08 14:54:41 +03:00
inhfd.desc zdtm.py: Add inhfd tests for --inherit-fd option 2015-10-19 12:42:01 +03:00
Makefile Modify and add test for configuration file functionality 2018-10-30 19:27:52 +03:00
pycriu Adapt zdtm for python3 compatibility 2018-07-09 18:25:16 +03:00
show_action.sh test: Check action scripts to work as we expect 2016-05-06 14:39:25 +03:00
umount2.c zdtm: add a program to umount a test root 2016-09-26 15:42:40 +03:00
zdtm.desc test: Get rid of live directory 2016-02-20 13:40:52 +03:00
zdtm.py zdtm.py: add the cgroup2 freezer support 2020-10-20 00:18:24 -07:00
zdtm_ct.c zdtm_ct: run each test in a new time namespace 2020-04-25 00:43:23 -07:00
zdtm_mount_cgroups tests: prevent zdtm_mount_cgroups from failing w/ EBUSY 2016-02-03 16:25:28 +03:00
zdtm_umount_cgroups zdtm: cleanup zdtmtst and zdtmtst.defaultroot cgroups after finishing test 2018-10-30 19:27:58 +03:00