summaryrefslogtreecommitdiff
path: root/test/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-08-22 07:57:49 -0600
committerTom Rini <trini@konsulko.com>2024-08-26 18:51:49 -0600
commitb073d48e8dd7d178ebd237089be730d15c72ddfc (patch)
treeabc9d5842979f4c495528da9cf08ca2f26ee8554 /test/cmd
parent725c438c6271f1870636f61a68d6904dc27a1357 (diff)
test: Drop the blank line before test macros
Most tests don't have this. It helps to keep the test declaration clearly associated with the function it relates to, rather than the next one in the file. Remove the extra blank line and mention this in the docs. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/cmd')
-rw-r--r--test/cmd/armffa.c1
-rw-r--r--test/cmd/bdinfo.c4
-rw-r--r--test/cmd/exit.c1
-rw-r--r--test/cmd/mbr.c1
-rw-r--r--test/cmd/pci_mps.c1
-rw-r--r--test/cmd/pinmux.c1
-rw-r--r--test/cmd/pwm.c1
-rw-r--r--test/cmd/rw.c1
-rw-r--r--test/cmd/setexpr.c1
-rw-r--r--test/cmd/temperature.c1
-rw-r--r--test/cmd/test_echo.c1
-rw-r--r--test/cmd/wget.c1
12 files changed, 0 insertions, 15 deletions
diff --git a/test/cmd/armffa.c b/test/cmd/armffa.c
index f5d5a1b54a3..d7b076cfe7c 100644
--- a/test/cmd/armffa.c
+++ b/test/cmd/armffa.c
@@ -28,5 +28,4 @@ static int dm_test_armffa_cmd(struct unit_test_state *uts)
return 0;
}
-
DM_TEST(dm_test_armffa_cmd, UTF_SCAN_FDT | UTF_CONSOLE_REC);
diff --git a/test/cmd/bdinfo.c b/test/cmd/bdinfo.c
index 973544f63f6..cb88d2ee11b 100644
--- a/test/cmd/bdinfo.c
+++ b/test/cmd/bdinfo.c
@@ -244,7 +244,6 @@ static int bdinfo_test_full(struct unit_test_state *uts)
return 0;
}
-
BDINFO_TEST(bdinfo_test_full, UTF_CONSOLE_REC);
static int bdinfo_test_help(struct unit_test_state *uts)
@@ -266,7 +265,6 @@ static int bdinfo_test_help(struct unit_test_state *uts)
return 0;
}
-
BDINFO_TEST(bdinfo_test_help, UTF_CONSOLE_REC);
static int bdinfo_test_memory(struct unit_test_state *uts)
@@ -282,7 +280,6 @@ static int bdinfo_test_memory(struct unit_test_state *uts)
return 0;
}
-
BDINFO_TEST(bdinfo_test_memory, UTF_CONSOLE_REC);
static int bdinfo_test_eth(struct unit_test_state *uts)
@@ -298,7 +295,6 @@ static int bdinfo_test_eth(struct unit_test_state *uts)
return 0;
}
-
BDINFO_TEST(bdinfo_test_eth, UTF_CONSOLE_REC);
int do_ut_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
diff --git a/test/cmd/exit.c b/test/cmd/exit.c
index d4aac0facf6..e7e454c7631 100644
--- a/test/cmd/exit.c
+++ b/test/cmd/exit.c
@@ -121,7 +121,6 @@ static int cmd_exit_test(struct unit_test_state *uts)
return 0;
}
-
EXIT_TEST(cmd_exit_test, UTF_CONSOLE_REC);
int do_ut_exit(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
diff --git a/test/cmd/mbr.c b/test/cmd/mbr.c
index fd601ee5f53..e4b694b728f 100644
--- a/test/cmd/mbr.c
+++ b/test/cmd/mbr.c
@@ -479,5 +479,4 @@ static int dm_test_cmd_mbr(struct unit_test_state *uts)
{
return mbr_test_run(uts);
}
-
DM_TEST(dm_test_cmd_mbr, UTF_SCAN_FDT | UTF_CONSOLE_REC);
diff --git a/test/cmd/pci_mps.c b/test/cmd/pci_mps.c
index f7f77e73a30..755a0649770 100644
--- a/test/cmd/pci_mps.c
+++ b/test/cmd/pci_mps.c
@@ -27,7 +27,6 @@ static int test_pci_mps_safe(struct unit_test_state *uts)
return 0;
}
-
PCI_MPS_TEST(test_pci_mps_safe, UTF_CONSOLE_REC);
int do_ut_pci_mps(struct cmd_tbl *cmdtp, int flag, int argc,
diff --git a/test/cmd/pinmux.c b/test/cmd/pinmux.c
index 23f9b9a9f3a..0b4e001fa1e 100644
--- a/test/cmd/pinmux.c
+++ b/test/cmd/pinmux.c
@@ -36,5 +36,4 @@ static int dm_test_cmd_pinmux_status_pinname(struct unit_test_state *uts)
return 0;
}
-
DM_TEST(dm_test_cmd_pinmux_status_pinname, UTF_SCAN_PDATA | UTF_SCAN_FDT);
diff --git a/test/cmd/pwm.c b/test/cmd/pwm.c
index 494f31f4dae..44f52e15cbb 100644
--- a/test/cmd/pwm.c
+++ b/test/cmd/pwm.c
@@ -71,5 +71,4 @@ static int dm_test_pwm_cmd(struct unit_test_state *uts)
return 0;
}
-
DM_TEST(dm_test_pwm_cmd, UTF_SCAN_PDATA | UTF_SCAN_FDT | UTF_CONSOLE_REC);
diff --git a/test/cmd/rw.c b/test/cmd/rw.c
index 3dcf4228ee6..eeda87b53ed 100644
--- a/test/cmd/rw.c
+++ b/test/cmd/rw.c
@@ -99,5 +99,4 @@ static int dm_test_read_write(struct unit_test_state *uts)
return 0;
}
-
DM_TEST(dm_test_read_write, UTF_SCAN_FDT | UTF_CONSOLE_REC);
diff --git a/test/cmd/setexpr.c b/test/cmd/setexpr.c
index f024a335763..a4086c9451c 100644
--- a/test/cmd/setexpr.c
+++ b/test/cmd/setexpr.c
@@ -478,7 +478,6 @@ static int setexpr_test_fmt(struct unit_test_state *uts)
return 0;
}
-
SETEXPR_TEST(setexpr_test_fmt, UTF_CONSOLE_REC);
#endif
diff --git a/test/cmd/temperature.c b/test/cmd/temperature.c
index fc0c95f3d81..b86c7d44b33 100644
--- a/test/cmd/temperature.c
+++ b/test/cmd/temperature.c
@@ -34,5 +34,4 @@ static int dm_test_cmd_temperature(struct unit_test_state *uts)
return 0;
}
-
DM_TEST(dm_test_cmd_temperature, UTF_SCAN_FDT | UTF_CONSOLE_REC);
diff --git a/test/cmd/test_echo.c b/test/cmd/test_echo.c
index cde74ebeb61..ee07ab22933 100644
--- a/test/cmd/test_echo.c
+++ b/test/cmd/test_echo.c
@@ -56,5 +56,4 @@ static int lib_test_hush_echo(struct unit_test_state *uts)
}
return 0;
}
-
LIB_TEST(lib_test_hush_echo, 0);
diff --git a/test/cmd/wget.c b/test/cmd/wget.c
index b0feb21dc41..1ce167c4ab4 100644
--- a/test/cmd/wget.c
+++ b/test/cmd/wget.c
@@ -223,5 +223,4 @@ static int net_test_wget(struct unit_test_state *uts)
return 0;
}
-
LIB_TEST(net_test_wget, 0);