[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 15/24] test/qtest/aspeed_smc-test: Move testcases to test_palmetto
From: |
Cédric Le Goater |
Subject: |
[PULL 15/24] test/qtest/aspeed_smc-test: Move testcases to test_palmetto_bmc function |
Date: |
Wed, 11 Dec 2024 07:30:49 +0100 |
From: Jamin Lin <jamin_lin@aspeedtech.com>
So far, the test cases are used for testing SMC model with AST2400 BMC.
However, AST2400 is end off live and ASPEED is no longer support this SOC.
To test SMC model for AST2500, AST2600 and AST1030, move the test cases
from main to test_palmetto_bmc function.
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-2-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
---
tests/qtest/aspeed_smc-test.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/tests/qtest/aspeed_smc-test.c b/tests/qtest/aspeed_smc-test.c
index 4673371d9539..ec1fa6ec15ac 100644
--- a/tests/qtest/aspeed_smc-test.c
+++ b/tests/qtest/aspeed_smc-test.c
@@ -610,14 +610,12 @@ static void test_write_block_protect_bottom_bit(void)
flash_reset();
}
-int main(int argc, char **argv)
+static int test_palmetto_bmc(void)
{
g_autofree char *tmp_path = NULL;
int ret;
int fd;
- g_test_init(&argc, &argv, NULL);
-
fd = g_file_open_tmp("qtest.m25p80.XXXXXX", &tmp_path, NULL);
g_assert(fd >= 0);
ret = ftruncate(fd, FLASH_SIZE);
@@ -644,8 +642,18 @@ int main(int argc, char **argv)
flash_reset();
ret = g_test_run();
-
qtest_quit(global_qtest);
unlink(tmp_path);
+
+ return ret;
+}
+
+int main(int argc, char **argv)
+{
+ int ret;
+
+ g_test_init(&argc, &argv, NULL);
+ ret = test_palmetto_bmc();
+
return ret;
}
--
2.47.1
- [PULL 07/24] aspeed/soc: Support eMMC for AST2700, (continued)
- [PULL 07/24] aspeed/soc: Support eMMC for AST2700, Cédric Le Goater, 2024/12/11
- [PULL 10/24] tests/functional: Introduce a specific test for romulus-bmc machine, Cédric Le Goater, 2024/12/11
- [PULL 17/24] test/qtest/aspeed_smc-test: Support to test all CE pins, Cédric Le Goater, 2024/12/11
- [PULL 09/24] tests/functional: Introduce a specific test for palmetto-bmc machine, Cédric Le Goater, 2024/12/11
- [PULL 14/24] tests/functional: Move debian boot test from avocado, Cédric Le Goater, 2024/12/11
- [PULL 12/24] tests/functional: Introduce a specific test for ast2600 SoC, Cédric Le Goater, 2024/12/11
- [PULL 16/24] test/qtest/aspeed_smc-test: Introduce a new TestData to test different BMC SOCs, Cédric Le Goater, 2024/12/11
- [PULL 13/24] tests/functional: Introduce a specific test for rainier-bmc machine, Cédric Le Goater, 2024/12/11
- [PULL 21/24] test/qtest/aspeed_smc-test: Support to test AST1030, Cédric Le Goater, 2024/12/11
- [PULL 06/24] aspeed/soc: Support SDHCI for AST2700, Cédric Le Goater, 2024/12/11
- [PULL 15/24] test/qtest/aspeed_smc-test: Move testcases to test_palmetto_bmc function,
Cédric Le Goater <=
- [PULL 19/24] test/qtest/aspeed_smc-test: Support to test AST2500, Cédric Le Goater, 2024/12/11
- [PULL 18/24] test/qtest/aspeed_smc-test: Introducing a "page_addr" data field, Cédric Le Goater, 2024/12/11
- [PULL 08/24] tests/functional: Introduce a specific test for ast1030 SoC, Cédric Le Goater, 2024/12/11
- [PULL 11/24] tests/functional: Introduce a specific test for ast2500 SoC, Cédric Le Goater, 2024/12/11
- [PULL 23/24] test/qtest: Introduce a new aspeed-smc-utils.c to place common testcases, Cédric Le Goater, 2024/12/11
- [PULL 20/24] test/qtest/aspeed_smc-test: Support to test AST2600, Cédric Le Goater, 2024/12/11
- [PULL 22/24] test/qtest/aspeed_smc-test: Support write page command with QPI mode, Cédric Le Goater, 2024/12/11
- [PULL 24/24] test/qtest/ast2700-smc-test: Support to test AST2700, Cédric Le Goater, 2024/12/11
- Re: [PULL 00/24] aspeed queue, Peter Maydell, 2024/12/11