Home
last modified time | relevance | path

Searched +full:do +full:- +full:test (Results 1 – 25 of 603) sorted by relevance

12345678910>>...25

/Zephyr-latest/subsys/testsuite/ztest/include/zephyr/
Dztest_error_hook.h4 * SPDX-License-Identifier: Apache-2.0
20 * @details This is used for negative test cases which triggers a fatal
21 * error. Set the param true will still pass the test case when expected
22 * fatal error happened. For normal test case, set it false makes it back
31 * @details This is a test case hook that can run code from test case, in
35 * Usage: Define your own hook function in your test case code, and do what
36 * you want to do after fatal error handler.
38 * By default, it will do nothing before leaving error handler.
50 * @details This is used for negative test cases which triggers a assert
51 * fail. Set the param true will still pass the test case when expected
[all …]
/Zephyr-latest/tests/bsim/babblekit/include/babblekit/
Dtestcase.h4 * SPDX-License-Identifier: Apache-2.0
14 * @brief Mark the test as in progress
16 * Call this at the start of the test entry point.
18 * @param ... format-string and arguments to print to console
22 do { \
24 bs_trace_info_time(2, "Test start: " msg "\n", ##__VA_ARGS__); \
28 * @brief Fail the test and exit
30 * Printf-like function that also terminates the device with an error code.
32 * @param ... format-string and arguments to print to console
36 do { \
[all …]
/Zephyr-latest/subsys/testsuite/ztest/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
6 select TEST
14 int "Test function thread stack size"
33 Enable shell to manage test execution and selection.
40 which a 1cpu type test may execute on a multicpu system. The default
43 value. Please be aware that increasing it for long-running test cases
47 bool "Abort on first failing test"
49 Stop and abort on first failing test. Do not continue with other
64 default -2 if !PREEMPT_ENABLED
65 default -1
[all …]
/Zephyr-latest/include/zephyr/sys/
D__assert.h2 * Copyright (c) 2011-2014 Wind River Systems, Inc.
4 * SPDX-License-Identifier: Apache-2.0
54 #define __ASSERT_LOC(test) \ argument
56 Z_STRINGIFY(test), \
61 #define __ASSERT_LOC(test) \ argument
67 #define __ASSERT_LOC(test) \ argument
69 Z_STRINGIFY(test))
73 #define __ASSERT_LOC(test) \ argument
97 * When the assert test mode is enabled, the default kernel fatal error handler
98 * and the custom assert hook function may return in order to allow the test to
[all …]
/Zephyr-latest/subsys/bluetooth/common/
Dassert.h2 * SPDX-License-Identifier: Apache-2.0
8 #define BT_ASSERT_PRINT(test) __ASSERT_LOC(test) argument
11 #define BT_ASSERT_PRINT(test) argument
23 do { \
31 do { \
/Zephyr-latest/subsys/bluetooth/host/
DCMakeLists.txt1 # SPDX-License-Identifier: Apache-2.0
85 Private security keys such as the LTK will be printed out, do not use in
91 A fixed passkey is easy to deduce during the pairing procedure, do not use in
97 A hardcoded OOB data set will be stored in the image, do not use in
105 Do not use in production."
113 Do not use in production."
122 # Bluetooth Mesh has test dependencies in the host.
123 # In order to compile Bsim tests with these test features
/Zephyr-latest/tests/boards/intel_adsp/smoke/src/
Dtests.h2 * SPDX-License-Identifier: Apache-2.0
10 /* Helper to escape from infinite polling loops with a test failure
14 #define AWAIT(expr) do { \
24 * the start of the test because we want to do unit testing on the
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/dfu/
Ddfu_slot.sh3 # SPDX-License-Identifier: Apache-2.0
7 # Test DFU Slot API. This tests are meant to be executed in sequence to work properly.
8 # - First test creates slots and saves them in storage.
9 # - Second test is rebooted device that restores saved slots from storage and checks their state.
10 # - Third test is rebooted device that deletes all previously added slots
11 # and verifies they do not exist.
12 # - Fourth test is rebooted device that verifies if removing all slots also removed them
15 RunTestFlash dfu_slot dfu_dist_dfu_slot_create -flash_erase
21 RunTestFlash dfu_slot dfu_dist_dfu_slot_check_delete_all -flash_rm
24 RunTestFlash dfu_slot_psa dfu_dist_dfu_slot_create -flash_erase
[all …]
/Zephyr-latest/tests/bsim/bluetooth/ll/multiple_id/
Dprj.conf19 # connections are kept non-overlapping as initially scheduled at connection
23 # Enables simultaneousn MTU exchange in the test
45 # established, a value of 3 is tuned based on this test case execution for 2
47 # test is failing.
48 # If there is buffer leak, this test now should catch it.
53 # room for window widening and do not overlap with each other in that single
61 # Do not use max data PDU size time reservation for connection events spacing
/Zephyr-latest/tests/ztest/fail/
DREADME.rst9 In order to test the actual framework's failure cases, this test suite has to do something unique.
10 There's a subdirectory to this test called 'core'. This project builds a sample as a
13 - ``ztest_test_fail()`` during either the ``after`` or ``teardown`` phase of the test suite
14 - ``ztest_test_skip()`` during either the ``after`` or ``teardown`` phase of the test suite
15 - ``ztest_test_pass()`` during either the ``after`` or ``teardown`` phase of the test suite
19 The binary by itself, when executed, will fail to run and return a code of ``1``. The main test
20 binary will use ``popen()`` to run the failing test binary and will assert both the return code and
/Zephyr-latest/samples/net/sockets/http_client/
Ddocker-test.sh2 # SPDX-License-Identifier: Apache-2.0
4 if [ -z "$RUNNING_FROM_MAIN_SCRIPT" ]; then
5 echo "Do not run this script directly!"
6 echo "Run $ZEPHYR_BASE/scripts/net/run-sample-tests.sh instead."
10 # First the non-tls version
11 echo "HTTP client test"
12 start_configuration "--ip=192.0.2.2 --ip6=2001:db8::2" || return $?
13 start_docker "/usr/local/bin/http-server.py" || return $?
14 start_zephyr "$overlay" "-DCONFIG_NET_SAMPLE_SEND_ITERATIONS=5"
19 if [ $result -ne 0 ]; then
[all …]
/Zephyr-latest/tests/drivers/gpio/gpio_api_1pin/src/
Dtest_config.c4 * SPDX-License-Identifier: Apache-2.0
23 "Test point %d: failed to get pin value", idx); in pin_get_raw_and_verify()
25 "Test point %d: invalid pin get value", idx); in pin_get_raw_and_verify()
33 "Test point %d: failed to set pin value", idx); in pin_set_raw_and_verify()
39 * - Configure pin in in/out mode, verify that gpio_pin_set_raw /
41 * - Verify that GPIO_OUTPUT_HIGH flag is initializing the pin to high.
42 * - Verify that GPIO_OUTPUT_LOW flag is initializing the pin to low.
43 * - Verify that configuring the pin as an output without initializing it
45 * - Verify that it is not possible to change value of a pin via
56 TC_PRINT("Running test on port=%s, pin=%d\n", port->name, TEST_PIN); in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/mipi_dsi/api/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
20 * Test the MIPI generic APIs to test read and write API functionality
42 if (ret != -ENOTSUP) { in ZTEST()
43 zassert(ret >= 0, "Failed to do a generic read", NULL); in ZTEST()
49 * Test the MIPI DCS APIs to test read and write API functionality
72 if (ret != -ENOTSUP) { in ZTEST()
73 zassert(ret >= 0, "Failed to do a dcs read", NULL); in ZTEST()
/Zephyr-latest/doc/develop/test/
Dbsim.rst9 In the Zephyr project we use the `Babblesim`_ simulator to test some of the Zephyr radio protocols,
57 built with some checks which decide if the test is passing or failing. These embedded
61 * Test using the EDTT_ tool, in which a EDTT (python) test controls the embedded applications over
62 an RPC mechanism, and decides if the test passes or not.
63 Today these tests include a very significant subset of the BT qualification test suite.
68 Test coverage and BabbleSim
73 test coverage information.
94 .. code-block:: bash
106 .. code-block:: bash
119 After building the tests' required binaries you can run a test directly using its individual test
[all …]
/Zephyr-latest/tests/bsim/bluetooth/ll/cis/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
22 Skip central and/or peripheral subevent reception to test flush
26 bool "Skip peripheral role subevents to test Flush Timeout"
29 Skip peripheral role subevent reception to test flush timeout
39 bool "Skip central role subevents to test Flush Timeout"
42 Skip central role subevent reception to test flush timeout
55 scanning to overlap with advertising events hence do not use
/Zephyr-latest/scripts/net/
Drun-sample-tests.sh3 # SPDX-License-Identifier: Apache-2.0
5 image=net-tools
6 name=net-tools
7 network=net-tools0
14 docker_test_script_name=docker-test.sh
24 if [ -z "$ZEPHYR_BASE" ]; then
27 elif [ ! -d "$ZEPHYR_BASE" ]; then
32 if [ -z "$NET_TOOLS_BASE" ]; then
36 do
39 l="$d/tools/net-tools"
[all …]
/Zephyr-latest/tests/kernel/xip/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
8 * @brief Test to verify XIP
16 * working. However, the test does do some testing on
25 /* This test relies on these values being one larger than the one before */
36 * This array is deliberately defined outside of the scope of the main test
43 * @brief Test XIP
59 /**test case main entry*/
/Zephyr-latest/samples/net/mqtt_publisher/
Ddocker-test.sh2 # SPDX-License-Identifier: Apache-2.0
4 if [ -z "$RUNNING_FROM_MAIN_SCRIPT" ]; then
5 echo "Do not run this script directly!"
6 echo "Run $ZEPHYR_BASE/scripts/net/run-sample-tests.sh instead."
10 echo "Starting MQTT test"
14 "/usr/local/sbin/mosquitto -v -c /usr/local/etc/mosquitto/mosquitto.conf" || return $?
16 start_zephyr -DOVERLAY_CONFIG=overlay-sample.conf "$overlay"
21 if [ $result -ne 0 ]; then
27 # test TLS
28 echo "Starting MQTT TLS test"
[all …]
/Zephyr-latest/tests/posix/eventfd/
DKconfig3 # SPDX-License-Identifier: Apache-2.0
8 int "Number of seconds to run the test"
12 Duration for the test, in seconds. The range has a reblatively high
18 int "Number of seconds to run the test"
23 int "Size of each thread stack in this test"
26 The minimal stack size required to run a no-op thread.
36 bool "Do not print out regular reports"
42 module-str = eventfd
/Zephyr-latest/tests/bsim/bluetooth/samples/central_hr_peripheral_hr/src/
Dsample_test.c2 * Copyright (c) 2023-2024 Nordic Semiconductor ASA
3 * Copyright (c) 2017-2019 Oticon A/S
5 * SPDX-License-Identifier: Apache-2.0
21 do { \
27 do { \
43 * we consider the test failed in test_sample_tick()
62 .test_descr = "Test based on the peripheral and central HR samples. "
/Zephyr-latest/tests/bsim/bluetooth/audio_samples/bap_unicast_client/src/
Dunicast_client_sample_test.c3 * Copyright (c) 2017-2019 Oticon A/S
5 * SPDX-License-Identifier: Apache-2.0
22 do { \
28 do { \
44 * we consider the test failed in test_unicast_client_sample_tick()
64 .test_descr = "Test based on the unicast client sample. "
/Zephyr-latest/tests/ztest/error_hook/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
24 /* test case type */
46 * Do not optimize to prevent GCC from generating invalid
58 * Do not optimize to prevent GCC from generating invalid
73 /* As this test case only runs when User Mode is enabled, in trigger_fault_access()
82 * Note: this is not applicable for ARM Cortex-M: in trigger_fault_access()
83 * In Cortex-M, nPRIV read access to address 0x0 is generally allowed, in trigger_fault_access()
85 * 0x0. So, de-referencing NULL pointer is not guaranteed to trigger an in trigger_fault_access()
98 * Do not optimize the divide instruction. GCC will generate invalid
115 * test will still apply on the physical board. in trigger_fault_divide_zero()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/audio_samples/cap/acceptor/src/
Dcap_acceptor_sample_test.c2 * Copyright (c) 2023-2024 Nordic Semiconductor ASA
3 * Copyright (c) 2017-2019 Oticon A/S
5 * SPDX-License-Identifier: Apache-2.0
24 do { \
30 do { \
46 * we consider the test failed in test_cap_acceptor_sample_tick()
85 .test_descr = "Test based on the unicast client sample. "
95 /* TODO: Add test of reconnection */
/Zephyr-latest/tests/bsim/bluetooth/audio_samples/cap/initiator/src/
Dcap_initiator_sample_test.c2 * Copyright (c) 2023-2024 Nordic Semiconductor ASA
3 * Copyright (c) 2017-2019 Oticon A/S
5 * SPDX-License-Identifier: Apache-2.0
24 do { \
30 do { \
45 * we consider the test failed in test_cap_initiator_sample_tick()
84 .test_descr = "Test based on the unicast client sample. "
94 /* TODO: Add test of reconnection */
/Zephyr-latest/tests/drivers/i2c/i2c_target_api/
DREADME.txt1 I2C Target API test
8 This test verifies I2C target driver implementations using two I2C
9 controllers on a common bus. The test is supported by a test-specific
11 is pre-loaded into the simulated devices outside the I2C API, and the
15 This test was originally designed for I2C controllers that support both
17 I2C controllers, so this behavior is now opt-in using
21 In slightly more detail the test has these phases:
23 * Use API specific to the simulated EEPROM to pre-populate the simulated
24 devices with device-specific content.
31 simulated device. If CONFIG_APP_DUAL_ROLE_I2C is selected, do this
[all …]

12345678910>>...25