From bb00120e8be8880d2b096386db767641e48dfd82 Mon Sep 17 00:00:00 2001 From: Jordan Yates Date: Wed, 22 Dec 2021 10:35:55 +1000 Subject: [PATCH] tests: drivers: adc: test dummy ADC driver Add a testcase for compiling the dummy `vnd,adc` driver. Signed-off-by: Jordan Yates --- .../build_all/adc/boards/qemu_cortex_m3.overlay | 16 ++++++++++++++++ tests/drivers/build_all/adc/testcase.yaml | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 tests/drivers/build_all/adc/boards/qemu_cortex_m3.overlay diff --git a/tests/drivers/build_all/adc/boards/qemu_cortex_m3.overlay b/tests/drivers/build_all/adc/boards/qemu_cortex_m3.overlay new file mode 100644 index 00000000000..eb5451cbf60 --- /dev/null +++ b/tests/drivers/build_all/adc/boards/qemu_cortex_m3.overlay @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2021, Commonwealth Scientific and Industrial Research + * Organisation (CSIRO) ABN 41 687 119 230. + * + * SPDX-License-Identifier: Apache-2.0 + */ + + /{ + test_adc: adc@11112222 { + reg = <0x11112222 0x1000>; + compatible = "vnd,adc"; + label = "TEST_ADC"; + status = "okay"; + #io-channel-cells = <1>; + }; +}; diff --git a/tests/drivers/build_all/adc/testcase.yaml b/tests/drivers/build_all/adc/testcase.yaml index 6bd7f13e377..0b331f153a6 100644 --- a/tests/drivers/build_all/adc/testcase.yaml +++ b/tests/drivers/build_all/adc/testcase.yaml @@ -58,3 +58,6 @@ tests: platform_allow: mec15xxevb_assy6853 tags: adc_xec extra_args: "CONFIG_ADC_XEC=y" + drivers.adc.test.build: + platform_allow: qemu_cortex_m3 + tags: adc_test