diff options
author | Aya Levin <ayal@mellanox.com> | 2019-11-12 14:07:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-12 11:25:44 -0800 |
commit | ff18176ad806ea1a7f5f9b404182f97dbb6f9691 (patch) | |
tree | 27025a2f529304e905e9b2c623c0b84ba19112ad /tools/testing | |
parent | 8fdcd8fb21c054217b5ca5cb627a9a726dba630f (diff) | |
download | linux-ff18176ad806ea1a7f5f9b404182f97dbb6f9691.tar.gz linux-ff18176ad806ea1a7f5f9b404182f97dbb6f9691.tar.bz2 linux-ff18176ad806ea1a7f5f9b404182f97dbb6f9691.zip |
selftests: Add a test of large binary to devlink health test
Add a test of 2 PAGEs size (exceeds devlink previous length limitation)
of binary data on a 'devlink health dump show' command. Set binary length
to 8192, issue a dump show command and clear it.
Signed-off-by: Aya Levin <ayal@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing')
-rwxr-xr-x | tools/testing/selftests/drivers/net/netdevsim/devlink.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/testing/selftests/drivers/net/netdevsim/devlink.sh b/tools/testing/selftests/drivers/net/netdevsim/devlink.sh index 753c5b6abe0a..025a84c2ab5a 100755 --- a/tools/testing/selftests/drivers/net/netdevsim/devlink.sh +++ b/tools/testing/selftests/drivers/net/netdevsim/devlink.sh @@ -431,6 +431,15 @@ dummy_reporter_test() check_reporter_info dummy healthy 3 3 10 true + echo 8192> $DEBUGFS_DIR/health/binary_len + check_fail $? "Failed set dummy reporter binary len to 8192" + + local dump=$(devlink health dump show $DL_HANDLE reporter dummy -j) + check_err $? "Failed show dump of dummy reporter" + + devlink health dump clear $DL_HANDLE reporter dummy + check_err $? "Failed clear dump of dummy reporter" + log_test "dummy reporter test" } |