/* SPDX-License-Identifier: GPL-2.0 *//* * Base unit test (KUnit) API. * * Copyright (C) 2019, Google LLC. * Author: Brendan Higgins <brendanhiggins@google.com> */#ifndef _KUNIT_TEST_H#define _KUNIT_TEST_H#include<kunit/assert.h>#include<kunit/try-catch.h>#include<linux/args.h>#include<linux/compiler.h>#include<linux/container_of.h>#include<linux/err.h>#include<linux/init.h>#include<linux/jump_label.h>#include<linux/kconfig.h>#include<linux/kref.h>#include<linux/list.h>#include<linux/module.h>#include<linux/slab.h>#include<linux/spinlock.h>#include<linux/string.h>#include<linux/types.h>#include<asm/rwonce.h>/* Static key: true if any KUnit tests are currently running */DECLARE_STATIC_KEY_FALSE(kunit_running);structkunit;/* Size of log associated with test. */#define KUNIT_LOG_SIZE 2048/* Maximum size of parameter description string. */#define KUNIT_PARAM_DESC_SIZE 128/* Maximum size of a status comment. */#define KUNIT_STATUS_COMMENT_SIZE 256/* * TAP specifies subtest stream indentation of 4 spaces