selftests/livepatch: more verification in test-klp-shadow-vars
authorYannick Cote <ycote@redhat.com>
Wed, 3 Jun 2020 18:20:57 +0000 (14:20 -0400)
committerPetr Mladek <pmladek@suse.com>
Mon, 8 Jun 2020 08:54:29 +0000 (10:54 +0200)
commit76efe6da89d8320e9ba65cebe0b3bcb6e5c29b31
tree6771640be50b23b46694a36ffbad0b435e60d027
parent6a26a9df169d81aba244d6496e4381401d04e281
selftests/livepatch: more verification in test-klp-shadow-vars

This change makes the test feel more familiar with narrowing to a
typical usage by operating on a number of identical structure instances
and populating the same two new shadow variables symmetrically while
keeping the same testing and verification criteria for the extra
variables.

Signed-off-by: Yannick Cote <ycote@redhat.com>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20200603182058.109470-4-ycote@redhat.com
lib/livepatch/test_klp_shadow_vars.c
tools/testing/selftests/livepatch/test-shadow-vars.sh