]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - test/cmd/armffa.c
1 // SPDX-License-Identifier: GPL-2.0+
3 * Test for armffa command
5 * Copyright 2022-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
8 * Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
13 #include <asm/sandbox_arm_ffa.h>
15 #include <test/test.h>
18 /* Basic test of 'armffa' command */
19 static int dm_test_armffa_cmd(struct unit_test_state
*uts
)
21 /* armffa getpart <UUID> */
22 ut_assertok(run_command("armffa getpart " SANDBOX_SERVICE1_UUID
, 0));
24 /* armffa ping <ID> */
25 ut_assertok(run_commandf("armffa ping 0x%x", SANDBOX_SP1_ID
));
28 ut_assertok(run_command("armffa devlist", 0));
33 DM_TEST(dm_test_armffa_cmd
, UT_TESTF_SCAN_FDT
| UT_TESTF_CONSOLE_REC
);