Skip to content

Commit bb00120

Browse files
Jordan Yatesnashif
authored andcommitted
tests: drivers: adc: test dummy ADC driver
Add a testcase for compiling the dummy `vnd,adc` driver. Signed-off-by: Jordan Yates <[email protected]>
1 parent 8173277 commit bb00120

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2021, Commonwealth Scientific and Industrial Research
3+
* Organisation (CSIRO) ABN 41 687 119 230.
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
/{
9+
test_adc: adc@11112222 {
10+
reg = <0x11112222 0x1000>;
11+
compatible = "vnd,adc";
12+
label = "TEST_ADC";
13+
status = "okay";
14+
#io-channel-cells = <1>;
15+
};
16+
};

tests/drivers/build_all/adc/testcase.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@ tests:
5858
platform_allow: mec15xxevb_assy6853
5959
tags: adc_xec
6060
extra_args: "CONFIG_ADC_XEC=y"
61+
drivers.adc.test.build:
62+
platform_allow: qemu_cortex_m3
63+
tags: adc_test

0 commit comments

Comments
 (0)