mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 05:35:28 +00:00
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.
This commit is contained in:
parent
c058773798
commit
eb5087126f
|
@ -402,6 +402,12 @@ pre_check_git () {
|
||||||
fi
|
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 () {
|
pre_setup_keep_going () {
|
||||||
failure_summary=
|
failure_summary=
|
||||||
failure_count=0
|
failure_count=0
|
||||||
|
@ -1381,6 +1387,8 @@ pre_initialize_variables
|
||||||
pre_parse_command_line "$@"
|
pre_parse_command_line "$@"
|
||||||
|
|
||||||
pre_check_git
|
pre_check_git
|
||||||
|
pre_check_seedfile
|
||||||
|
|
||||||
build_status=0
|
build_status=0
|
||||||
if [ $KEEP_GOING -eq 1 ]; then
|
if [ $KEEP_GOING -eq 1 ]; then
|
||||||
pre_setup_keep_going
|
pre_setup_keep_going
|
||||||
|
|
Loading…
Reference in a new issue