/Zephyr-latest/tests/ztest/fail/ |
D | testcase.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 - test_framework 9 - unit_testing 10 - native_sim 11 - native_sim/native/64 13 - native_sim 15 testing.fail.unit.assert_after: 18 - CONFIG_ZTEST_FAIL_TEST_ASSERT_AFTER=y 19 testing.fail.unit.assert_teardown: 22 - CONFIG_ZTEST_FAIL_TEST_ASSERT_TEARDOWN=y [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | vcp_vol_ctlr_test.c | 2 * Copyright (c) 2021-2022 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 53 FAIL("VCP state cb err (%d)", err); in vcs_state_cb() 67 FAIL("VCP flags cb err (%d)", err); in vcs_flags_cb() 79 FAIL("VOCS state cb err (%d)", err); in vocs_state_cb() 91 FAIL("VOCS location cb err (%d)", err); in vocs_location_cb() 104 FAIL("VOCS description cb err (%d)", err); in vocs_description_cb() 108 if (strlen(description) > sizeof(g_vocs_desc) - 1) { in vocs_description_cb() 110 strlen(description), sizeof(g_vocs_desc) - 1); in vocs_description_cb() 113 strncpy(g_vocs_desc, description, sizeof(g_vocs_desc) - 1); in vocs_description_cb() [all …]
|
D | mcc_test.c | 2 * Copyright (c) 2019 - 2021 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 87 FAIL("Discovery of MCS failed (%d)\n", err); in mcc_discover_mcs_cb() 97 FAIL("Player Name read failed (%d)\n", err); in mcc_read_player_name_cb() 107 FAIL("Icon Object ID read failed (%d)", err); in mcc_read_icon_obj_id_cb() 118 FAIL("Icon URL read failed (%d)", err); in mcc_read_icon_url_cb() 128 FAIL("Track change notification failed (%d)", err); in mcc_track_changed_ntf_cb() 138 FAIL("Track title read failed (%d)", err); in mcc_read_track_title_cb() 148 FAIL("Track duration read failed (%d)", err); in mcc_read_track_duration_cb() 158 FAIL("Track position read failed (%d)", err); in mcc_read_track_position_cb() [all …]
|
D | vcp_vol_rend_test.c | 5 * SPDX-License-Identifier: Apache-2.0 61 FAIL("VCP state cb err (%d)", err); in vcs_state_cb() 73 FAIL("VCP flags cb err (%d)", err); in vcs_flags_cb() 84 FAIL("VOCS state cb err (%d)", err); in vocs_state_cb() 95 FAIL("VOCS location cb err (%d)", err); in vocs_location_cb() 107 FAIL("VOCS description cb err (%d)", err); in vocs_description_cb() 111 strncpy(g_vocs_desc, description, sizeof(g_vocs_desc) - 1); in vocs_description_cb() 112 g_vocs_desc[sizeof(g_vocs_desc) - 1] = '\0'; in vocs_description_cb() 120 FAIL("AICS state cb err (%d)", err); in aics_state_cb() 134 FAIL("AICS gain setting cb err (%d)", err); in aics_gain_setting_cb() [all …]
|
D | media_controller_test.c | 4 * SPDX-License-Identifier: Apache-2.0 77 FAIL("Local player instance failed (%d)", err); in local_player_instance_cb() 88 FAIL("Discover player failed (%d)\n", err); in discover_player_cb() 99 FAIL("Player Name read failed (%d)\n", err); in player_name_cb() 104 FAIL("Wrong player\n"); in player_name_cb() 114 FAIL("Icon Object ID read failed (%d)", err); in icon_id_cb() 119 FAIL("Wrong player\n"); in icon_id_cb() 130 FAIL("Icon URL read failed (%d)", err); in icon_url_cb() 135 FAIL("Wrong player\n"); in icon_url_cb() 144 FAIL("Track title read failed (%d)", err); in track_title_cb() [all …]
|
D | micp_mic_ctlr_test.c | 2 * Copyright (c) 2021-2022 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 48 FAIL("AICS state cb err (%d)", err); in aics_state_cb() 63 FAIL("AICS gain setting cb err (%d)", err); in aics_gain_setting_cb() 78 FAIL("AICS input type cb err (%d)", err); in aics_input_type_cb() 90 FAIL("AICS status cb err (%d)", err); in aics_status_cb() 103 FAIL("AICS description cb err (%d)", err); in aics_description_cb() 107 if (strlen(description) > sizeof(g_aics_desc) - 1) { in aics_description_cb() 109 strlen(description), sizeof(g_aics_desc) - 1); in aics_description_cb() 112 strncpy(g_aics_desc, description, sizeof(g_aics_desc) - 1); in aics_description_cb() [all …]
|
D | bap_broadcast_assistant_test.c | 2 * Copyright (c) 2021-2025 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 77 FAIL("BASS discover failed (%d)\n", err); in bap_broadcast_assistant_discover_cb() 91 bt_addr_le_to_str(info->addr, le_addr, sizeof(le_addr)); in bap_broadcast_assistant_scan_cb() 94 le_addr, broadcast_id, info->interval * 5 / 4, in bap_broadcast_assistant_scan_cb() 95 info->sid, info->rssi); in bap_broadcast_assistant_scan_cb() 98 bt_addr_le_copy(&g_broadcaster_addr, info->addr); in bap_broadcast_assistant_scan_cb() 107 (void)bin2hex(data->data, data->data_len, metadata, sizeof(metadata)); in metadata_entry() 110 data->data_len, data->type, metadata); in metadata_entry() 123 FAIL("BASS recv state read failed (%d)\n", err); in bap_broadcast_assistant_recv_state_cb() [all …]
|
D | tbs_test.c | 5 * SPDX-License-Identifier: Apache-2.0 103 FAIL("Failed to connect to %s (%u)\n", addr, err); in connected() 125 FAIL("Could not set bearer provider name: %d\n", err); in test_provider_name() 141 FAIL("Could not set bearer provider name: %d\n", err); in test_set_signal_strength() 157 FAIL("Could not set bearer technology: %d\n", err); in test_set_bearer_technology() 173 FAIL("Could not set status flags: %d\n", err); in test_set_status_flags() 190 FAIL("Could not originate call: %d\n", err); in test_answer_terminate() 197 FAIL("Could not remote answer: %d\n", err); in test_answer_terminate() 204 FAIL("Could not terminate call: %d\n", err); in test_answer_terminate() 220 FAIL("Could not originate call: %d\n", err); in test_hold_retrieve() [all …]
|
D | bap_broadcast_sink_test.c | 2 * Copyright (c) 2021-2025 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 150 FAIL("Could not get subgroup channel allocation: %d\n", ret); in valid_base_subgroup() 155 if (chan_cnt == 0 || (BIT(chan_cnt - 1) & SUPPORTED_CHAN_COUNTS) == 0) { in valid_base_subgroup() 181 FAIL("Could not get frame blocks per SDU: %d\n", ret); in valid_base_subgroup() 211 FAIL("Could not get subgroup meta: %d\n", ret); in base_subgroup_cb() 243 FAIL("Failed to parse subgroups: %d\n", ret); in base_recv_cb() 249 FAIL("Failed to BIS indexes: %d\n", ret); in base_recv_cb() 257 FAIL("Assistant has request BIS indexes 0x%08x that is not in the BASE " in base_recv_cb() 272 sink, biginfo->encryption ? "" : "out"); in syncable_cb() [all …]
|
D | bap_broadcast_source_test.c | 2 * Copyright (c) 2021-2024 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 46 /* We always default to the mandatory-to-support preset_16_2_1 */ 65 const struct bt_audio_codec_cfg *stream_codec_cfg = stream->codec_cfg; in validate_stream_codec_cfg() 75 if (stream_codec_cfg->id != BT_HCI_CODING_FORMAT_LC3) { in validate_stream_codec_cfg() 87 FAIL("Invalid frequency: %d Expected: %d\n", freq, exp_freq); in validate_stream_codec_cfg() 92 FAIL("Could not get frequency: %d\n", ret); in validate_stream_codec_cfg() 104 FAIL("Invalid frame duration: %d Exp: %d\n", frm_dur_us, exp_frm_dur_us); in validate_stream_codec_cfg() 109 FAIL("Could not get frame duration: %d\n", ret); in validate_stream_codec_cfg() 120 FAIL("Unexpected channel allocation: 0x%08X", chan_allocation); in validate_stream_codec_cfg() [all …]
|
D | micp_mic_dev_test.c | 2 * Copyright (c) 2020-2022 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 60 FAIL("AICS state cb err (%d)", err); in aics_state_cb() 74 FAIL("AICS gain setting cb err (%d)", err); in aics_gain_setting_cb() 88 FAIL("AICS input type cb err (%d)", err); in aics_input_type_cb() 99 FAIL("AICS status cb err (%d)", err); in aics_status_cb() 111 FAIL("AICS description cb err (%d)", err); in aics_description_cb() 116 strncpy(g_aics_desc, description, sizeof(g_aics_desc) - 1); in aics_description_cb() 117 g_aics_desc[sizeof(g_aics_desc) - 1] = '\0'; in aics_description_cb() 144 FAIL("Could not deactivate AICS (err %d)\n", err); in test_aics_server_only() [all …]
|
D | cap_initiator_broadcast_test.c | 2 * Copyright (c) 2022-2025 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 80 /* High-reliability presets */ 104 test_stream->seq_num = 0U; in broadcast_stream_started_cb() 105 test_stream->tx_cnt = 0U; in broadcast_stream_started_cb() 111 FAIL("Failed to register stream %p for TX: %d\n", stream, err); in broadcast_stream_started_cb() 126 FAIL("Failed to unregister stream %p for TX: %d\n", stream, err); in broadcast_stream_stopped_cb() 162 FAIL("Bluetooth enable failed (err %d)\n", err); in init() 190 FAIL("Failed to register GTBS (err %d)\n", err); in init() 200 FAIL("Failed to register broadcast callbacks: %d\n", err); in init() [all …]
|
D | tbs_client_test.c | 5 * SPDX-License-Identifier: Apache-2.0 59 FAIL("Call could not read call states (%d)\n", err); in tbs_client_call_states_cb() 65 printk("call index %u - state %u\n", call_index, call_state); in tbs_client_call_states_cb() 73 FAIL("Call could not read bearer name (%d)\n", err); in tbs_client_read_bearer_provider_name() 90 FAIL("TBS_CLIENT could not be discovered (%d)\n", err); in tbs_client_discover_cb() 105 FAIL("Invalid CCID: %u", value); in tbs_client_read_ccid_cb() 113 FAIL("Could not get instance by CCID: %u", value); in tbs_client_read_ccid_cb() 133 FAIL("Client hold call error: (%d)\n", err); in tbs_client_hold_call_cb() 146 FAIL("Client retrieve call error: (%d)\n", err); in tbs_client_retrieve_call_cb() 159 FAIL("Client bearer technology error: (%d)\n", err); in tbs_client_technology_cb() [all …]
|
D | ias_client_test.c | 4 * SPDX-License-Identifier: Apache-2.0 28 FAIL("Failed to discover IAS (err %d)\n", err); in discover_cb() 48 FAIL("Failed to send high alert\n"); in test_alert_high() 60 FAIL("Failed to send mild alert\n"); in test_alert_mild() 72 FAIL("Failed to send no alert\n"); in test_alert_stop() 84 FAIL("Failed to discover IAS (err %d)\n", err); in discover_ias() 97 FAIL("Bluetooth discover failed (err %d)\n", err); in test_main() 105 FAIL("Failed to register callbacks (err %d)\n", err); in test_main() 113 FAIL("Scanning failed to start (err %d)\n", err); in test_main()
|
D | csip_set_coordinator_test.c | 3 * Copyright (c) 2020-2024 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 58 FAIL("Release sets failed (%d)\n", err); in csip_set_coordinator_lock_release_cb() 70 FAIL("Lock sets failed (%d)\n", err); in csip_set_coordinator_lock_set_cb() 86 FAIL("Discover failed (%d)\n", err); in csip_discover_cb() 93 const uint8_t rank = member->insts[i].info.rank; in csip_discover_cb() 94 const uint8_t set_size = member->insts[i].info.set_size; in csip_discover_cb() 95 const uint8_t lockable = member->insts[i].info.lockable; in csip_discover_cb() 97 printk("CSIS[%zu]: %p\n", i, &member->insts[i]); in csip_discover_cb() 103 FAIL("Unexpected rank: %u %u", expect_rank, rank); in csip_discover_cb() [all …]
|
/Zephyr-latest/doc/security/ |
D | hardening-tool.rst | 10 At a high-level, hardening a Zephyr application can be seen as a two-fold process: 16 protection, etc.). Some of these features might be hardware-dependent. 21 recommendations to adjust security-related options. 26 .. zephyr-app-commands:: 28 :zephyr-app: samples/hello_world 36 .. code-block:: console 40 CONFIG_BOOT_BANNER | y | n || FAIL 41 CONFIG_BUILD_OUTPUT_STRIPPED | n | y || FAIL 42 CONFIG_FAULT_DUMP | 2 | 0 || FAIL 43 CONFIG_HW_STACK_PROTECTION | n | y || FAIL [all …]
|
/Zephyr-latest/drivers/dac/ |
D | dac_max22017.c | 5 * SPDX-License-Identifier: Apache-2.0 36 uint8_t chan = channel_cfg->channel_id; in max22017_channel_setup() 37 const struct dac_adi_max22017_config *config = dev->config; in max22017_channel_setup() 38 const struct device *parent = config->parent; in max22017_channel_setup() 39 struct max22017_data *data = parent->data; in max22017_channel_setup() 41 if (chan > config->nchannels - 1) { in max22017_channel_setup() 43 return -ENOTSUP; in max22017_channel_setup() 46 if (channel_cfg->resolution != config->resolution) { in max22017_channel_setup() 48 return -ENOTSUP; in max22017_channel_setup() 51 k_mutex_lock(&data->lock, K_FOREVER); in max22017_channel_setup() [all …]
|
/Zephyr-latest/include/zephyr/fs/ |
D | fs_sys.h | 4 * SPDX-License-Identifier: Apache-2.0 33 * @return 0 on success, negative errno code on fail. 43 * @return Number of bytes read on success, negative errno code on fail. 52 * @return Number of bytes written on success, negative errno code on fail. 62 * @return New position in the file or negative errno code on fail. 69 * @return Current position in the file or negative errno code on fail. 77 * @return 0 on success, negative errno code on fail. 84 * @return 0 on success, negative errno code on fail. 91 * @return 0 on success, negative errno code on fail. 105 * @return 0 on success, negative errno code on fail. [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_max22017.c | 5 * SPDX-License-Identifier: Apache-2.0 40 k_mutex_lock(&data->lock, K_FOREVER); in isr_quirk_handler() 42 ret = k_work_submit(&data->int_work); in isr_quirk_handler() 47 k_mutex_unlock(&data->lock); in isr_quirk_handler() 55 struct max22017_data *data = dev->data; in adi_max22017_gpio_set_output() 57 k_mutex_lock(&data->lock, K_FOREVER); in adi_max22017_gpio_set_output() 61 goto fail; in adi_max22017_gpio_set_output() 66 goto fail; in adi_max22017_gpio_set_output() 80 goto fail; in adi_max22017_gpio_set_output() 85 fail: in adi_max22017_gpio_set_output() [all …]
|
/Zephyr-latest/tests/boards/espressif/wifi/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 4 mainmenu "Wi-Fi Test" 9 bool "Enable Wi-Fi test" 15 string "Wi-Fi Test SSID" 18 This option sets the SSID of the Wi-Fi network for testing. 19 It allows you to specify the Wi-Fi SSID that the device will 23 string "Wi-Fi Test PSK" 26 This option sets the Pre-Shared Key (PSK) for the Wi-Fi network 33 Option to use WPA2 Security for Wi-Fi connections. 39 Option to use WPA3 Security for Wi-Fi connections. [all …]
|
/Zephyr-latest/dts/bindings/adc/ |
D | zephyr,adc-emul.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "zephyr,adc-emul" 8 include: adc-controller.yaml 14 description: Number of emulated ADC channels. Should be in 1-32 range. 16 ref-internal-mv: 21 channel setup with ADC_REF_INTERNAL will fail. 23 ref-vdd-mv: 28 channel setup with ADC_REF_VDD_X will fail. 30 ref-external0-mv: 35 channel setup with ADC_REF_EXTERNAL0 will fail. [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_persistence.c | 4 * SPDX-License-Identifier: Apache-2.0 254 int32_t stack_cfg = -1; in test_args_parse() 260 .name = "{configured, new-subs, not-configured}", in test_args_parse() 261 .option = "access-cfg", in test_args_parse() 268 .option = "stack-cfg", in test_args_parse() 278 } else if (!strcmp(access_cfg_str, "new-subs")) { in test_args_parse() 280 } else if (!strcmp(access_cfg_str, "not-configured")) { in test_args_parse() 333 ASSERT_EQUAL(expected->addr, got->addr); in check_mod_pub_params() 334 ASSERT_EQUAL(expected->app_idx, got->app_idx); in check_mod_pub_params() 335 ASSERT_EQUAL(expected->cred_flag, got->cred_flag); in check_mod_pub_params() [all …]
|
D | test_blob.c | 4 * SPDX-License-Identifier: Apache-2.0 39 .option = "use-pull-mode", in test_args_parse() 46 .option = "msg-fail-type", in test_args_parse() 47 .descript = "Message type to fail on" in test_args_parse() 52 .name = "{inactive, start, wait-block, wait-chunk, complete, suspended}", in test_args_parse() 53 .option = "expected-phase", in test_args_parse() 79 partial_block += chunk->size; in blob_chunk_wr() 80 ASSERT_TRUE_MSG(partial_block <= block->size, "Received block is too large\n"); in blob_chunk_wr() 83 if (partial_block == block->size) { in blob_chunk_wr() 85 ASSERT_FALSE_MSG(atomic_test_and_set_bit(block_bitfield, block->number), in blob_chunk_wr() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/ll/bis/src/ |
D | test_past.c | 4 * SPDX-License-Identifier: Apache-2.0 40 #define FAIL(...) \ macro 69 FAIL("Failed to connect to %s (%u)\n", addr, conn_err); in connected() 82 printk("[AD]: %u data_len %u\n", data->type, data->data_len); in eir_found() 84 switch (data->type) { in eir_found() 87 if (data->data_len % sizeof(uint16_t) != 0U) { in eir_found() 88 FAIL("AD malformed\n"); in eir_found() 92 for (i = 0; i < data->data_len; i += sizeof(uint16_t)) { in eir_found() 98 memcpy(&u16, &data->data[i], sizeof(u16)); in eir_found() 106 FAIL("Stop LE scan failed (err %d)\n", err); in eir_found() [all …]
|
/Zephyr-latest/include/zephyr/mgmt/ |
D | updatehub.h | 2 * Copyright (c) 2018-2023 O.S.Systems 4 * SPDX-License-Identifier: Apache-2.0 8 * @brief UpdateHub Firmware Over-the-Air for Zephyr Project. 9 * @defgroup updatehub UpdateHub Firmware Over-the-Air 46 * in pre-determined time intervals. 55 * @return UPDATEHUB_NETWORKING_ERROR fail to connect to the UpdateHub server. 57 * @return UPDATEHUB_METADATA_ERROR fail to parse or to encode the metadata. 69 * @return UPDATEHUB_NETWORKING_ERROR if fail to connect to the server. 70 * @return UPDATEHUB_DOWNLOAD_ERROR fail while downloading the update package. 71 * @return UPDATEHUB_INSTALL_ERROR fail while installing the update package. [all …]
|