tests: allow filtering crypto cipher benchmark tests
commite2186a3606bf80a7c1537690626aecd835a7c272
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 15 Oct 2019 10:19:29 +0000 (15 11:19 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 28 Oct 2019 12:30:50 +0000 (28 13:30 +0100)
tree3b0e512c3c920bdbdd73b4c3076cafc90a5bf837
parent187f35512106501fe9a11057f4d8705431e0026d
tests: allow filtering crypto cipher benchmark tests

Add support for specifying a cipher mode and chunk size as argv to
filter which combinations are benchmarked. For example to only
benchmark XTS mode with 512 byte chunks:

  ./tests/benchmark-crypto-cipher xts 512

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/benchmark-crypto-cipher.c