Skip to content

Commit

Permalink
Add config option for installing evp_test
Browse files Browse the repository at this point in the history
  • Loading branch information
xhanulik committed Sep 20, 2023
1 parent 7251b2e commit eba7103
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Configure
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ my @disablables = (
"gost",
"http",
"idea",
"install-evp-test",
"ktls",
"legacy",
"loadereng",
Expand Down Expand Up @@ -568,6 +569,7 @@ our %disabled = ( # "what" => "comment"
"external-tests" => "default",
"fuzz-afl" => "default",
"fuzz-libfuzzer" => "default",
"install-evp-test" => "default",
"ktls" => "default",
"md2" => "default",
"msan" => "default",
Expand Down Expand Up @@ -655,7 +657,7 @@ my @disable_cascades = (

"stdio" => [ "apps", "capieng", "egd" ],
"apps" => [ "tests" ],
"tests" => [ "external-tests" ],
"tests" => [ "external-tests", "install-evp-test" ],
"comp" => [ "zlib", "brotli", "zstd" ],
"sm3" => [ "sm2" ],
sub { !$disabled{"unit-test"} } => [ "heartbeats" ],
Expand Down
4 changes: 4 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,10 @@ tests also use the command line applications, the tests will also be skipped.

Don't build test programs or run any tests.

### enable-install-evp-test

Install `evp_test` tests as separate tool.

### enable-tfo

Build with support for TCP Fast Open (RFC7413). Supported on Linux, macOS and FreeBSD.
Expand Down
8 changes: 7 additions & 1 deletion test/build.info
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ IF[{- !$disabled{tests} -}]
INCLUDE[libtestutil.a]=../include ../apps/include ..
DEPEND[libtestutil.a]=../libcrypto

IF[{- !$disabled{install-tests} -}]
PROGRAMS=evp_test
ELSE
PROGRAMS{noinst}=evp_test
ENDIF

PROGRAMS{noinst}= \
confdump \
versions \
Expand All @@ -38,7 +44,7 @@ IF[{- !$disabled{tests} -}]
ecstresstest gmdifftest pbelutest \
destest mdc2test sha_test \
exptest pbetest localetest evp_pkey_ctx_new_from_name \
evp_pkey_provided_test evp_test evp_extra_test evp_extra_test2 \
evp_pkey_provided_test evp_extra_test evp_extra_test2 \
evp_fetch_prov_test evp_libctx_test ossl_store_test \
v3nametest v3ext punycode_test \
crltest danetest bad_dtls_test lhash_test sparse_array_test \
Expand Down

0 comments on commit eba7103

Please sign in to comment.