1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/tests/sys/eepreg/tests/01-run.py

27 lines
1.0 KiB
Python
Executable File

#!/usr/bin/env python3
# Copyright (C) 2018 Acutam Automation, LLC
#
# 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
def testfunc(child):
child.expect_exact("EEPROM registry (eepreg) test routine")
child.expect_exact("Testing new registry creation: reset check [SUCCESS]")
child.expect_exact("Testing writing and reading entries: add write add read [SUCCESS]")
child.expect_exact("Testing detection of conflicting size: add [SUCCESS]")
child.expect_exact("Testing calculation of lengths: len len [SUCCESS]")
child.expect_exact("Testing of successful data move after rm: rm read data [SUCCESS]")
child.expect_exact("Testing of free space change after write: free add free [SUCCESS]")
child.expect_exact("Testing of iteration over registry: iter bar foo [SUCCESS]")
child.expect_exact("Tests complete!")
if __name__ == "__main__":
sys.exit(run(testfunc))