forked from u-boot/u-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharmffa.c
33 lines (27 loc) · 815 Bytes
/
armffa.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// SPDX-License-Identifier: GPL-2.0+
/*
* Test for armffa command
*
* Copyright 2022-2023 Arm Limited and/or its affiliates <[email protected]>
*
* Authors:
* Abdellatif El Khlifi <[email protected]>
*/
#include <common.h>
#include <string.h>
#include <asm/sandbox_arm_ffa.h>
#include <dm/test.h>
#include <test/test.h>
#include <test/ut.h>
/* Basic test of 'armffa' command */
static int dm_test_armffa_cmd(struct unit_test_state *uts)
{
/* armffa getpart <UUID> */
ut_assertok(run_command("armffa getpart " SANDBOX_SERVICE1_UUID, 0));
/* armffa ping <ID> */
ut_assertok(run_commandf("armffa ping 0x%x", SANDBOX_SP1_ID));
/* armffa devlist */
ut_assertok(run_command("armffa devlist", 0));
return 0;
}
DM_TEST(dm_test_armffa_cmd, UT_TESTF_SCAN_FDT | UT_TESTF_CONSOLE_REC);