blob: caa4c27f6defdce3bf9c4b02a4be90e10b186b5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* SPDX-License-Identifier: GPL-2.0 */
#define pr_fmt(fmt) "bselftest: " fmt
#include <common.h>
#include <bselftest.h>
LIST_HEAD(selftests);
void selftests_run(void)
{
struct selftest *test;
int err = 0;
pr_notice("Configured tests will run now\n");
list_for_each_entry(test, &selftests, list)
err |= test->func();
if (err)
pr_err("Some selftests failed\n");
}
|