diff options
author | Tomas Mraz <tomas@openssl.org> | 2024-10-24 16:06:16 +0200 |
---|---|---|
committer | Todd Short <todd.short@me.com> | 2024-10-28 20:53:31 +0100 |
commit | c60a2b1830a53f511c48432b43e3aa46edebdd3d (patch) | |
tree | 8fdf66f470434c603e9dfcbf8c92d69f83b5dd9b /test | |
parent | Fix builds on riscv64 using musl (diff) | |
download | openssl-c60a2b1830a53f511c48432b43e3aa46edebdd3d.tar.xz openssl-c60a2b1830a53f511c48432b43e3aa46edebdd3d.zip |
test_speed: Explicitly test the crashing command line on sparc
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/25792)
Diffstat (limited to 'test')
-rw-r--r-- | test/recipes/20-test_speed.t | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/recipes/20-test_speed.t b/test/recipes/20-test_speed.t index aa6146a97c..3c3c5fab5f 100644 --- a/test/recipes/20-test_speed.t +++ b/test/recipes/20-test_speed.t @@ -17,7 +17,7 @@ use OpenSSL::Test::Utils; setup("test_speed"); -plan tests => 24; +plan tests => 25; ok(run(app(['openssl', 'speed', '-testmode'])), "Simple test of all speed algorithms"); @@ -102,10 +102,15 @@ SKIP: { #We don't expect these options to have an effect in testmode but we at least #test that the option parsing works ok -ok(run(app(['openssl', 'speed', '-testmode', '-seconds', 1, '-bytes', 1, +ok(run(app(['openssl', 'speed', '-testmode', '-seconds', 1, '-bytes', 16, '-elapsed'])), "Test the seconds, bytes and elapsed options"); +#Test that this won't crash on sparc +ok(run(app(['openssl', 'speed', '-testmode', '-seconds', 1, '-bytes', 1, + 'aes-128-cbc'])), + "Test that bad bytes value doesn't make speed to crash"); + #No need to -testmode for testing -help. All we're doing is testing the option #parsing. We don't sanity check the output ok(run(app(['openssl', 'speed', '-help'])), |