test/qtest: Introduce a new aspeed-smc-utils.c to place common testcases
authorJamin Lin <jamin_lin@aspeedtech.com>
Wed, 27 Nov 2024 09:15:42 +0000 (17:15 +0800)
committerCédric Le Goater <clg@redhat.com>
Wed, 11 Dec 2024 06:25:53 +0000 (07:25 +0100)
commit3e62a32ddb89831c4a01b9526ae656f7fb802998
tree1de8fc7bbb824185322b383523672f9167105ed2
parent08479f0ca01414aadf513717ba3e1258321e6513
test/qtest: Introduce a new aspeed-smc-utils.c to place common testcases

The testcases for ASPEED SMC model were placed in aspeed_smc-test.c.
However, this test file only supports for ARM32. To support all ASPEED SOCs
such as AST2700 whose CPU architecture is aarch64, introduces a new
aspeed-smc-utils source file and move all common APIs and testcases
from aspeed_smc-test.c to aspeed-smc-utils.c.

Finally, users are able to re-used these testcase for AST2700 and future
ASPEED SOCs testing.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/r/20241127091543.1243114-10-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
tests/qtest/aspeed-smc-utils.c [new file with mode: 0644]
tests/qtest/aspeed-smc-utils.h [new file with mode: 0644]
tests/qtest/aspeed_smc-test.c
tests/qtest/meson.build