mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
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>
This commit is contained in:
parent
725c438c62
commit
b073d48e8d
64 changed files with 4 additions and 95 deletions
|
@ -228,6 +228,9 @@ Declare the test with::
|
|||
}
|
||||
DM_TEST(dm_test_uclassname_what, UTF_SCAN_FDT);
|
||||
|
||||
Note that the convention is to NOT add a blank line before the macro, so that
|
||||
the function it relates to is more obvious.
|
||||
|
||||
Replace 'uclassname' with the name of your uclass, if applicable. Replace 'what'
|
||||
with what you are testing.
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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[])
|
||||
|
|
|
@ -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[])
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -56,5 +56,4 @@ static int lib_test_hush_echo(struct unit_test_state *uts)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_hush_echo, 0);
|
||||
|
|
|
@ -223,5 +223,4 @@ static int net_test_wget(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(net_test_wget, 0);
|
||||
|
|
|
@ -91,5 +91,4 @@ static int test_autoboot(struct unit_test_state *uts)
|
|||
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
COMMON_TEST(test_autoboot, 0);
|
||||
|
|
|
@ -21,7 +21,6 @@ static int dm_test_axi_base(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_axi_base, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
||||
/* Test that sandbox PCI bus numbering works correctly */
|
||||
|
@ -33,7 +32,6 @@ static int dm_test_axi_busnum(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_axi_busnum, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
||||
/* Test that we can use the store device correctly */
|
||||
|
@ -74,5 +72,4 @@ static int dm_test_axi_store(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_axi_store, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
|
|
@ -35,7 +35,6 @@ static int dm_test_bootcount_rtc(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_bootcount_rtc, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
||||
static int dm_test_bootcount_syscon_four_bytes(struct unit_test_state *uts)
|
||||
|
@ -55,7 +54,6 @@ static int dm_test_bootcount_syscon_four_bytes(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_bootcount_syscon_four_bytes,
|
||||
UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
||||
|
@ -76,6 +74,4 @@ static int dm_test_bootcount_syscon_two_bytes(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_bootcount_syscon_two_bytes,
|
||||
UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
DM_TEST(dm_test_bootcount_syscon_two_bytes, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
|
|
@ -46,7 +46,6 @@ static int dm_test_clk_base(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_clk_base, UTF_SCAN_FDT);
|
||||
|
||||
static int dm_test_clk(struct unit_test_state *uts)
|
||||
|
|
|
@ -208,5 +208,4 @@ static int dm_test_clk_ccf(struct unit_test_state *uts)
|
|||
|
||||
return 1;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_clk_ccf, UTF_SCAN_FDT);
|
||||
|
|
|
@ -188,7 +188,6 @@ static int dm_test_compare_node_name(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_compare_node_name, UTF_SCAN_PDATA);
|
||||
|
||||
/* Test that binding with uclass plat setting occurs correctly */
|
||||
|
|
|
@ -47,5 +47,4 @@ static int dm_test_cpu(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_cpu, UTF_SCAN_FDT);
|
||||
|
|
|
@ -56,7 +56,6 @@ static int dm_test_dsa_probe(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_dsa_probe, UTF_SCAN_FDT);
|
||||
|
||||
/* This test sends ping requests with the local address through each DSA port
|
||||
|
@ -78,5 +77,4 @@ static int dm_test_dsa(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_dsa, UTF_SCAN_FDT);
|
||||
|
|
|
@ -54,5 +54,4 @@ static int dm_test_dsi_host(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_dsi_host, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
|
|
@ -528,7 +528,6 @@ static int dm_test_eth_async_arp_reply(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_eth_async_arp_reply, UTF_SCAN_FDT);
|
||||
|
||||
static int sb_check_ping_reply(struct udevice *dev, void *packet,
|
||||
|
@ -613,7 +612,6 @@ static int dm_test_eth_async_ping_reply(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_eth_async_ping_reply, UTF_SCAN_FDT);
|
||||
|
||||
#if IS_ENABLED(CONFIG_IPV6_ROUTER_DISCOVERY)
|
||||
|
@ -659,7 +657,6 @@ static int dm_test_validate_ra(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_validate_ra, 0);
|
||||
|
||||
static int dm_test_process_ra(struct unit_test_state *uts)
|
||||
|
@ -698,7 +695,6 @@ static int dm_test_process_ra(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_process_ra, 0);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -17,5 +17,4 @@ static int dm_test_extcon(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_extcon, UTF_SCAN_FDT);
|
||||
|
|
|
@ -197,7 +197,6 @@ static int dm_test_ffa_ack(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_ffa_ack, UTF_SCAN_FDT | UTF_CONSOLE_REC);
|
||||
|
||||
static int dm_test_ffa_nack(struct unit_test_state *uts)
|
||||
|
@ -256,5 +255,4 @@ static int dm_test_ffa_nack(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_ffa_nack, UTF_SCAN_FDT | UTF_CONSOLE_REC);
|
||||
|
|
|
@ -16,5 +16,4 @@ static int dm_test_fpga(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_fpga, UTF_SCAN_FDT);
|
||||
|
|
|
@ -36,5 +36,4 @@ static int dm_test_hwspinlock_base(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_hwspinlock_base, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
|
|
@ -301,7 +301,6 @@ static int dm_test_i2c_addr_offset(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_i2c_addr_offset, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
||||
static int dm_test_i2c_reg_clrset(struct unit_test_state *uts)
|
||||
|
|
|
@ -53,5 +53,4 @@ static int dm_test_mdio(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_mdio, UTF_SCAN_FDT);
|
||||
|
|
|
@ -76,5 +76,4 @@ static int dm_test_mdio_mux(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_mdio_mux, UTF_SCAN_FDT);
|
||||
|
|
|
@ -17,5 +17,4 @@ static int dm_test_memory(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_memory, UTF_SCAN_FDT);
|
||||
|
|
|
@ -79,5 +79,4 @@ static int dm_test_misc(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_misc, UTF_SCAN_FDT);
|
||||
|
|
|
@ -69,5 +69,4 @@ static int dm_test_nop(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_nop, UTF_FLAT_TREE | UTF_SCAN_FDT);
|
||||
|
|
|
@ -142,5 +142,4 @@ static int dm_test_nvmxip(struct unit_test_state *uts)
|
|||
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_nvmxip, UTF_SCAN_FDT | UTF_CONSOLE_REC);
|
||||
|
|
|
@ -130,7 +130,6 @@ static int dm_test_osd_basics(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_osd_basics, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
||||
static int dm_test_osd_extended(struct unit_test_state *uts)
|
||||
|
@ -214,5 +213,4 @@ static int dm_test_osd_extended(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_osd_extended, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
|
|
@ -59,5 +59,4 @@ static int dm_test_pci_ep_base(struct unit_test_state *uts)
|
|||
ut_asserteq(sandbox_get_pci_ep_irq_count(bus), 10);
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_pci_ep_base, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
|
|
@ -52,7 +52,6 @@ static int dm_test_power_pmic_mc34708_get(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_power_pmic_mc34708_get, UTF_SCAN_FDT);
|
||||
|
||||
/* Test PMIC I/O */
|
||||
|
|
|
@ -23,7 +23,6 @@ static int dm_test_qfw_cpus(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_qfw_cpus, UTF_SCAN_PDATA);
|
||||
|
||||
static int dm_test_qfw_firmware_list(struct unit_test_state *uts)
|
||||
|
@ -37,5 +36,4 @@ static int dm_test_qfw_firmware_list(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_qfw_firmware_list, UTF_SCAN_PDATA);
|
||||
|
|
|
@ -39,7 +39,6 @@ static int dm_test_reboot_mode_gpio(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_reboot_mode_gpio,
|
||||
UTF_PROBE_TEST | UTF_SCAN_FDT | UTF_FLAT_TREE);
|
||||
|
||||
|
@ -65,6 +64,5 @@ static int dm_test_reboot_mode_rtc(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_reboot_mode_rtc,
|
||||
UTF_PROBE_TEST | UTF_SCAN_FDT | UTF_FLAT_TREE);
|
||||
|
|
|
@ -157,7 +157,6 @@ static int dm_test_regmap_getset(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_regmap_getset, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
||||
/* Read polling test */
|
||||
|
|
|
@ -66,7 +66,6 @@ static int dm_test_reset_base(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_reset_base, UTF_SCAN_FDT);
|
||||
|
||||
static int dm_test_reset(struct unit_test_state *uts)
|
||||
|
|
|
@ -202,7 +202,6 @@ static int dm_test_scmi_base(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_scmi_base, UTF_SCAN_FDT);
|
||||
|
||||
static int dm_test_scmi_cmd(struct unit_test_state *uts)
|
||||
|
@ -282,7 +281,6 @@ static int dm_test_scmi_cmd(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_scmi_cmd, UTF_SCAN_FDT);
|
||||
|
||||
static int dm_test_scmi_power_domains(struct unit_test_state *uts)
|
||||
|
@ -388,7 +386,6 @@ static int dm_test_scmi_power_domains(struct unit_test_state *uts)
|
|||
|
||||
return release_sandbox_scmi_test_devices(uts, dev);
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_scmi_power_domains, UTF_SCAN_FDT);
|
||||
|
||||
static int dm_test_scmi_clocks(struct unit_test_state *uts)
|
||||
|
|
|
@ -87,5 +87,4 @@ static int dm_test_serial(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_serial, UTF_SCAN_FDT);
|
||||
|
|
|
@ -60,5 +60,4 @@ static int dm_test_sm(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_sm, UTF_SCAN_FDT);
|
||||
|
|
|
@ -115,5 +115,4 @@ static int dm_test_soc(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_soc, UTF_SCAN_FDT);
|
||||
|
|
|
@ -59,5 +59,4 @@ static int dm_test_sysinfo(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_sysinfo, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
|
|
@ -29,7 +29,6 @@ static int dm_test_tag_ptr(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_tag_ptr, 0);
|
||||
|
||||
/*
|
||||
|
@ -49,7 +48,6 @@ static int dm_test_tag_val(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_tag_val, 0);
|
||||
|
||||
/*
|
||||
|
@ -63,7 +61,6 @@ static int dm_test_tag_inval(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_tag_inval, 0);
|
||||
|
||||
/*
|
||||
|
@ -79,5 +76,4 @@ static int dm_test_tag_del_all(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_tag_del_all, 0);
|
||||
|
|
|
@ -215,5 +215,4 @@ out:
|
|||
|
||||
return rc;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_tee, UTF_SCAN_FDT);
|
||||
|
|
|
@ -1224,5 +1224,4 @@ static int dm_test_read_resource(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
DM_TEST(dm_test_read_resource, UTF_SCAN_PDATA | UTF_SCAN_FDT);
|
||||
|
|
2
test/env/hashtable.c
vendored
2
test/env/hashtable.c
vendored
|
@ -101,7 +101,6 @@ static int env_test_htab_fill(struct unit_test_state *uts)
|
|||
hdestroy_r(&htab);
|
||||
return 0;
|
||||
}
|
||||
|
||||
ENV_TEST(env_test_htab_fill, 0);
|
||||
|
||||
/* Fill the hashtable up halfway an repeateadly delete/create elements
|
||||
|
@ -122,5 +121,4 @@ static int env_test_htab_deletes(struct unit_test_state *uts)
|
|||
hdestroy_r(&htab);
|
||||
return 0;
|
||||
}
|
||||
|
||||
ENV_TEST(env_test_htab_deletes, 0);
|
||||
|
|
|
@ -135,7 +135,6 @@ static int lib_asn1_x509(struct unit_test_state *uts)
|
|||
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_asn1_x509, 0);
|
||||
#endif /* CONFIG_X509_CERTIFICATE_PARSER */
|
||||
|
||||
|
@ -324,7 +323,6 @@ static int lib_asn1_pkcs7(struct unit_test_state *uts)
|
|||
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_asn1_pkcs7, 0);
|
||||
#endif /* CONFIG_PKCS7_MESSAGE_PARSER */
|
||||
|
||||
|
@ -386,6 +384,5 @@ static int lib_asn1_pkey(struct unit_test_state *uts)
|
|||
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_asn1_pkey, 0);
|
||||
#endif /* CONFIG_RSA_PUBLIC_KEY_PARSER */
|
||||
|
|
|
@ -45,5 +45,4 @@ static int lib_test_efi_dp_check_length(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_efi_dp_check_length, 0);
|
||||
|
|
|
@ -65,7 +65,6 @@ static int lib_test_efi_image_region_add(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_efi_image_region_add, 0);
|
||||
|
||||
static int lib_test_efi_image_region_sort(struct unit_test_state *uts)
|
||||
|
@ -158,5 +157,4 @@ static int lib_test_efi_image_region_sort(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_efi_image_region_sort, 0);
|
||||
|
|
|
@ -31,7 +31,6 @@ static int lib_test_hex_to_bin(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_hex_to_bin, 0);
|
||||
|
||||
static int lib_test_hex2bin(struct unit_test_state *uts)
|
||||
|
@ -61,7 +60,6 @@ static int lib_test_hex2bin(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_hex2bin, 0);
|
||||
|
||||
static int lib_test_bin2hex(struct unit_test_state *uts)
|
||||
|
@ -91,5 +89,4 @@ static int lib_test_bin2hex(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_bin2hex, 0);
|
||||
|
|
|
@ -360,7 +360,6 @@ static int lib_test_lmb_noreserved(struct unit_test_state *uts)
|
|||
/* simulate 512 MiB RAM beginning at 1.5GiB */
|
||||
return test_noreserved(uts, 0xE0000000, 4, 1);
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_lmb_noreserved, 0);
|
||||
|
||||
static int lib_test_lmb_unaligned_size(struct unit_test_state *uts)
|
||||
|
|
|
@ -158,7 +158,6 @@ static int lib_rsa_verify_valid(struct unit_test_state *uts)
|
|||
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_rsa_verify_valid, 0);
|
||||
|
||||
/**
|
||||
|
@ -200,6 +199,5 @@ static int lib_rsa_verify_invalid(struct unit_test_state *uts)
|
|||
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_rsa_verify_invalid, 0);
|
||||
#endif /* RSA_VERIFY_WITH_PKEY */
|
||||
|
|
|
@ -169,5 +169,4 @@ static int lib_sscanf(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_sscanf, 0);
|
||||
|
|
|
@ -93,7 +93,6 @@ static int lib_memset(struct unit_test_state *uts)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_memset, 0);
|
||||
|
||||
/**
|
||||
|
@ -157,7 +156,6 @@ static int lib_memcpy(struct unit_test_state *uts)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_memcpy, 0);
|
||||
|
||||
/**
|
||||
|
@ -192,7 +190,6 @@ static int lib_memmove(struct unit_test_state *uts)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_memmove, 0);
|
||||
|
||||
/** lib_memdup() - unit test for memdup() */
|
||||
|
|
|
@ -163,5 +163,4 @@ static int lib_test_aes(struct unit_test_state *uts)
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_aes, 0);
|
||||
|
|
|
@ -25,5 +25,4 @@ static int lib_crc8(struct unit_test_state *uts) {
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_crc8, 0);
|
||||
|
|
|
@ -59,5 +59,4 @@ static int lib_crypt(struct unit_test_state *uts)
|
|||
|
||||
return CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_crypt, 0);
|
||||
|
|
|
@ -41,5 +41,4 @@ static int lib_errno_str(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_errno_str, 0);
|
||||
|
|
|
@ -41,7 +41,6 @@ static int lib_test_print_freq(struct unit_test_state *uts)
|
|||
ut_assertok(test_print_freq(uts, 54321987654321, "54321.99 GHz;"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_print_freq, 0);
|
||||
|
||||
static int test_print_size(struct unit_test_state *uts,
|
||||
|
@ -74,5 +73,4 @@ static int lib_test_print_size(struct unit_test_state *uts)
|
|||
ut_assertok(test_print_size(uts, 54321987654321, "49.4 TiB;"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_print_size, 0);
|
||||
|
|
|
@ -36,5 +36,4 @@ static int lib_test_uuid_to_le(struct unit_test_state *uts)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
LIB_TEST(lib_test_uuid_to_le, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue