]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: Drop the function for running measurement tests
authorSimon Glass <sjg@chromium.org>
Mon, 20 Jan 2025 21:25:47 +0000 (14:25 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 24 Jan 2025 20:34:40 +0000 (14:34 -0600)
Use the new suite-runner to run these tests instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/test/suites.h
test/boot/measurement.c
test/cmd_ut.c

index 775b0a5a131c73690fbedfc9e974952e5fd8dc54..1a40af6599ac6bb72968e67df46ccb69929b9889 100644 (file)
@@ -39,7 +39,6 @@ int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
                   char *const argv[]);
 int do_ut_hush(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 int do_ut_loadm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
-int do_ut_measurement(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);
 int do_ut_optee(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc,
                  char *const argv[]);
index 018e8af45f05b6ae1fc0ee47d5f8d882513a30f7..5a49c7a6b23be94bf87a738e6fe8d2ceb784e868 100644 (file)
@@ -53,13 +53,3 @@ static int measure(struct unit_test_state *uts)
        return 0;
 }
 MEASUREMENT_TEST(measure, 0);
-
-int do_ut_measurement(struct cmd_tbl *cmdtp, int flag, int argc,
-                     char *const argv[])
-{
-       struct unit_test *tests = UNIT_TEST_SUITE_START(measurement);
-       const int n_ents = UNIT_TEST_SUITE_COUNT(measurement);
-
-       return cmd_ut_category("measurement", "measurement_test_", tests,
-                              n_ents, argc, argv);
-}
index f2a72adc16e2fa578410f7cb5d36bb7a81df1b9e..ff9976cb98aa120b81cac564b9d7352defdea16f 100644 (file)
@@ -166,7 +166,7 @@ static struct suite suites[] = {
        SUITE(setexpr),
 #endif
 #ifdef CONFIG_MEASURED_BOOT
-       SUITE_CMD(measurement, do_ut_measurement),
+       SUITE(measurement),
 #endif
 #ifdef CONFIG_SANDBOX
 #if CONFIG_IS_ENABLED(BLOBLIST)