From 9f9da8730620d9987aefa39b7495dfde2e3023c2 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Tue, 26 Mar 2024 12:27:07 +0100 Subject: [PATCH] tests/drivers/lsm6dsxx: use generic driver with test --- tests/drivers/lsm6dsxx/Makefile | 5 ++++- .../lsm6dsxx/tests-with-config/01-run.py | 20 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100755 tests/drivers/lsm6dsxx/tests-with-config/01-run.py diff --git a/tests/drivers/lsm6dsxx/Makefile b/tests/drivers/lsm6dsxx/Makefile index 71a02c98fc6e..0db732a5a0bb 100644 --- a/tests/drivers/lsm6dsxx/Makefile +++ b/tests/drivers/lsm6dsxx/Makefile @@ -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 diff --git a/tests/drivers/lsm6dsxx/tests-with-config/01-run.py b/tests/drivers/lsm6dsxx/tests-with-config/01-run.py new file mode 100755 index 000000000000..926e62451171 --- /dev/null +++ b/tests/drivers/lsm6dsxx/tests-with-config/01-run.py @@ -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))