blob: e07f5fd4696b7a5ee3d4ec2297e5ec0fabd8870a [file] [log] [blame]
Simon Glass557767f2024-08-27 19:44:28 -06001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Tests for cpuid command
4 *
5 * Copyright 2024 Google LLC
6 * Written by Simon Glass <sjg@chromium.org>
7 */
8
9#include <test/cmd.h>
10#include <test/ut.h>
11
12static int cmd_test_cpuid(struct unit_test_state *uts)
13{
14 ut_assertok(run_commandf("cpuid 1"));
15 ut_assert_nextline("eax 00060fb1");
16 ut_assert_nextline("ebx 00000800");
17 ut_assert_nextline("ecx 80002001");
18 ut_assert_nextline("edx 078bfbfd");
19
20 return 0;
21}
22CMD_TEST(cmd_test_cpuid, UTF_CONSOLE);