zephyr/tests/drivers
Tristan Honscheid 171c1fc9d9 emul: Introduce emulator backend API and generic sensor test
This PR introduces a backend API to be implemented by sensor emulators
that creates a standardized mechanism for setting expected sensor
readings in tests. This unlocks the ability to create a generic sensor
test that can automatically set expected values in supported sensor
emulators and verify them through the existing sensor API. An
implementation of this API is provided for the AKM09918C magnetometer.

A generic sensor test is also created to exercise this implementation.
Observe that this test knows nothing about the AKM09918C; info about
supported channels and sample ranges is discovered through the backend
API. The test iterates over all devices attached to the virtual I2C and
SPI buses in the test binary's device tree, which (theoretically) covers
all sensors. Sensors whose emulator does not exist yet or does not
support the backend API are skipped.

Signed-off-by: Tristan Honscheid <honscheid@google.com>
2023-07-28 17:48:31 +02:00
..
adc tests: drivers: adc: adc_api: enbale test for mr_canhubk3 2023-07-28 08:55:38 -05:00
bbram tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
bc12 samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
build_all emul: Introduce emulator backend API and generic sensor test 2023-07-28 17:48:31 +02:00
can boards: xtensa: esp32 board split 2023-07-25 18:12:33 +02:00
clock_control tests/drivers/clock_control: Add tests for stm32wba_core 2023-07-20 16:25:02 +02:00
console samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
coredump/coredump_api tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
counter drivers: counter: Add Infineon CAT1 counter driver 2023-07-26 09:10:31 +02:00
dac boards: xtensa: esp32 board split 2023-07-25 18:12:33 +02:00
disk arch: x86: updated acpi config macro 2023-06-30 17:53:01 +03:00
dma dts: Move to 'zephyr,memory-attr' 2023-07-25 11:22:10 +02:00
eeprom tests: drivers: enable tests eeprom and i2c for mr_canhubk3 2023-07-27 12:32:07 -05:00
entropy/api samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
espi samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
ethernet/eth_ivshmem_queue tests: drivers: ethernet: Add eth_ivshmem_queue unit tests 2023-05-14 18:17:33 -04:00
flash tests: enable flash tests for mr_canhubk3 board 2023-07-26 09:44:14 +02:00
flash_simulator tests flash simulator: Enable for native_sim 2023-07-10 09:50:56 +02:00
fuel_gauge tests: sbs_gauge: Factor fixture out of test 2023-07-27 10:19:41 +02:00
gpio boards: xtensa: esp32 board split 2023-07-25 18:12:33 +02:00
hwinfo/api samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
i2c tests: drivers: enable tests eeprom and i2c for mr_canhubk3 2023-07-27 12:32:07 -05:00
i2s test: i2s_api: exclude NXP rtxxx platform 2023-05-26 09:54:07 -04:00
input/gpio_keys samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
ipm tests: samples: cleanup test tags, add integration_platforms 2023-06-02 04:47:06 -04:00
kscan input: convert gt911 from kscan 2023-07-13 14:24:50 +00:00
led/led_api samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
memc/ram samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
mipi_dsi/api samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
mm mm_drv: tlb: Fix driver tests 2023-06-22 17:23:56 -04:00
pinctrl samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
pwm soc: xtensa,riscv: esp32xx: refactor folder structure 2023-07-25 18:12:33 +02:00
regulator drivers: regulator: Added ship mode to API 2023-07-19 09:30:22 +00:00
retained_mem/api samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
rtc tests: drivers: rtc: api_helpers: Should depend on rtc support 2023-07-24 14:38:47 +00:00
sdhc samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
sensor sensor: akm09918c: Fix conversion constant 2023-07-28 17:48:31 +02:00
smbus tests: smbus: Rename smbus api test 2023-07-17 15:13:38 -04:00
spi boards: xtensa: esp32 board split 2023-07-25 18:12:33 +02:00
syscon samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
timer/nrf_rtc_timer samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
uart soc: xtensa,riscv: esp32xx: refactor folder structure 2023-07-25 18:12:33 +02:00
udc tests: udc: get UDC driver skeleton tested on native_posix_64 2023-05-17 12:26:48 +02:00
virtualization/ivshmem/plain samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
w1/w1_api samples, tests: convert string-based twister lists to YAML lists 2023-05-10 09:52:37 +02:00
watchdog tests: drivers: watchdog: wdt_basic_api: 2023-06-29 10:13:05 +00:00