Simon Glass | 557767f | 2024-08-27 19:44:28 -0600 | [diff] [blame] | 1 | // 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 | |
| 12 | static 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 | } |
| 22 | CMD_TEST(cmd_test_cpuid, UTF_CONSOLE); |