diff options
author | Marc Brooks <IDisposable@gmail.com> | 2023-05-10 17:48:00 -0500 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-05-18 17:18:10 +1000 |
commit | 831ef5347253a9381c2ab6bd3ca74cbe10995939 (patch) | |
tree | 6409af018ebb7314294c9bf1d940733bd8fcb2c6 /test | |
parent | 219db5e43c4f030a1c9c4a2f28249fd89b05ea0d (diff) |
Add support for --version and synonyms
Just like --help is explicitly supported, we should support --version.
This will greatly ease people adopting openssl.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20936)
Diffstat (limited to 'test')
-rw-r--r-- | test/recipes/20-test_app.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/recipes/20-test_app.t b/test/recipes/20-test_app.t index be79b37750..2560b20fc4 100644 --- a/test/recipes/20-test_app.t +++ b/test/recipes/20-test_app.t @@ -13,7 +13,7 @@ use OpenSSL::Test; setup("test_app"); -plan tests => 5; +plan tests => 7; ok(run(app(["openssl"])), "Run openssl app with no args"); @@ -29,3 +29,9 @@ ok(run(app(["openssl", "-help"])), ok(run(app(["openssl", "--help"])), "Run openssl app with --help"); + +ok(run(app(["openssl", "-version"])), + "Run openssl app with -version"); + +ok(run(app(["openssl", "--version"])), + "Run openssl app with --version"); |