1# Copyright (c) 2023 Google LLC 2# SPDX-License-Identifier: Apache-2.0 3 4config GENERIC_SENSOR_TEST 5 bool "Compile and run the generic sensor tests" 6 depends on ZTEST 7 help 8 Enables building and running the generic sensor test suite that will 9 iterate through the device tree and run sample path tests on any 10 sensor that supports the backend sensor emulator API. 11 12config GENERIC_SENSOR_TEST_NUM_EXPECTED_VALS 13 int "Number of expected values to use in test" 14 default 5 15 depends on GENERIC_SENSOR_TEST 16 help 17 Controls the number of expected values to use in the generic sensor 18 test, interpolated from the sensor's reported lower and upper sample 19 range boundaries. The test will run one iteration for each expected 20 value. For example, if GENERIC_TEST_NUM_EXPECTED_VALS == 5, and the 21 sensor range is 0..100, the test will run 5 times with expected values 22 0, 25, 50, 75, and 100. These iterations are run in parallel. 23 24source "Kconfig.zephyr" 25