mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Alexandre Abadie
630e7ba053
The test application now correctly prints float value, with a 3 digits precision. The python test script now verifies the run time value printed for each test is following the x.xxx pattern.
26 lines
602 B
Python
Executable File
26 lines
602 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
# Copyright (C) 2019 Freie Universität Berlin
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
# directory for more details.
|
|
|
|
import sys
|
|
from testrunner import run
|
|
|
|
|
|
# Use custom timeout, per test.
|
|
# test #3 requires ~150s to complete on samr30-xpro.
|
|
TIMEOUT = 180
|
|
|
|
|
|
def testfunc(child):
|
|
for i in range(1, 6):
|
|
child.expect(r"Running test #%d... done. Run time: \d+.\d{3} s" % i,
|
|
timeout=TIMEOUT)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(run(testfunc))
|