Skip to content

Commit eb50871

Browse files
committed
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.
1 parent c058773 commit eb50871

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/scripts/all.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,12 @@ pre_check_git () {
402402
fi
403403
}
404404

405+
pre_check_seedfile () {
406+
if [ ! -f "./tests/seedfile" ]; then
407+
dd if=/dev/urandom of=./tests/seedfile bs=32 count=1
408+
fi
409+
}
410+
405411
pre_setup_keep_going () {
406412
failure_summary=
407413
failure_count=0
@@ -1381,6 +1387,8 @@ pre_initialize_variables
13811387
pre_parse_command_line "$@"
13821388

13831389
pre_check_git
1390+
pre_check_seedfile
1391+
13841392
build_status=0
13851393
if [ $KEEP_GOING -eq 1 ]; then
13861394
pre_setup_keep_going

0 commit comments

Comments
 (0)