u-boot/include/test/fdt_overlay.h
Simon Glass a7290bc4b7 test: Update fdt_overlay to do init from tests
Rather than having an init function and then running the tests, create a
test-init function to do it. This will allow us to get rid of the
command function.

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-02-11 20:10:59 -06:00

20 lines
480 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (c) 2016 NextThing Co
* Copyright (c) 2016 Free Electrons
*/
#ifndef __TEST_OVERLAY_H__
#define __TEST_OVERLAY_H__
#include <test/test.h>
/* Declare a new FDT-overlay test */
#define FDT_OVERLAY_TEST(_name, _flags) UNIT_TEST(_name, _flags, fdt_overlay)
/* Declare init for FDT-overlay test */
#define FDT_OVERLAY_TEST_INIT(_name, _flags) \
UNIT_TEST_INIT(_name, _flags, fdt_overlay)
#endif /* __TEST_OVERLAY_H__ */