1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-18 19:13:51 +01:00
2023-05-06 07:55:01 +02:00

27 lines
833 B
Python
Executable File

#!/usr/bin/env python3
# Copyright (C) 2021 Gunar Schorchtr <gunar@schorcht.net>
#
# 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('------------------------------------')
child.expect_exact('Sensor: ADXL345')
child.expect_exact('Type: Acceleration (m/s2)')
child.expect_exact('Driver Ver: 1')
child.expect_exact('Unique ID: 12345')
child.expect_exact('Min Value: -156.90')
child.expect_exact('Max Value: 156.90')
child.expect_exact('Resolution: 0.03')
child.expect_exact('------------------------------------')
if __name__ == "__main__":
sys.exit(run(testfunc))