1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 07:51:19 +01:00

Merge pull request #9759 from smlng/pr/pythonlibs/testrunner

dist: move testrunner to pythonlibs as package
This commit is contained in:
Gaëtan Harter 2018-08-16 11:54:02 +02:00 committed by GitHub
commit 31aba49a31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
108 changed files with 115 additions and 327 deletions

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -19,6 +19,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=30))

View File

@ -6,9 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
# Biggest step takes 135 seconds on wn430
TIMEOUT = 150
@ -26,6 +25,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -22,6 +22,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -39,6 +39,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -20,6 +20,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
ACCEPTED_ERROR = 20
@ -50,6 +50,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -26,6 +26,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -22,6 +22,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -34,6 +34,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -17,6 +17,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# directory for more details.
from __future__ import print_function
import os
import sys
from testrunner import run
ACCEPTED_ERROR = 20
@ -30,6 +30,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# directory for more details.
from __future__ import print_function
import os
import sys
from testrunner import run
how_many = 100
@ -24,6 +24,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
# It takes 35 seconds on wsn430, so add some margin
TIMEOUT = 45
@ -19,6 +19,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -10,6 +10,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -39,6 +39,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -17,6 +17,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -138,6 +138,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=1, traceback=True))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -76,6 +76,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -49,6 +49,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -53,6 +53,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -10,6 +10,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -18,6 +18,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -15,6 +15,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def expect_unary(child):
@ -39,6 +39,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
# Float and print operations are slow on boards
# Got 80 iotlab-m3 and 250 on samr21-xpro
@ -19,6 +19,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def _ipv6_tests(code):
@ -97,6 +97,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def _reuse_tests(code):
@ -91,6 +91,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=60))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def _reuse_tests(code):
@ -109,6 +109,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -15,6 +15,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -10,6 +10,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,9 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
thread_prio = {
3: 6,
@ -31,6 +32,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -23,6 +23,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -20,6 +20,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -15,6 +15,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -40,6 +40,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=1))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -40,6 +40,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=1))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -33,6 +33,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=10))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -22,6 +22,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -30,6 +30,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
NB_TESTS = 3
@ -13,6 +13,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
class TestFailed(Exception):
@ -31,6 +31,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
import testrunner
sys.exit(testrunner.run(testfunc))
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -9,6 +9,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -13,6 +13,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=60))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -13,6 +13,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=60))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -10,6 +10,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,7 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTBASE'],
'dist/tools/testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -15,6 +15,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
EXPECTED_STDOUT = (
'00| |',
@ -125,6 +125,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
EXPECTED_STDOUT = (
'ucg: UCG_MSG_DRAW_PIXEL (128)',
@ -61,6 +61,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -21,6 +21,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def test1(term):
@ -98,6 +98,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -8,9 +8,9 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
import time
from testrunner import run
US_PER_SEC = 1000000
EXTERNAL_JITTER = 0.15
@ -46,6 +46,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
PS_EXPECTED = (
('\tpid | name | state Q | pri | stack ( used) | '
@ -62,6 +62,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,8 +1,8 @@
#!/usr/bin/env python3
import os
import sys
import math
from testrunner import run
FACTORIAL_PARAM = 6
@ -18,6 +18,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -20,6 +20,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -13,6 +13,4 @@ def testfunc(child):
if __name__ == "__main__":
# This test can take some time to complete when testing on hardware (e.g
# on samr21-xpro) and the default timeout (10s) is not enough.
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=60))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -17,6 +17,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def _check_test_output(child):
@ -36,6 +36,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -8,8 +8,9 @@
# Author: Martin Elshuber <martin.elshuber@theobroma-systems.com>
import os
import sys
from testrunner import run
thread_prio = {
3: 6,
@ -45,6 +46,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# directory for more details.
import sys
import os
import re
from testrunner import run
def testfunc(child):
@ -66,6 +66,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ["RIOTTOOLS"], "testrunner"))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,9 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
EXPECTED_HELP = (
'Command Description',
@ -56,6 +57,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -39,6 +39,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -8,8 +8,9 @@
import os
import sys
import socket
from testrunner import run
IEEE802154_FRAME_LEN_MAX = 127
ZEP_DATA_HEADER_SIZE = 32
@ -53,15 +54,12 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
import testrunner
os.environ['TERMFLAGS'] = "-z [%s]:%d,[%s]:%d" % (
zep_params['local_addr'], zep_params['local_port'],
zep_params['remote_addr'], zep_params['remote_port'])
s = socket.socket(family=socket.AF_INET6, type=socket.SOCK_DGRAM)
s.bind(("::", zep_params['remote_port']))
res = testrunner.run(testfunc, timeout=1, echo=True, traceback=True)
res = run(testfunc, timeout=1, echo=True, traceback=True)
s.close()
if (res == 0):
print("Run tests successful")

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,10 +6,10 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
import calendar
import datetime
from testrunner import run
def _check_help(child):
@ -120,6 +120,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -7,8 +7,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -18,6 +18,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -28,6 +28,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -12,6 +12,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -11,6 +11,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -14,6 +14,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -16,6 +16,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import os
import sys
from testrunner import run
def testfunc(child):
@ -20,6 +20,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -21,6 +21,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -20,6 +20,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
import testrunner
sys.exit(testrunner.run(testfunc, timeout=1, echo=True, traceback=True))
sys.exit(run(testfunc, timeout=1, echo=True, traceback=True))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -25,6 +25,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -15,6 +15,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc, timeout=120))

View File

@ -6,8 +6,8 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import os
import sys
from testrunner import run
def testfunc(child):
@ -22,6 +22,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.path.append(os.path.join(os.environ['RIOTTOOLS'], 'testrunner'))
from testrunner import run
sys.exit(run(testfunc))

Some files were not shown because too many files have changed in this diff Show More