mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 08:05:37 +01:00
Create a seedfile explicitly
Running the entropy unit test creates a suitable seedfile, but this only works due to the happy accident that no prior unit test needs one (specifically, test_suite_entropy runs before test_suite_rsa). So create one explicitly, both for robustness and to keep the script closer to the version in development where the explicit seedfile creation is required. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
b07541d9f0
commit
9cc203a7ea
@ -75,6 +75,10 @@ make -j
|
||||
TEST_OUTPUT=out_${PPID}
|
||||
cd tests
|
||||
|
||||
if [ ! -f "seedfile" ]; then
|
||||
dd if=/dev/urandom of="seedfile" bs=64 count=1
|
||||
fi
|
||||
|
||||
# Step 2a - Unit Tests (keep going even if some tests fail)
|
||||
perl scripts/run-test-suites.pl -v 2 |tee unit-test-$TEST_OUTPUT
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user