mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Alexandre Abadie
5c4698bfd8
Otherwise the test takes too long on nrf51 based boards and fails: - 80s on a microbit for tests/pkg_micro-ecc - 120s on a microbit for tests/pkg_micro-ecc-with-hwrng
22 lines
533 B
Python
Executable File
22 lines
533 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
from testrunner import run
|
|
|
|
|
|
# Use a custom global timeout for slow hardware. On microbit (nrf51), the
|
|
# test completes in 120s.
|
|
TIMEOUT = 200
|
|
|
|
|
|
def testfunc(child):
|
|
child.expect_exact('micro-ecc compiled!')
|
|
child.expect_exact('Testing 16 random private key pairs and signature '
|
|
'using HWRNG')
|
|
child.expect_exact('................ done with 0 error(s)')
|
|
child.expect_exact('SUCCESS')
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(run(testfunc, timeout=TIMEOUT))
|