summaryrefslogtreecommitdiff
path: root/zephyr/test/drivers/BUILD.py
blob: 159e0d2e0c3eeef070b5abff8ece439ebe8bd32b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Construct the drivers test binaries"""


drivers = register_host_test(
    test_name="drivers",
    dts_overlays=[
        here / "overlay.dts",
    ],
    kconfig_files=[
        here / "prj.conf",
    ],
)

# Per Suite Builds

ap_mux_control = drivers.variant(
    project_name="test-drivers-ap_mux_control",
    kconfig_files=[here / "ap_mux_control" / "prj.conf"],
)

chargesplash = drivers.variant(
    project_name="test-drivers-chargesplash",
)

isl923x = drivers.variant(
    project_name="test-drivers-isl923x",
)

usbc_alt_mode = drivers.variant(
    project_name="test-drivers-usbc_alt_mode",
)

led_driver = drivers.variant(
    project_name="test-drivers-led_driver",
    dts_overlays=[
        here / "led_driver" / "led_pins.dts",
        here / "led_driver" / "led_policy.dts",
    ],
    kconfig_files=[here / "led_driver" / "prj.conf"],
)