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 0c0564b commit 778af29
Show file tree
Hide file tree
Showing 2 changed files with 23 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
19 changes: 19 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,19 @@
#!/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__":

Check failure on line 18 in tests/drivers/lsm6dsxx/tests-with-config/01-run.py

View workflow job for this annotation

GitHub Actions / static-tests

E305 expected 2 blank lines after class or function definition, found 1
sys.exit(run(testfunc))

0 comments on commit 778af29

Please sign in to comment.