linux/drivers/of/of_test.c

// SPDX-License-Identifier: GPL-2.0
/*
 * KUnit tests for OF APIs
 */
#include <linux/module.h>
#include <linux/of.h>

#include <kunit/test.h>

/*
 * Test that the root node "/" can be found by path.
 */
static void of_dtb_root_node_found_by_path(struct kunit *test)
{}

/*
 * Test that the 'of_root' global variable is always populated when DT code is
 * enabled. Remove this test once of_root is removed from global access.
 */
static void of_dtb_root_node_populates_of_root(struct kunit *test)
{}

static struct kunit_case of_dtb_test_cases[] =;

static int of_dtb_test_init(struct kunit *test)
{}

/*
 * Test suite to confirm a DTB is loaded.
 */
static struct kunit_suite of_dtb_suite =;

kunit_test_suites();
MODULE_DESCRIPTION();
MODULE_LICENSE();