Set selftest verbose flag to boost coverage

This commit is contained in:
Andres AG 2016-09-09 09:10:28 +01:00 committed by Simon Butcher
parent 84c46db746
commit 42547d0cf7
22 changed files with 27 additions and 27 deletions

View file

@ -292,6 +292,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void aes_selftest()
{
TEST_ASSERT( mbedtls_aes_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_aes_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -41,6 +41,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void arc4_selftest()
{
TEST_ASSERT( mbedtls_arc4_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_arc4_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -119,6 +119,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void base64_selftest()
{
TEST_ASSERT( mbedtls_base64_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_base64_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -224,6 +224,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void camellia_selftest()
{
TEST_ASSERT( mbedtls_camellia_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_camellia_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -10,7 +10,7 @@
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST:MBEDTLS_AES_C */
void mbedtls_ccm_self_test( )
{
TEST_ASSERT( mbedtls_ccm_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_ccm_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -216,6 +216,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void ctr_drbg_selftest( )
{
TEST_ASSERT( mbedtls_ctr_drbg_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_ctr_drbg_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -362,6 +362,6 @@ void des_key_parity_run()
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void des_selftest()
{
TEST_ASSERT( mbedtls_des_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_des_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -123,6 +123,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void dhm_selftest()
{
TEST_ASSERT( mbedtls_dhm_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_dhm_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -101,7 +101,7 @@ cleanup:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void ecjpake_selftest()
{
TEST_ASSERT( mbedtls_ecjpake_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_ecjpake_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -507,6 +507,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void ecp_selftest()
{
TEST_ASSERT( mbedtls_ecp_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_ecp_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -380,6 +380,6 @@ void entropy_nv_seed( char *read_seed_str )
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void entropy_selftest( int result )
{
TEST_ASSERT( mbedtls_entropy_self_test( 0 ) == result );
TEST_ASSERT( mbedtls_entropy_self_test( 1 ) == result );
}
/* END_CASE */

View file

@ -119,6 +119,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void gcm_selftest()
{
TEST_ASSERT( mbedtls_gcm_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_gcm_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -314,6 +314,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void hmac_drbg_selftest( )
{
TEST_ASSERT( mbedtls_hmac_drbg_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_hmac_drbg_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -88,27 +88,27 @@ void ripemd160_text( char *text_src_string, char *hex_hash_string )
/* BEGIN_CASE depends_on:MBEDTLS_MD2_C:MBEDTLS_SELF_TEST */
void md2_selftest()
{
TEST_ASSERT( mbedtls_md2_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_md2_self_test( 1 ) == 0 );
}
/* END_CASE */
/* BEGIN_CASE depends_on:MBEDTLS_MD4_C:MBEDTLS_SELF_TEST */
void md4_selftest()
{
TEST_ASSERT( mbedtls_md4_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_md4_self_test( 1 ) == 0 );
}
/* END_CASE */
/* BEGIN_CASE depends_on:MBEDTLS_MD5_C:MBEDTLS_SELF_TEST */
void md5_selftest()
{
TEST_ASSERT( mbedtls_md5_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_md5_self_test( 1 ) == 0 );
}
/* END_CASE */
/* BEGIN_CASE depends_on:MBEDTLS_RIPEMD160_C:MBEDTLS_SELF_TEST */
void ripemd160_selftest()
{
TEST_ASSERT( mbedtls_ripemd160_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_ripemd160_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -25,7 +25,7 @@ static int check_pointer( void *p )
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void mbedtls_memory_buffer_alloc_self_test( )
{
TEST_ASSERT( mbedtls_memory_buffer_alloc_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_memory_buffer_alloc_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -877,6 +877,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void mpi_selftest()
{
TEST_ASSERT( mbedtls_mpi_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_mpi_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -82,6 +82,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void pkcs5_selftest( )
{
TEST_ASSERT( mbedtls_pkcs5_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_pkcs5_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -690,6 +690,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void rsa_selftest()
{
TEST_ASSERT( mbedtls_rsa_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_rsa_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -112,20 +112,20 @@ void mbedtls_sha512(char *hex_src_string, char *hex_hash_string )
/* BEGIN_CASE depends_on:MBEDTLS_SHA1_C:MBEDTLS_SELF_TEST */
void sha1_selftest()
{
TEST_ASSERT( mbedtls_sha1_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_sha1_self_test( 1 ) == 0 );
}
/* END_CASE */
/* BEGIN_CASE depends_on:MBEDTLS_SHA256_C:MBEDTLS_SELF_TEST */
void sha256_selftest()
{
TEST_ASSERT( mbedtls_sha256_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_sha256_self_test( 1 ) == 0 );
}
/* END_CASE */
/* BEGIN_CASE depends_on:MBEDTLS_SHA512_C:MBEDTLS_SELF_TEST */
void sha512_selftest()
{
TEST_ASSERT( mbedtls_sha512_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_sha512_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -10,6 +10,6 @@
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void timing_selftest()
{
TEST_ASSERT( mbedtls_timing_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_timing_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -623,6 +623,6 @@ exit:
/* BEGIN_CASE depends_on:MBEDTLS_X509_CRT_PARSE_C:MBEDTLS_SELF_TEST */
void x509_selftest()
{
TEST_ASSERT( mbedtls_x509_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_x509_self_test( 1 ) == 0 );
}
/* END_CASE */

View file

@ -124,6 +124,6 @@ void xtea_decrypt_cbc( char *hex_key_string, char *hex_iv_string,
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
void xtea_selftest()
{
TEST_ASSERT( mbedtls_xtea_self_test( 0 ) == 0 );
TEST_ASSERT( mbedtls_xtea_self_test( 1 ) == 0 );
}
/* END_CASE */