Guard some tests by presence of default entropy

This commit is contained in:
Hanno Becker 2017-09-08 10:56:19 +01:00
parent adb9bd23d9
commit 3674a4865c
2 changed files with 5 additions and 5 deletions

View file

@ -40,7 +40,7 @@ static int entropy_dummy_source( void *data, unsigned char *output,
* END_DEPENDENCIES * END_DEPENDENCIES
*/ */
/* BEGIN_CASE depends_on:POLARSSL_FS_IO */ /* BEGIN_CASE depends_on:POLARSSL_FS_IO:ENTROPY_HAVE_DEFAULT */
void entropy_seed_file( char *path, int ret ) void entropy_seed_file( char *path, int ret )
{ {
entropy_context ctx; entropy_context ctx;
@ -78,7 +78,7 @@ exit:
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE */ /* BEGIN_CASE depends_on:ENTROPY_HAVE_DEFAULT */
void entropy_func_len( int len, int ret ) void entropy_func_len( int len, int ret )
{ {
entropy_context ctx; entropy_context ctx;
@ -137,7 +137,7 @@ exit:
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE */ /* BEGIN_CASE depends_on:ENTROPY_HAVE_DEFAULT */
void entropy_threshold( int threshold, int chunk_size, int result ) void entropy_threshold( int threshold, int chunk_size, int result )
{ {
entropy_context ctx; entropy_context ctx;
@ -167,7 +167,7 @@ exit:
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE depends_on:POLARSSL_SELF_TEST */ /* BEGIN_CASEdepends_on:ENTROPY_HAVE_DEFAULT:POLARSSL_SELF_TEST */
void entropy_selftest( ) void entropy_selftest( )
{ {
TEST_ASSERT( entropy_self_test( 0 ) == 0 ); TEST_ASSERT( entropy_self_test( 0 ) == 0 );

View file

@ -658,7 +658,7 @@ exit:
} }
/* END_CASE */ /* END_CASE */
/* BEGIN_CASE depends_on:POLARSSL_CTR_DRBG_C:POLARSSL_ENTROPY_C */ /* BEGIN_CASE depends_on:POLARSSL_CTR_DRBG_C:POLARSSL_ENTROPY_C:ENTROPY_HAVE_DEFAULT */
void rsa_gen_key( int nrbits, int exponent, int result) void rsa_gen_key( int nrbits, int exponent, int result)
{ {
rsa_context ctx; rsa_context ctx;