1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/drivers/lsm6dsxx: use generic driver with test

This commit is contained in:
MrKevinWeiss 2024-03-26 12:27:07 +01:00
parent 1fcc34d119
commit 9f9da87306
No known key found for this signature in database
GPG Key ID: C26684F1C0767FFF
2 changed files with 24 additions and 1 deletions

View File

@ -1,6 +1,9 @@
BOARD ?= feather-nrf52840-sense
include ../Makefile.drivers_common
DRIVER ?= lsm6ds33
DISABLE_MODULE += test_utils_interactive_sync
DRIVER ?= lsm6dsxx
USEMODULE += $(DRIVER)
USEMODULE += ztimer

View File

@ -0,0 +1,20 @@
#!/usr/bin/env python3
# Copyright (C) 2024 HAW Hamburg.
#
# 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("Accelerometer x:")
child.expect("Gyroscope x:")
child.expect(r"Temperature \[in")
if __name__ == "__main__":
sys.exit(run(testfunc))