Skip to content
Snippets Groups Projects
Commit e4641164 authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

tests/pipe: migrate to testrunner

parent a524d9f9
No related branches found
No related tags found
No related merge requests found
...@@ -6,3 +6,6 @@ BOARD_INSUFFICIENT_MEMORY := nucleo32-f031 ...@@ -6,3 +6,6 @@ BOARD_INSUFFICIENT_MEMORY := nucleo32-f031
USEMODULE += pipe USEMODULE += pipe
include $(RIOTBASE)/Makefile.include include $(RIOTBASE)/Makefile.include
test:
tests/01-run.py
#!/usr/bin/env python3
import os
import sys
import math
sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
import testrunner
def testfunc(child):
child.expect_exact('Start.')
child.expect_exact('Middle read: <ABCD> [0:4]')
child.expect_exact('Middle read: <EF> [4:6]')
child.expect_exact('End read: <ABC> [0:3]')
child.expect_exact('End read: <DEF> [3:6]')
child.expect_exact('Middle read: <GHIJ> [6:10]')
child.expect_exact('Middle read: <KL> [10:12]')
child.expect_exact('End read: <GHI> [6:9]')
child.expect_exact('End read: <JKL> [9:12]')
child.expect_exact('Middle read: <MNOP> [12:16]')
child.expect_exact('Middle read: <QR> [16:18]')
child.expect_exact('End read: <MNO> [12:15]')
child.expect_exact('End read: <PQR> [15:18]')
child.expect_exact('Middle read: <STUV> [18:22]')
child.expect_exact('Middle read: <WX> [22:24]')
child.expect_exact('Main done.')
child.expect_exact('End read: <STU> [18:21]')
child.expect_exact('End read: <VWX> [21:24]')
child.expect_exact('Middle read: <YZ> [24:26]')
child.expect_exact('Middle done.')
child.expect_exact('End read: <YZ> [24:26]')
child.expect_exact('End done.')
if __name__ == "__main__":
sys.exit(testrunner.run(testfunc))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment