]> Git Repo - J-u-boot.git/blame - test/cmd/armffa.c
Merge tag 'u-boot-imx-master-20250127' of https://gitlab.denx.de/u-boot/custodians...
[J-u-boot.git] / test / cmd / armffa.c
CommitLineData
f16a48fe
AEK
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Test for armffa command
4 *
5 * Copyright 2022-2023 Arm Limited and/or its affiliates <[email protected]>
6 *
7 * Authors:
8 * Abdellatif El Khlifi <[email protected]>
9 */
10
f16a48fe
AEK
11#include <string.h>
12#include <asm/sandbox_arm_ffa.h>
13#include <dm/test.h>
14#include <test/test.h>
15#include <test/ut.h>
16
17/* Basic test of 'armffa' command */
18static int dm_test_armffa_cmd(struct unit_test_state *uts)
19{
20 /* armffa getpart <UUID> */
21 ut_assertok(run_command("armffa getpart " SANDBOX_SERVICE1_UUID, 0));
22
23 /* armffa ping <ID> */
24 ut_assertok(run_commandf("armffa ping 0x%x", SANDBOX_SP1_ID));
25
26 /* armffa devlist */
27 ut_assertok(run_command("armffa devlist", 0));
28
29 return 0;
30}
9b99762e 31DM_TEST(dm_test_armffa_cmd, UTF_SCAN_FDT | UTF_CONSOLE);
This page took 0.102227 seconds and 5 git commands to generate.