Skip to content

Commit

Permalink
tests/drivers/lsm6dsxx: use generic driver with test
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevinWeiss committed Mar 26, 2024
1 parent 1fcc34d commit 9f9da87
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/drivers/lsm6dsxx/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
20 changes: 20 additions & 0 deletions tests/drivers/lsm6dsxx/tests-with-config/01-run.py
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit 9f9da87

Please sign in to comment.