zephyr/tests/lib/cpp/cxx/app.overlay
Marc Herbert c25b9b240e tests: cpp: add some C++ coverage for device.h / Device Tree
This provides C++ build test coverage for device.h (notably:
Z_DEVICE_INIT() fixed in the previous commit) and for some other Device
Tree macros.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2024-07-08 17:20:26 -04:00

23 lines
443 B
Text

/*
* Copyright (c) 2024 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*
* Application overlay for creating a fake device instance we can use to
* test. Subset of tests/kernel/device/app.overlay and other app.overlay
* files.
*/
/ {
test_dev0_boot: dev0 {
compatible = "fake-cpp-driver";
status = "okay";
};
test_dev1_dfr: dev1 {
compatible = "fake-cpp-driver";
status = "okay";
zephyr,deferred-init;
};
};