summaryrefslogtreecommitdiff
path: root/zephyr/test/drivers/default/src
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/test/drivers/default/src')
-rw-r--r--zephyr/test/drivers/default/src/console_cmd/vboot_hash.c12
-rw-r--r--zephyr/test/drivers/default/src/integration/usbc/usb_5v_3a_pd_sink.c4
-rw-r--r--zephyr/test/drivers/default/src/integration/usbc/usb_attach_src_snk.c24
-rw-r--r--zephyr/test/drivers/default/src/integration/usbc/usb_pd_bist_shared.c8
-rw-r--r--zephyr/test/drivers/default/src/integration/usbc/usb_pd_ctrl_msg.c18
-rw-r--r--zephyr/test/drivers/default/src/integration/usbc/usb_pd_rev3.c20
-rw-r--r--zephyr/test/drivers/default/src/motion_sense/motion_sense.c6
-rw-r--r--zephyr/test/drivers/default/src/power_common.c4
-rw-r--r--zephyr/test/drivers/default/src/util.c14
9 files changed, 56 insertions, 54 deletions
diff --git a/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c b/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c
index bdc9dddc66..83a14ff46f 100644
--- a/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c
+++ b/zephyr/test/drivers/default/src/console_cmd/vboot_hash.c
@@ -24,7 +24,7 @@ struct console_cmd_hash_fixture {
uint8_t ro_hash[SHA256_DIGEST_SIZE];
};
-ZTEST_F(console_cmd_hash, get_rw)
+ZTEST_F(console_cmd_hash, test_get_rw)
{
const char *outbuffer;
size_t buffer_size;
@@ -50,7 +50,7 @@ ZTEST_F(console_cmd_hash, get_rw)
zassert_ok(!strstr(outbuffer, hash_buf), "Output was: `%s`", outbuffer);
}
-ZTEST_F(console_cmd_hash, get_ro)
+ZTEST_F(console_cmd_hash, test_get_ro)
{
const char *outbuffer;
size_t buffer_size;
@@ -76,7 +76,7 @@ ZTEST_F(console_cmd_hash, get_ro)
zassert_ok(!strstr(outbuffer, hash_buf), "Output was: `%s`", outbuffer);
}
-ZTEST_F(console_cmd_hash, abort)
+ZTEST_F(console_cmd_hash, test_abort)
{
const char *outbuffer;
size_t buffer_size;
@@ -99,7 +99,7 @@ ZTEST_F(console_cmd_hash, abort)
"Output was: `%s`", outbuffer);
}
-ZTEST_F(console_cmd_hash, custom_range)
+ZTEST_F(console_cmd_hash, test_custom_range)
{
char command[256];
uint32_t offset = flash_get_rw_offset(system_get_active_copy());
@@ -140,7 +140,7 @@ ZTEST_F(console_cmd_hash, custom_range)
outbuffer, hash_buf);
}
-ZTEST_F(console_cmd_hash, custom_range_with_nonce)
+ZTEST_F(console_cmd_hash, test_custom_range_with_nonce)
{
char command[256];
uint32_t offset = flash_get_rw_offset(system_get_active_copy());
@@ -183,7 +183,7 @@ ZTEST_F(console_cmd_hash, custom_range_with_nonce)
outbuffer, hash_buf);
}
-ZTEST(console_cmd_hash, invalid)
+ZTEST(console_cmd_hash, test_invalid)
{
/* Invalid subcommand */
zassert_ok(!shell_execute_cmd(get_ec_shell(), "hash foo"));
diff --git a/zephyr/test/drivers/default/src/integration/usbc/usb_5v_3a_pd_sink.c b/zephyr/test/drivers/default/src/integration/usbc/usb_5v_3a_pd_sink.c
index 6795e72c11..930e393691 100644
--- a/zephyr/test/drivers/default/src/integration/usbc/usb_5v_3a_pd_sink.c
+++ b/zephyr/test/drivers/default/src/integration/usbc/usb_5v_3a_pd_sink.c
@@ -224,7 +224,7 @@ ZTEST_F(usb_attach_5v_3a_pd_sink, test_disconnect_power_info)
* Expected Results
* - Sink completes Goto Min PD negotiation
*/
-ZTEST_F(usb_attach_5v_3a_pd_sink, verify_goto_min)
+ZTEST_F(usb_attach_5v_3a_pd_sink, test_verify_goto_min)
{
pd_dpm_request(0, DPM_REQUEST_GOTO_MIN);
k_sleep(K_SECONDS(1));
@@ -243,7 +243,7 @@ ZTEST_F(usb_attach_5v_3a_pd_sink, verify_goto_min)
* Expected Results
* - Sink received ping message
*/
-ZTEST_F(usb_attach_5v_3a_pd_sink, verify_ping_msg)
+ZTEST_F(usb_attach_5v_3a_pd_sink, test_verify_ping_msg)
{
tcpci_snk_emul_clear_ping_received(&fixture->snk_ext);
diff --git a/zephyr/test/drivers/default/src/integration/usbc/usb_attach_src_snk.c b/zephyr/test/drivers/default/src/integration/usbc/usb_attach_src_snk.c
index 401a89cb11..c53a416f77 100644
--- a/zephyr/test/drivers/default/src/integration/usbc/usb_attach_src_snk.c
+++ b/zephyr/test/drivers/default/src/integration/usbc/usb_attach_src_snk.c
@@ -266,7 +266,7 @@ static void integration_usb_attach_snk_then_src_after(void *state)
attach_src_snk_common_after(&fixture->my_emulator_state);
}
-ZTEST_F(integration_usb_attach_src_then_snk, verify_snk_port_pd_info)
+ZTEST_F(integration_usb_attach_src_then_snk, test_verify_snk_port_pd_info)
{
struct ec_response_usb_pd_power_info response;
@@ -304,7 +304,7 @@ ZTEST_F(integration_usb_attach_src_then_snk, verify_snk_port_pd_info)
response.max_power);
}
-ZTEST_F(integration_usb_attach_src_then_snk, verify_src_port_pd_info)
+ZTEST_F(integration_usb_attach_src_then_snk, test_verify_src_port_pd_info)
{
struct ec_response_usb_pd_power_info response;
@@ -335,7 +335,7 @@ ZTEST_F(integration_usb_attach_src_then_snk, verify_src_port_pd_info)
/* current limit */
}
-ZTEST_F(integration_usb_attach_snk_then_src, verify_snk_port_pd_info)
+ZTEST_F(integration_usb_attach_snk_then_src, test_verify_snk_port_pd_info)
{
struct ec_response_usb_pd_power_info response;
@@ -374,7 +374,7 @@ ZTEST_F(integration_usb_attach_snk_then_src, verify_snk_port_pd_info)
response.max_power);
}
-ZTEST_F(integration_usb_attach_snk_then_src, verify_src_port_pd_info)
+ZTEST_F(integration_usb_attach_snk_then_src, test_verify_src_port_pd_info)
{
struct ec_response_usb_pd_power_info response;
@@ -406,7 +406,7 @@ ZTEST_F(integration_usb_attach_snk_then_src, verify_src_port_pd_info)
/* current limit */
}
-ZTEST_F(integration_usb_attach_src_then_snk, verify_snk_port_typec_status)
+ZTEST_F(integration_usb_attach_src_then_snk, test_verify_snk_port_typec_status)
{
struct ec_response_typec_status response =
host_cmd_typec_status(SNK_PORT);
@@ -436,7 +436,7 @@ ZTEST_F(integration_usb_attach_src_then_snk, verify_snk_port_typec_status)
response.power_role);
}
-ZTEST_F(integration_usb_attach_src_then_snk, verify_src_port_typec_status)
+ZTEST_F(integration_usb_attach_src_then_snk, test_verify_src_port_typec_status)
{
struct ec_response_typec_status response =
host_cmd_typec_status(SRC_PORT);
@@ -466,7 +466,7 @@ ZTEST_F(integration_usb_attach_src_then_snk, verify_src_port_typec_status)
response.power_role);
}
-ZTEST_F(integration_usb_attach_snk_then_src, verify_snk_port_typec_status)
+ZTEST_F(integration_usb_attach_snk_then_src, test_verify_snk_port_typec_status)
{
struct ec_response_typec_status response =
host_cmd_typec_status(SNK_PORT);
@@ -496,7 +496,7 @@ ZTEST_F(integration_usb_attach_snk_then_src, verify_snk_port_typec_status)
response.power_role);
}
-ZTEST_F(integration_usb_attach_snk_then_src, verify_src_port_typec_status)
+ZTEST_F(integration_usb_attach_snk_then_src, test_verify_src_port_typec_status)
{
struct ec_response_typec_status response =
host_cmd_typec_status(SRC_PORT);
@@ -591,7 +591,7 @@ static void usb_detach_test_after(void *state)
attach_src_snk_common_after(&fixture->fixture);
}
-ZTEST_F(usb_detach_test, verify_detach_src_snk)
+ZTEST_F(usb_detach_test, test_verify_detach_src_snk)
{
struct emul_state *emul_state = &fixture->fixture;
struct ec_response_usb_pd_power_info src_power_info = { 0 };
@@ -653,7 +653,7 @@ ZTEST_F(usb_detach_test, verify_detach_src_snk)
src_power_info.meas.current_max);
}
-ZTEST_F(usb_detach_test, verify_detach_snk_src)
+ZTEST_F(usb_detach_test, test_verify_detach_snk_src)
{
struct emul_state *emul_state = &fixture->fixture;
struct ec_response_usb_pd_power_info src_power_info = { 0 };
@@ -715,7 +715,7 @@ ZTEST_F(usb_detach_test, verify_detach_snk_src)
src_power_info.meas.current_max);
}
-ZTEST_F(usb_detach_test, verify_detach_sink)
+ZTEST_F(usb_detach_test, test_verify_detach_sink)
{
struct emul_state *emul_state = &fixture->fixture;
struct ec_response_usb_pd_power_info pd_power_info = { 0 };
@@ -757,7 +757,7 @@ ZTEST_F(usb_detach_test, verify_detach_sink)
pd_power_info.max_power);
}
-ZTEST_F(usb_detach_test, verify_detach_source)
+ZTEST_F(usb_detach_test, test_verify_detach_source)
{
struct emul_state *emul_state = &fixture->fixture;
struct ec_response_usb_pd_power_info pd_power_info = { SNK_PORT };
diff --git a/zephyr/test/drivers/default/src/integration/usbc/usb_pd_bist_shared.c b/zephyr/test/drivers/default/src/integration/usbc/usb_pd_bist_shared.c
index 36a417d22c..6284881690 100644
--- a/zephyr/test/drivers/default/src/integration/usbc/usb_pd_bist_shared.c
+++ b/zephyr/test/drivers/default/src/integration/usbc/usb_pd_bist_shared.c
@@ -80,7 +80,7 @@ ZTEST_SUITE(usb_pd_bist_shared, drivers_predicate_post_main,
usb_pd_bist_shared_setup, usb_pd_bist_shared_before,
usb_pd_bist_shared_after, NULL);
-ZTEST_F(usb_pd_bist_shared, verify_bist_shared_mode)
+ZTEST_F(usb_pd_bist_shared, test_verify_bist_shared_mode)
{
uint32_t bist_data;
uint32_t f5v_cap;
@@ -135,7 +135,7 @@ ZTEST_F(usb_pd_bist_shared, verify_bist_shared_mode)
"PDO current didn't decrease after BIST exit");
}
-ZTEST_F(usb_pd_bist_shared, verify_bist_shared_no_snk_entry)
+ZTEST_F(usb_pd_bist_shared, test_verify_bist_shared_no_snk_entry)
{
uint32_t bist_data;
uint32_t f5v_cap;
@@ -169,7 +169,7 @@ ZTEST_F(usb_pd_bist_shared, verify_bist_shared_no_snk_entry)
"PDO current incorrect after bad BIST entry");
}
-ZTEST_F(usb_pd_bist_shared, verify_bist_shared_exit_no_action)
+ZTEST_F(usb_pd_bist_shared, test_verify_bist_shared_exit_no_action)
{
uint32_t bist_data;
uint32_t f5v_cap;
@@ -193,7 +193,7 @@ ZTEST_F(usb_pd_bist_shared, verify_bist_shared_exit_no_action)
zassert_equal(f5v_cap, 0, "Received unexpected source cap");
}
-ZTEST_F(usb_pd_bist_shared, verify_control_bist_shared_mode)
+ZTEST_F(usb_pd_bist_shared, test_verify_control_bist_shared_mode)
{
uint32_t f5v_cap;
diff --git a/zephyr/test/drivers/default/src/integration/usbc/usb_pd_ctrl_msg.c b/zephyr/test/drivers/default/src/integration/usbc/usb_pd_ctrl_msg.c
index 0e5d3eecad..af7564635c 100644
--- a/zephyr/test/drivers/default/src/integration/usbc/usb_pd_ctrl_msg.c
+++ b/zephyr/test/drivers/default/src/integration/usbc/usb_pd_ctrl_msg.c
@@ -158,7 +158,7 @@ ZTEST_SUITE(usb_pd_ctrl_msg_test_source, drivers_predicate_post_main,
usb_pd_ctrl_msg_source_setup, usb_pd_ctrl_msg_before,
usb_pd_ctrl_msg_after, NULL);
-ZTEST_F(usb_pd_ctrl_msg_test_sink, verify_vconn_swap)
+ZTEST_F(usb_pd_ctrl_msg_test_sink, test_verify_vconn_swap)
{
struct usb_pd_ctrl_msg_test_fixture *super_fixture = &fixture->fixture;
struct ec_response_typec_status snk_resp = { 0 };
@@ -181,7 +181,7 @@ ZTEST_F(usb_pd_ctrl_msg_test_sink, verify_vconn_swap)
"SNK Returned vconn_role=%u", snk_resp.vconn_role);
}
-ZTEST_F(usb_pd_ctrl_msg_test_sink, verify_pr_swap)
+ZTEST_F(usb_pd_ctrl_msg_test_sink, test_verify_pr_swap)
{
struct usb_pd_ctrl_msg_test_fixture *super_fixture = &fixture->fixture;
struct ec_response_typec_status snk_resp = { 0 };
@@ -228,7 +228,7 @@ ZTEST_F(usb_pd_ctrl_msg_test_sink, verify_pr_swap)
* Expected Results
* - TypeC status query returns PD_ROLE_DFP
*/
-ZTEST_F(usb_pd_ctrl_msg_test_sink, verify_dr_swap)
+ZTEST_F(usb_pd_ctrl_msg_test_sink, test_verify_dr_swap)
{
struct ec_response_typec_status typec_status =
host_cmd_typec_status(TEST_USB_PORT);
@@ -250,7 +250,7 @@ ZTEST_F(usb_pd_ctrl_msg_test_sink, verify_dr_swap)
* Expected Results
* - Data role does not change on TEST_USB_PORT after DR Swap request.
*/
-ZTEST_F(usb_pd_ctrl_msg_test_source, verify_dr_swap_rejected)
+ZTEST_F(usb_pd_ctrl_msg_test_source, test_verify_dr_swap_rejected)
{
struct usb_pd_ctrl_msg_test_fixture *super_fixture = &fixture->fixture;
struct ec_response_typec_status typec_status = { 0 };
@@ -286,7 +286,7 @@ ZTEST_F(usb_pd_ctrl_msg_test_source, verify_dr_swap_rejected)
* Expected Results
* - Data role changes after DPM DR Swap request
*/
-ZTEST_F(usb_pd_ctrl_msg_test_source, verify_dpm_dr_swap)
+ZTEST_F(usb_pd_ctrl_msg_test_source, test_verify_dpm_dr_swap)
{
struct ec_response_typec_status typec_status = { 0 };
@@ -313,7 +313,7 @@ ZTEST_F(usb_pd_ctrl_msg_test_source, verify_dpm_dr_swap)
* Expected Results
* - TypeC Status Host Command reveals sink capabilility PDOs.
*/
-ZTEST(usb_pd_ctrl_msg_test_source, verify_dpm_get_sink_cap)
+ZTEST(usb_pd_ctrl_msg_test_source, test_verify_dpm_get_sink_cap)
{
struct ec_response_typec_status typec_status = { 0 };
@@ -334,7 +334,7 @@ ZTEST(usb_pd_ctrl_msg_test_source, verify_dpm_get_sink_cap)
* Expected Results
* - TypeC Status Host Command reveals sink capabilility PDOs.
*/
-ZTEST(usb_pd_ctrl_msg_test_sink, verify_get_sink_cap)
+ZTEST(usb_pd_ctrl_msg_test_sink, test_verify_get_sink_cap)
{
struct ec_response_typec_status typec_status = { 0 };
@@ -354,7 +354,7 @@ ZTEST(usb_pd_ctrl_msg_test_sink, verify_get_sink_cap)
* Expected Results
* - BIST occurs and we transition back to READY state
*/
-ZTEST_F(usb_pd_ctrl_msg_test_source, verify_bist_tx_mode2)
+ZTEST_F(usb_pd_ctrl_msg_test_source, test_verify_bist_tx_mode2)
{
struct usb_pd_ctrl_msg_test_fixture *super_fixture = &fixture->fixture;
uint32_t bdo = BDO(BDO_MODE_CARRIER2, 0);
@@ -381,7 +381,7 @@ ZTEST_F(usb_pd_ctrl_msg_test_source, verify_bist_tx_mode2)
* Expected Results
* - Partner remains in BIST_TX state until hard reset is received.
*/
-ZTEST_F(usb_pd_ctrl_msg_test_source, verify_bist_tx_test_data)
+ZTEST_F(usb_pd_ctrl_msg_test_source, test_verify_bist_tx_test_data)
{
struct usb_pd_ctrl_msg_test_fixture *super_fixture = &fixture->fixture;
uint32_t bdo = BDO(BDO_MODE_TEST_DATA, 0);
diff --git a/zephyr/test/drivers/default/src/integration/usbc/usb_pd_rev3.c b/zephyr/test/drivers/default/src/integration/usbc/usb_pd_rev3.c
index 6a93e4704d..0ae92b88b4 100644
--- a/zephyr/test/drivers/default/src/integration/usbc/usb_pd_rev3.c
+++ b/zephyr/test/drivers/default/src/integration/usbc/usb_pd_rev3.c
@@ -176,7 +176,7 @@ ZTEST_F(usb_attach_5v_3a_pd_source_rev3, test_batt_cap_invalid)
"Invalid battery ref bit should be set");
}
-ZTEST_F(usb_attach_5v_3a_pd_source_rev3, verify_typec_status_using_rmdo)
+ZTEST_F(usb_attach_5v_3a_pd_source_rev3, test_verify_typec_status_using_rmdo)
{
struct ec_params_typec_status params = { .port = TEST_PORT };
struct ec_response_typec_status response;
@@ -190,7 +190,7 @@ ZTEST_F(usb_attach_5v_3a_pd_source_rev3, verify_typec_status_using_rmdo)
zassert_equal(response.sop_revision, fixture->source_5v_3a.rmdo >> 16);
}
-ZTEST_F(usb_attach_5v_3a_pd_source_rev3, verify_alert_msg)
+ZTEST_F(usb_attach_5v_3a_pd_source_rev3, test_verify_alert_msg)
{
zassert_equal(pd_broadcast_alert_msg(ADO_OTP_EVENT), EC_SUCCESS);
@@ -198,7 +198,8 @@ ZTEST_F(usb_attach_5v_3a_pd_source_rev3, verify_alert_msg)
zassert_true(fixture->src_ext.alert_received);
}
-ZTEST_F(usb_attach_5v_3a_pd_source_rev3, verify_alert_on_power_state_change)
+ZTEST_F(usb_attach_5v_3a_pd_source_rev3,
+ test_verify_alert_on_power_state_change)
{
/* Suspend and check partner received Alert and Status messages */
hook_notify(HOOK_CHIPSET_SUSPEND);
@@ -238,7 +239,7 @@ ZTEST_F(usb_attach_5v_3a_pd_source_rev3, verify_alert_on_power_state_change)
}
ZTEST_F(usb_attach_5v_3a_pd_source_rev3,
- verify_simultaneous_alert_status_resolution)
+ test_verify_simultaneous_alert_status_resolution)
{
zassert_false(fixture->src_ext.alert_received);
zassert_false(fixture->src_ext.status_received);
@@ -292,7 +293,7 @@ ZTEST_F(usb_attach_5v_3a_pd_source_rev3,
}
ZTEST_F(usb_attach_5v_3a_pd_source_rev3,
- verify_inaction_on_pd_button_press_while_awake)
+ test_verify_inaction_on_pd_button_press_while_awake)
{
uint32_t ado;
@@ -311,7 +312,7 @@ ZTEST_F(usb_attach_5v_3a_pd_source_rev3,
}
ZTEST_F(usb_attach_5v_3a_pd_source_rev3,
- verify_inaction_on_invalid_pd_button_press)
+ test_verify_inaction_on_invalid_pd_button_press)
{
uint32_t ado;
@@ -344,7 +345,7 @@ ZTEST_F(usb_attach_5v_3a_pd_source_rev3,
k_sleep(K_SECONDS(10));
}
-ZTEST_F(usb_attach_5v_3a_pd_source_rev3, verify_startup_on_pd_button_press)
+ZTEST_F(usb_attach_5v_3a_pd_source_rev3, test_verify_startup_on_pd_button_press)
{
uint32_t ado;
@@ -376,7 +377,8 @@ ZTEST_F(usb_attach_5v_3a_pd_source_rev3, verify_startup_on_pd_button_press)
zassert_true(chipset_in_state(CHIPSET_STATE_ON));
}
-ZTEST_F(usb_attach_5v_3a_pd_source_rev3, verify_chipset_on_pd_button_behavior)
+ZTEST_F(usb_attach_5v_3a_pd_source_rev3,
+ test_verify_chipset_on_pd_button_behavior)
{
uint32_t ado;
@@ -443,7 +445,7 @@ ZTEST_F(usb_attach_5v_3a_pd_source_rev3, verify_chipset_on_pd_button_behavior)
k_sleep(K_SECONDS(10));
}
-ZTEST_F(usb_attach_5v_3a_pd_source_rev3, verify_uvdm_not_supported)
+ZTEST_F(usb_attach_5v_3a_pd_source_rev3, test_verify_uvdm_not_supported)
{
uint32_t vdm_header = VDO(USB_VID_GOOGLE, 0 /* unstructured */, 0);
diff --git a/zephyr/test/drivers/default/src/motion_sense/motion_sense.c b/zephyr/test/drivers/default/src/motion_sense/motion_sense.c
index 8291e0e1c6..9ea6509fe3 100644
--- a/zephyr/test/drivers/default/src/motion_sense/motion_sense.c
+++ b/zephyr/test/drivers/default/src/motion_sense/motion_sense.c
@@ -12,7 +12,7 @@ extern enum chipset_state_mask sensor_active;
ZTEST_SUITE(motion_sense, drivers_predicate_post_main, NULL, NULL, NULL, NULL);
-ZTEST_USER(motion_sense, ec_motion_sensor_fill_values)
+ZTEST_USER(motion_sense, test_ec_motion_sensor_fill_values)
{
struct ec_response_motion_sensor_data dst = {
.data = { 1, 2, 3 },
@@ -25,7 +25,7 @@ ZTEST_USER(motion_sense, ec_motion_sensor_fill_values)
zassert_equal(dst.data[2], v[2]);
}
-ZTEST_USER(motion_sense, ec_motion_sensor_clamp_i16)
+ZTEST_USER(motion_sense, test_ec_motion_sensor_clamp_i16)
{
zassert_equal(ec_motion_sensor_clamp_i16(0), 0);
zassert_equal(ec_motion_sensor_clamp_i16(200), 200);
@@ -36,7 +36,7 @@ ZTEST_USER(motion_sense, ec_motion_sensor_clamp_i16)
NULL);
}
-ZTEST_USER(motion_sense, ec_motion_sense_get_ec_config)
+ZTEST_USER(motion_sense, test_ec_motion_sense_get_ec_config)
{
/* illegal state, should be translated to S5 */
sensor_active = 42;
diff --git a/zephyr/test/drivers/default/src/power_common.c b/zephyr/test/drivers/default/src/power_common.c
index 58ca3977f9..529258e553 100644
--- a/zephyr/test/drivers/default/src/power_common.c
+++ b/zephyr/test/drivers/default/src/power_common.c
@@ -448,7 +448,7 @@ ZTEST(power_common, test_power_board_system_is_idle)
/**
* Test power console command
*/
-ZTEST(power_common, power_console_cmd)
+ZTEST(power_common, test_power_console_cmd)
{
const char *buffer;
size_t buffer_size;
@@ -484,7 +484,7 @@ ZTEST(power_common, power_console_cmd)
/**
* Test powerinfo console command
*/
-ZTEST_USER(power_common, powerinfo_console_cmd)
+ZTEST_USER(power_common, test_powerinfo_console_cmd)
{
char expected_buffer[32];
diff --git a/zephyr/test/drivers/default/src/util.c b/zephyr/test/drivers/default/src/util.c
index 342ce9b971..ac5aed9736 100644
--- a/zephyr/test/drivers/default/src/util.c
+++ b/zephyr/test/drivers/default/src/util.c
@@ -8,7 +8,7 @@
#include <zephyr/fff.h>
#include <zephyr/ztest.h>
-ZTEST(util, reverse)
+ZTEST(util, test_reverse)
{
uint8_t input[] = { 0, 1, 2, 3, 4 };
uint8_t expected[] = { 4, 3, 2, 1, 0 };
@@ -18,7 +18,7 @@ ZTEST(util, reverse)
zassert_mem_equal(input, expected, sizeof(input), NULL);
}
-ZTEST(util, parse_offset_size__normal)
+ZTEST(util, test_parse_offset_size__normal)
{
const char *argv[] = { "cmd", "123", "456" };
int argc = ARRAY_SIZE(argv);
@@ -30,7 +30,7 @@ ZTEST(util, parse_offset_size__normal)
zassert_equal(456, size, NULL);
}
-ZTEST(util, parse_offset_size__invalid_param1)
+ZTEST(util, test_parse_offset_size__invalid_param1)
{
const char *argv[] = { "cmd", "xyz" /* <- bad */, "456" };
int argc = ARRAY_SIZE(argv);
@@ -41,7 +41,7 @@ ZTEST(util, parse_offset_size__invalid_param1)
parse_offset_size(argc, argv, 1, &offset, &size), NULL);
}
-ZTEST(util, parse_offset_size__invalid_param2)
+ZTEST(util, test_parse_offset_size__invalid_param2)
{
const char *argv[] = { "cmd", "123", "xyz" /* <- bad */ };
int argc = ARRAY_SIZE(argv);
@@ -52,7 +52,7 @@ ZTEST(util, parse_offset_size__invalid_param2)
parse_offset_size(argc, argv, 1, &offset, &size), NULL);
}
-ZTEST(util, wait_for_ready)
+ZTEST(util, test_wait_for_ready)
{
uint32_t reg;
@@ -66,7 +66,7 @@ ZTEST(util, wait_for_ready)
wait_for_ready(&reg, 1, 1);
}
-ZTEST(util, binary_from_bits)
+ZTEST(util, test_binary_from_bits)
{
int input[] = {
0,
@@ -79,7 +79,7 @@ ZTEST(util, binary_from_bits)
zassert_equal(0, binary_from_bits(NULL, 0), NULL);
}
-ZTEST(util, ternary_from_bits)
+ZTEST(util, test_ternary_from_bits)
{
int input[] = {
0,