NetworkManager/src/platform/tests
Thomas Haller 697b9864df platform/tests: adjust probabilities for generating randomized rules
The routing-rule tests generate a number of routing rules and tries to
add and delete them.

For that, _rule_create_random() sets random fields of the rule.
Note that especially interesting are rules that leave most fields
unset (at zero), because they trigger kernel issues rh#1686075 and
rh#1685816.

But a rule has many fields, so in order to generate rules that have most
fields unset, we need to use low probabilities when rolling the dice for
setting a field. Otherwise, most rules end up with several fields set
and don't reproduce the kernel issue (especially the test failed to hit
rh#1686075).
2019-03-15 09:18:17 +01:00
..
.gitignore platform: add nmp-object.h file 2015-06-17 11:23:51 +02:00
meson.build Revert "build/meson: name platform tests like autotools" 2019-02-23 07:40:03 +01:00
monitor.c platform/tests: drop bad comment 2017-12-11 10:30:25 +01:00
test-address.c docs: misc. typos 2018-09-15 09:08:03 +02:00
test-cleanup.c platform: merge NMPlatformError with nm-error 2018-12-27 21:33:59 +01:00
test-common.c all: replace strerror() calls with nm_strerror_native() 2019-02-12 08:50:28 +01:00
test-common.h platform/tests: add tests for handling policy routing rules 2019-03-13 09:03:59 +01:00
test-general.c platform: attach WifiData to NMPObject 2018-06-26 16:21:54 +02:00
test-link.c platform: add peer_flags argument to nm_platform_link_wireguard_change() 2019-02-14 08:00:29 +01:00
test-nmp-object.c platform: add NMPlatformObjWithIfindex helper structure for handling NMPObject types 2019-03-13 09:03:59 +01:00
test-route.c platform/tests: adjust probabilities for generating randomized rules 2019-03-15 09:18:17 +01:00