u-boot/test/cmd/cmd_ut_cmd.c
Simon Glass 4d31a3bd33 test: Rename test suites to match their linker-list name
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>
2025-01-24 14:34:40 -06:00

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);
}