Commit 93012e8b authored by Andres AG's avatar Andres AG Committed by Simon Butcher

Set selftest verbose flag to boost coverage

parent b2fdd04f
......@@ -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 */
......@@ -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 */
......@@ -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 */
......@@ -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 */
......@@ -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 */
......
......@@ -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 */
......@@ -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 */
......@@ -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 */
......@@ -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 */
......
......@@ -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 */
......@@ -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 */
......@@ -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 */
......@@ -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 */
......@@ -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 */
......@@ -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 */
......
......@@ -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 */
......@@ -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 */
......@@ -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 */
......@@ -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 */
......@@ -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 */
......@@ -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 */
......@@ -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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment