diff --git a/programs/test/udp_proxy.c b/programs/test/udp_proxy.c index 979910e6b..1c8b500c4 100644 --- a/programs/test/udp_proxy.c +++ b/programs/test/udp_proxy.c @@ -79,6 +79,19 @@ int main( void ) #include #endif /* ( _WIN32 || _WIN32_WCE ) && !EFIX64 && !EFI32 */ +#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT) +int mbedtls_hardware_poll( void *data, unsigned char *output, + size_t len, size_t *olen ) +{ + size_t i; + (void) data; + for( i = 0; i < len; ++i ) + output[i] = rand(); + *olen = len; + return( 0 ); +} +#endif + #define MAX_MSG_SIZE 16384 + 2048 /* max record/datagram size */ #define DFL_SERVER_ADDR "localhost" diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 373da8af8..183b28dcf 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -426,7 +426,9 @@ $text" ;; *) record_status command make "$@" - build_status=$last_status + if [ $build_status -eq 0 ]; then + build_status=$last_status + fi ;; esac } @@ -1564,7 +1566,8 @@ component_test_baremetal () { component_test_hardware_entropy () { msg "build: default config + MBEDTLS_ENTROPY_HARDWARE_ALT" scripts/config.pl set MBEDTLS_ENTROPY_HARDWARE_ALT - make CFLAGS='-Werror -O1' + make CFLAGS='-Werror -O1' lib tests + make CFLAGS='-Werror -O1' -C programs ssl/ssl_server2 ssl/ssl_client2 test/udp_proxy msg "test: default config + MBEDTLS_ENTROPY_HARDWARE_ALT" if_build_succeeded make test