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:
parent
1fcc34d119
commit
9f9da87306
@ -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
|
||||
|
20
tests/drivers/lsm6dsxx/tests-with-config/01-run.py
Executable file
20
tests/drivers/lsm6dsxx/tests-with-config/01-run.py
Executable 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))
|
Loading…
Reference in New Issue
Block a user