Home
last modified time | relevance | path

Searched full:should (Results 1 – 25 of 3130) sorted by relevance

12345678910>>...126

/Zephyr-latest/tests/net/conn_mgr_conn/src/
Dmain.c180 zassert_equal(ifa1_data->init_calls_a, 1, "ifa1->init should be called exactly once."); in ZTEST()
181 zassert_equal(ifa1_data->init_calls_b, 0, "ifa1 should use implementation A"); in ZTEST()
183 zassert_equal(ifa2_data->init_calls_a, 1, "ifa2->init should be called exactly once."); in ZTEST()
184 zassert_equal(ifa2_data->init_calls_b, 0, "ifa2 should use implementation A"); in ZTEST()
186 zassert_equal(ifb_data->init_calls_b, 1, "ifb->init should be called exactly once."); in ZTEST()
187 zassert_equal(ifb_data->init_calls_a, 0, "ifb should use implementation B"); in ZTEST()
189 zassert_equal(ifni_data->init_calls_a, 0, "ifni->init should not be called."); in ZTEST()
190 zassert_equal(ifni_data->init_calls_b, 0, "ifni->init should not be called."); in ZTEST()
203 zassert_equal(net_if_up(ifa1), 0, "net_if_up should not fail"); in ZTEST()
204 zassert_equal(net_if_up(ifa2), 0, "net_if_up should not fail"); in ZTEST()
[all …]
/Zephyr-latest/tests/net/conn_mgr_monitor/src/
Dmain.c297 "No events should be fired if connectivity availability did not change."); in cycle_ready_ifaces()
300 zassert_equal(net_if_up(ifa), 0, "net_if_up should succeed for ifa."); in cycle_ready_ifaces()
306 "NET_EVENT_L4_CONNECTED should be fired when connectivity is gained."); in cycle_ready_ifaces()
308 "Only NET_EVENT_L4_CONNECTED should be fired when connectivity is gained."); in cycle_ready_ifaces()
309 zassert_equal(stats.conn_iface_gen, ifa, "ifa should be blamed."); in cycle_ready_ifaces()
312 zassert_equal(net_if_up(ifb), 0, "net_if_up should succeed for ifb."); in cycle_ready_ifaces()
318 "No events should be fired if connectivity availability did not change."); in cycle_ready_ifaces()
321 zassert_equal(net_if_down(ifa), 0, "net_if_down should succeed for ifa."); in cycle_ready_ifaces()
327 "No events should be fired if connectivity availability did not change."); in cycle_ready_ifaces()
330 zassert_equal(net_if_down(ifb), 0, "net_if_down should succeed for ifb."); in cycle_ready_ifaces()
[all …]
/Zephyr-latest/samples/subsys/pm/latency/
Dsample.yaml14 - "<inf> app: Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE"
16 - "<inf> app: Sleeping for 1.2 seconds, we should enter SUSPEND_TO_IDLE"
18 - "<inf> app: Sleeping for 1.3 seconds, we should enter STANDBY"
21 - "<inf> app: Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE"
23 - "<inf> app: Sleeping for 1.2 seconds, we should enter SUSPEND_TO_IDLE"
25 - "<inf> app: Sleeping for 1.3 seconds, we should enter SUSPEND_TO_IDLE"
30 - "<inf> app: Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE"
32 - "<inf> app: Sleeping for 1.2 seconds, we should enter RUNTIME_IDLE"
34 - "<inf> app: Sleeping for 1.3 seconds, we should enter RUNTIME_IDLE"
39 - "<inf> app: Sleeping for 1.1 seconds, we should stay ACTIVE"
[all …]
/Zephyr-latest/samples/subsys/pm/latency/src/
Dmain.c41 LOG_INF("Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE"); in main()
43 LOG_INF("Sleeping for 1.2 seconds, we should enter SUSPEND_TO_IDLE"); in main()
45 LOG_INF("Sleeping for 1.3 seconds, we should enter STANDBY"); in main()
53 LOG_INF("Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE"); in main()
55 LOG_INF("Sleeping for 1.2 seconds, we should enter SUSPEND_TO_IDLE"); in main()
57 LOG_INF("Sleeping for 1.3 seconds, we should enter SUSPEND_TO_IDLE"); in main()
65 LOG_INF("Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE"); in main()
67 LOG_INF("Sleeping for 1.2 seconds, we should enter RUNTIME_IDLE"); in main()
69 LOG_INF("Sleeping for 1.3 seconds, we should enter RUNTIME_IDLE"); in main()
77 LOG_INF("Sleeping for 1.1 seconds, we should stay ACTIVE"); in main()
[all …]
/Zephyr-latest/tests/net/socket/socketpair/src/
Dunsupported_calls.c21 "bind should fail on a socketpair endpoint"); in ZTEST_USER_F()
23 "bind should set errno to EISCONN"); in ZTEST_USER_F()
27 "connect should fail on a socketpair endpoint"); in ZTEST_USER_F()
29 "connect should set errno to EISCONN"); in ZTEST_USER_F()
33 "listen should fail on a socketpair endpoint"); in ZTEST_USER_F()
35 "listen should set errno to EINVAL"); in ZTEST_USER_F()
39 "accept should fail on a socketpair endpoint"); in ZTEST_USER_F()
41 "accept should set errno to EOPNOTSUPP"); in ZTEST_USER_F()
Dexpected_failures.c22 zassert_equal(res, -1, "socketpair should fail with bad address family"); in ZTEST_USER_F()
24 "errno should be EAFNOSUPPORT with bad address family"); in ZTEST_USER_F()
34 "socketpair should fail with unsupported socket type"); in ZTEST_USER_F()
36 "errno should be EPROTOTYPE with bad socket type"); in ZTEST_USER_F()
46 "socketpair should fail with unsupported protocol"); in ZTEST_USER_F()
48 "errno should be EPROTONOSUPPORT with bad protocol"); in ZTEST_USER_F()
50 /* This is not a POSIX requirement, but should be safe */ in ZTEST_USER_F()
59 "socketpair should fail with invalid socket vector"); in ZTEST_USER_F()
61 "errno should be EFAULT with bad socket vector"); in ZTEST_USER_F()
/Zephyr-latest/tests/lib/lockfree/src/
Dtest_spsc.c26 zassert_not_null(acq, "Acquire should succeed"); in ZTEST()
32 zassert_is_null(acq2, "Acquire should fail"); in ZTEST()
36 zassert_is_null(cons, "Consume should fail"); in ZTEST()
38 zassert_equal(spsc_consumable(&ezspsc), 0, "Consumables should be 0"); in ZTEST()
42 zassert_equal(spsc_consumable(&ezspsc), 1, "Consumables should be 1"); in ZTEST()
46 zassert_equal(spsc_consumable(&ezspsc), 0, "Consumables should be 0"); in ZTEST()
48 zassert_not_null(cons2, "Consume should not fail"); in ZTEST()
49 zassert_equal(*cons2, magic, "Consume value should equal magic"); in ZTEST()
53 zassert_is_null(cons3, "Consume should fail"); in ZTEST()
58 zassert_is_null(acq3, "Acquire should not succeed"); in ZTEST()
[all …]
Dtest_mpsc.c38 zassert_equal(head, stub, "Head should point at stub"); in ZTEST()
39 zassert_equal(tail, stub, "Tail should point at stub"); in ZTEST()
40 zassert_is_null(next, "Next should be null"); in ZTEST()
43 zassert_is_null(node, "Pop on empty queue should return null"); in ZTEST()
49 zassert_equal(head, &push_pop_nodes[0], "Queue head should point at push_pop_node"); in ZTEST()
51 zassert_is_null(next, NULL, "push_pop_node next should point at null"); in ZTEST()
53 zassert_equal(next, &push_pop_nodes[0], "Queue stub should point at push_pop_node"); in ZTEST()
56 zassert_equal(tail, stub, "Tail should point at stub"); in ZTEST()
61 zassert_not_equal(node, stub, "Pop should not return stub"); in ZTEST()
62 zassert_not_null(node, "Pop should not return null"); in ZTEST()
[all …]
/Zephyr-latest/tests/lib/mem_blocks/src/
Dmain.c170 "sys_mem_blocks_alloc should fail with -ENOMEM but not"); in alloc_free()
251 /* blocks 0 and 1 should be taken */ in ZTEST()
260 "sys_mem_blocks_get bitmap failed, bit %i should be set", i); in ZTEST()
264 "sys_mem_blocks_get bitmap failed, bit %i should be cleared", i); in ZTEST()
270 /* get a 2 entiries memory block starting from 1 - should fail */ in ZTEST()
275 /* blocks 0 and 1 should be taken */ in ZTEST()
284 "sys_mem_blocks_get bitmap failed, bit %i should be set", i); in ZTEST()
288 "sys_mem_blocks_get bitmap failed, bit %i should be cleared", i); in ZTEST()
294 /* get a 2 slots block starting from the last one - should fail */ in ZTEST()
299 /* blocks 0 and 1 should be taken */ in ZTEST()
[all …]
/Zephyr-latest/tests/benchmarks/thread_metric/src/
Dtm_porting_layer_zephyr.c62 * the function should return TM_SUCCESS. Otherwise, TM_ERROR should be returned.
81 * This function resumes the specified thread. If successful, the function should
82 * return TM_SUCCESS. Otherwise, TM_ERROR should be returned.
92 * This function suspends the specified thread. If successful, the function should
93 * return TM_SUCCESS. Otherwise, TM_ERROR should be returned.
121 * This function creates the specified queue. If successful, the function should
122 * return TM_SUCCESS. Otherwise, TM_ERROR should be returned.
133 * the function should return TM_SUCCESS. Otherwise, TM_ERROR should be returned.
142 * the function should return TM_SUCCESS. Otherwise, TM_ERROR should be returned.
150 * This function creates the specified semaphore. If successful, the function should
[all …]
/Zephyr-latest/tests/net/lib/tls_credentials/src/
Dmain.c34 /* Function should allow to add credentials of different types in test_credential_add()
47 /* Try to register another credential - should not have memory for that in test_credential_add()
51 zassert_equal(ret, -ENOMEM, "Should have failed with ENOMEM"); in test_credential_add()
56 zassert_equal(ret, -EEXIST, "Should have failed with EEXIST"); in test_credential_add()
86 zassert_equal(ret, -ENOENT, "Should have failed with ENOENT"); in test_credential_get()
92 zassert_equal(ret, -EFBIG, "Should have failed with EFBIG"); in test_credential_get()
104 /* Non-existing credential should return NULL */ in test_credential_internal_iterate()
106 zassert_is_null(key, "Should have return NULL for unknown credential"); in test_credential_internal_iterate()
110 zassert_not_null(cert, "Should have find a credential"); in test_credential_internal_iterate()
113 zassert_not_null(key, "Should have find a credential"); in test_credential_internal_iterate()
[all …]
/Zephyr-latest/soc/raspberrypi/rpi_pico/rp2040/
DKconfig25 # Flash type used by the SoC. The board should select the one used.
30 Configure RP2 to use a W25Q080 flash chip, or similar. Should be selected
37 Should be selected by the board definition, not the user.
42 Configure RP2 to use a IS25LP080 flash chip, or similar. Should be selected
48 Configure RP2 to use a W25X10CL flash chip, or similar. Should be selected
54 Configure RP2 to use a AT25SF128A flash chip, or similar. Should be selected
/Zephyr-latest/dts/bindings/memory-controllers/
Drenesas,smartbond-nor-psram.yaml36 [7:0] should reflect the density value itself and [15:8] should reflect
37 the mask that should be applied to the returned device ID value.
56 Min. time, in nanoseconds, the #CS line should remain inactive between
62 Min. time, in nanoseconds, the #CS line should remain inactive after the execution
70 (should be transmitted in single bus mode).
76 (should be transmitted in quad bus mode).
83 commands, that should be read-cmd and write-cmd respectively, reflect the QPI mode.
111 Mode0 is selected by default as it should be supported by all memory devices.
135 If a non zero value is applied, then Tcem should be taken into
159 This should be useful if 3 dummy bytes are required. In such a case,
[all …]
/Zephyr-latest/tests/drivers/adc/adc_error_cases/src/
Dadc_error_cases.c39 * function should return -EINVAL
56 "adc_read() should return -EINVAL," in ZTEST()
65 * function should return -EINVAL
82 "adc_read() should return -EINVAL," in ZTEST()
91 * function should return -EINVAL
108 "adc_read() should return -EINVAL," in ZTEST()
117 * function should return -EINVAL
134 "adc_read() should return -EINVAL," in ZTEST()
143 * function should return -ENOMEM
160 "adc_read() should return -ENOMEM," in ZTEST()
[all …]
/Zephyr-latest/dts/bindings/regulator/
Dregulator.yaml52 description: boolean, regulator should never be disabled
59 If the bootloader didn't leave it on then OS should turn it on
67 Regulator should be disabled on boot.
81 ramp rate, it should be explicitly initialised to zero
152 indicates that protection should be enabled but limit setting can be
161 should be enabled but limit setting can be omitted.
168 Recovery actions should be initiated. Zero can be passed to disable
169 detection and value '1' indicates that detection should be enabled but
177 indicates that protection should be enabled but limit setting can be
186 should be enabled but limit setting can be omitted. Limit is given as
[all …]
/Zephyr-latest/dts/bindings/pinctrl/
Dnxp,imx-iomuxc.yaml5 This compatible binding should be applied to the device's iomuxc DTS node.
10 The user should not edit the bindings defined within this node to make pinmux
11 selections, but should instead edit the pinctrl groups for their board.
46 # Note: the below properties should ideally be an enum. However, the pinctrl driver
57 and should not be modified by the user.
64 and should not be modified by the user.
71 and should not be modified by the user.
78 and should not be modified by the user.
/Zephyr-latest/samples/
Dsample_definition_and_criteria.rst11 Samples should be limited in scope and should focus only on demonstrating non-trivial or
27 * If a sample can provide output that can be verified, then output should be evaluated against
32 functionality is working as expected, this should not replace dedicated and
38 2. Twister should be able to build every sample.
59 * Do not mark the test as build only. A sample should be able to build *and*
64 file and should be operational on all supported platforms. Do not rely on the
67 * The tests should verify the default configuration of the sample and any
68 optional features documented in the sample's README file. Sample should
73 ``extra_configs`` options in the YAML file. The :file:`prj.conf` file should have the
78 verified on. Those platforms should be listed in the sample's README file.
[all …]
/Zephyr-latest/doc/hardware/peripherals/sensor/
Dindex.rst62 * SHOULD implement attribute setting in a blocking manner.
63 * SHOULD provide the ability to get and set channel scale if supported by the
65 * SHOULD provide the ability to get and set channel sampling rate if supported
71 * SHOULD implement :c:type:`sensor_sample_fetch_t` as a blocking call that
74 * SHOULD implement :c:type:`sensor_channel_get_t` without side effects
76 * SHOULD implement :c:type:`sensor_trigger_set_t` storing the address of the
84 * SHOULD implement :c:type:`sensor_submit_t` using :ref:`rtio` to do non-blocking bus transfers if …
87 * SHOULD implement :c:type:`sensor_submit_t` checking the :c:struct:`rtio_sqe`
89 * SHOULD implement :c:type:`sensor_submit_t` checking all requested channels
91 * SHOULD implement :c:type:`sensor_submit_t` checking the provided buffer
[all …]
/Zephyr-latest/tests/boards/intel_adsp/cache/src/
Dmain.c27 /* After sys_cache_data_flush_and_invd_all(), uncached should be updated */ in ZTEST()
35 /* As cache is invalid, cached should be updated with uncached new value */ in ZTEST()
41 /* Only cached should have changed */ in ZTEST()
47 /* After sys_cache_data_flush_all(), uncached should be updated */ in ZTEST()
53 /* As cache is not invalid, only uncached should be updated */ in ZTEST()
59 /* Now, cached should be updated */ in ZTEST()
/Zephyr-latest/doc/develop/api/
Ddesign_guidelines.rst7 maintenance and enhancements there are some general policies that should
14 configuration structure. The following policies should be followed when
17 * The first parameter should be a pointer to the object most closely
23 * The next parameter(s) should be additional information specific to the
27 * The final parameter should be a ``void *user_data`` pointer carrying
80 practices should be followed.
82 * Any data that is accessed only when the feature is enabled should be
87 enabled should be provided unconditionally. Add a note in the
94 has no other content that file should be conditionally included in
99 other content the feature-specific code should be conditionally
[all …]
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dtestfs_dirops.c36 zassert_equal(fs_open(&file, "/sml/dir1", 0), -EINVAL, "Should return error"); in ZTEST()
37 zassert_equal(fs_open(&file, "/sml/dir2", 0), -EINVAL, "Should return error"); in ZTEST()
51 zassert_equal(fs_open(&file, "/sml/file1", 0), 0, "Open file1 should succeed"); in ZTEST()
53 zassert_equal(fs_open(&file, "/sml/dir1/file2", 0), 0, "Open file2 should succeed"); in ZTEST()
55 zassert_equal(fs_open(&file, "/sml/dir2/file3", 0), 0, "Open file3 should succeed"); in ZTEST()
75 zassert_equal(fs_open(&file, "/sml/file2", 0), -ENOENT, "Should not exist"); in ZTEST()
76 zassert_equal(fs_open(&file, "/sml/file3", 0), -ENOENT, "Should not exist"); in ZTEST()
77 zassert_equal(fs_open(&file, "/sml/dir1/file1", 0), -ENOENT, "Should not exist"); in ZTEST()
78 zassert_equal(fs_open(&file, "/sml/dir1/file3", 0), -ENOENT, "Should not exist"); in ZTEST()
79 zassert_equal(fs_open(&file, "/sml/dir2/file1", 0), -ENOENT, "Should not exist"); in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/mem_protect/demand_paging/ondemand_section/src/
Dmain.c31 zassert_not_equal(faults_before, faults_after, "should have faulted"); in ZTEST()
33 printk("Code should be resident on second call\n"); in ZTEST()
37 zassert_equal(faults_before, faults_after, "should not have faulted"); in ZTEST()
46 zassert_not_equal(faults_before, faults_after, "should have faulted"); in ZTEST()
55 printk("Code should be resident\n"); in ZTEST()
59 zassert_equal(faults_before, faults_after, "should not have faulted"); in ZTEST()
/Zephyr-latest/soc/nxp/imxrt/imxrt10xx/
Dpower.h12 * The clock_set_run function should switch all clocks to their
18 * The clock_set_low_power function should switch all clocks to
20 * Note that the function should, at minimum, switch the arm core to the
26 * The clock_init function should perform any one time initialization that
/Zephyr-latest/doc/security/standards/
Detsi-303645.rst250 - Disclosed vulnerabilities should be acted on in a timely manner.
257 - Manufacturers should continually monitor for, identify and rectify security
266 - All software components in consumer IoT devices should be securely updatable.
288 - Automatic mechanisms should be used for software updates.
295 - The device should check after initialization, and then periodically, whether
304 should be enabled in the initialized state and configurable so that the user
327 - The device should verify the authenticity and integrity of software updates.
343 - The manufacturer should inform the user in a recognizable and apparent manner
352 - The device should notify the user when the application of a software update
370 support and a defined support period should be published by the manufacturer in an
[all …]
/Zephyr-latest/include/zephyr/xen/
Dmemory.h13 * @param domid domain id, where mapping will be added. For unprivileged should
17 * @param gpfn page frame where the source mapping page should appear.
27 * should be DOMID_SELF.
33 * @param gpfns array of page frames where the mapping should appear.
45 * should be DOMID_SELF.
55 * should be DOMID_SELF.
59 * @param mem_flags N/A, should be 0 for Arm.

12345678910>>...126