mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
tests: Do not build zlib test when built without
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com> Reviewed-by: Norbert Pocs <norbertpocs0@gmail.com>
This commit is contained in:
@ -333,6 +333,7 @@ static void torture_packet_aes256_gcm(void **state)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WITH_ZLIB
|
||||||
static void torture_packet_compress_zlib(void **state)
|
static void torture_packet_compress_zlib(void **state)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@ -350,6 +351,7 @@ static void torture_packet_compress_zlib_openssh(void **state)
|
|||||||
torture_packet("aes256-ctr", "hmac-sha1", "zlib@openssh.com", i);
|
torture_packet("aes256-ctr", "hmac-sha1", "zlib@openssh.com", i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif /* WITH_ZLIB */
|
||||||
|
|
||||||
int torture_run_tests(void) {
|
int torture_run_tests(void) {
|
||||||
int rc;
|
int rc;
|
||||||
@ -371,8 +373,10 @@ int torture_run_tests(void) {
|
|||||||
cmocka_unit_test(torture_packet_chacha20),
|
cmocka_unit_test(torture_packet_chacha20),
|
||||||
cmocka_unit_test(torture_packet_aes128_gcm),
|
cmocka_unit_test(torture_packet_aes128_gcm),
|
||||||
cmocka_unit_test(torture_packet_aes256_gcm),
|
cmocka_unit_test(torture_packet_aes256_gcm),
|
||||||
|
#ifdef WITH_ZLIB
|
||||||
cmocka_unit_test(torture_packet_compress_zlib),
|
cmocka_unit_test(torture_packet_compress_zlib),
|
||||||
cmocka_unit_test(torture_packet_compress_zlib_openssh),
|
cmocka_unit_test(torture_packet_compress_zlib_openssh),
|
||||||
|
#endif /* WITH_ZLIB */
|
||||||
#ifdef WITH_INSECURE_NONE
|
#ifdef WITH_INSECURE_NONE
|
||||||
cmocka_unit_test(torture_packet_none_sha1),
|
cmocka_unit_test(torture_packet_none_sha1),
|
||||||
cmocka_unit_test(torture_packet_aes128_ctr_none),
|
cmocka_unit_test(torture_packet_aes128_ctr_none),
|
||||||
|
Reference in New Issue
Block a user