1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright 2023 Google LLC 4 * Written by Simon Glass <sjg@chromium.org> 5 * 6 * Unit tests for command functions 7 */ 8 9#include <command.h> 10#include <test/cmd.h> 11#include <test/suites.h> 12#include <test/ut.h> 13 14int do_ut_cmd(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) 15{ 16 struct unit_test *tests = UNIT_TEST_SUITE_START(cmd_test); 17 const int n_ents = UNIT_TEST_SUITE_COUNT(cmd_test); 18 19 return cmd_ut_category("cmd", "cmd_test_", tests, n_ents, argc, argv); 20} 21