mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-30 16:35:37 +00:00

Some suites have a different name from that used in the linker list. That makes it hard to programmatically match the name printed when the suite runs to the linker-list name it has. Update the names so they are the same. Signed-off-by: Simon Glass <sjg@chromium.org>
20 lines
504 B
C
20 lines
504 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright 2023 Google LLC
|
|
* Written by Simon Glass <sjg@chromium.org>
|
|
*
|
|
* Unit tests for command functions
|
|
*/
|
|
|
|
#include <command.h>
|
|
#include <test/cmd.h>
|
|
#include <test/suites.h>
|
|
#include <test/ut.h>
|
|
|
|
int do_ut_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|
{
|
|
struct unit_test *tests = UNIT_TEST_SUITE_START(cmd);
|
|
const int n_ents = UNIT_TEST_SUITE_COUNT(cmd);
|
|
|
|
return cmd_ut_category("cmd", "cmd_test_", tests, n_ents, argc, argv);
|
|
}
|