From eb5087126fb6f6e771fd4451b2ee66bf55541e77 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Thu, 14 Feb 2019 07:18:59 -0500 Subject: [PATCH] all.sh: add a seedfile generation step When using PSA with MBEDTLS_ENTROPY_NV_SEED, some test suites require the seed file for PSA initialization, which was normally generated later, when entropy tests were run. This change creates an initial seedfile in all.sh. --- tests/scripts/all.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 22611b901..90f9632d9 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -402,6 +402,12 @@ pre_check_git () { fi } +pre_check_seedfile () { + if [ ! -f "./tests/seedfile" ]; then + dd if=/dev/urandom of=./tests/seedfile bs=32 count=1 + fi +} + pre_setup_keep_going () { failure_summary= failure_count=0 @@ -1381,6 +1387,8 @@ pre_initialize_variables pre_parse_command_line "$@" pre_check_git +pre_check_seedfile + build_status=0 if [ $KEEP_GOING -eq 1 ]; then pre_setup_keep_going