linux/lib/kunit/executor_test.c

// SPDX-License-Identifier: GPL-2.0
/*
 * KUnit test for the KUnit executor.
 *
 * Copyright (C) 2021, Google LLC.
 * Author: Daniel Latypov <[email protected]>
 */

#include <kunit/test.h>
#include <kunit/attributes.h>

static void free_suite_set_at_end(struct kunit *test, const void *to_free);
static struct kunit_suite *alloc_fake_suite(struct kunit *test,
					    const char *suite_name,
					    struct kunit_case *test_cases);

static void dummy_test(struct kunit *test) {}

static struct kunit_case dummy_test_cases[] =;

static void parse_filter_test(struct kunit *test)
{}

static void filter_suites_test(struct kunit *test)
{}

static void filter_suites_test_glob_test(struct kunit *test)
{}

static void filter_suites_to_empty_test(struct kunit *test)
{}

static void parse_filter_attr_test(struct kunit *test)
{}

static struct kunit_case dummy_attr_test_cases[] =;

static void filter_attr_test(struct kunit *test)
{}

static void filter_attr_empty_test(struct kunit *test)
{}

static void filter_attr_skip_test(struct kunit *test)
{}

static struct kunit_case executor_test_cases[] =;

static struct kunit_suite executor_test_suite =;

kunit_test_suites();

/* Test helpers */

static void free_suite_set(void *suite_set)
{}

/* Use the resource API to register a call to free_suite_set.
 * Since we never actually use the resource, it's safe to use on const data.
 */
static void free_suite_set_at_end(struct kunit *test, const void *to_free)
{}

static struct kunit_suite *alloc_fake_suite(struct kunit *test,
					    const char *suite_name,
					    struct kunit_case *test_cases)
{}