/Zephyr-Core-3.5.0/include/zephyr/sys/ |
D | __assert.h | 48 #define __ASSERT_LOC(test) \ argument 50 Z_STRINGIFY(test), \ 55 #define __ASSERT_LOC(test) \ argument 61 #define __ASSERT_LOC(test) \ argument 63 Z_STRINGIFY(test)) 67 #define __ASSERT_LOC(test) \ argument 105 #define __ASSERT_NO_MSG(test) \ argument 107 if (!(test)) { \ 108 __ASSERT_LOC(test); \ 114 #define __ASSERT(test, fmt, ...) \ argument [all …]
|
/Zephyr-Core-3.5.0/subsys/testsuite/ztest/src/ |
D | ztest_new.c | 65 static int cleanup_test(struct ztest_unit_test *test) in cleanup_test() argument 83 PRINT("Test %s failed: Unused mock parameter values\n", test->name); in cleanup_test() 86 PRINT("Test %s failed: Unused mock return values\n", test->name); in cleanup_test() 195 __maybe_unused static void run_test_rules(bool is_before, struct ztest_unit_test *test, void *data) in run_test_rules() argument 200 rule->before_each(test, data); in run_test_rules() 202 rule->after_each(test, data); in run_test_rules() 207 static void run_test_functions(struct ztest_suite_node *suite, struct ztest_unit_test *test, in run_test_functions() argument 211 test->test(data); in run_test_functions() 216 static int get_final_test_result(const struct ztest_unit_test *test, int ret) in get_final_test_result() argument 223 if (strcmp(expectation->test_name, test->name) == 0 && in get_final_test_result() [all …]
|
D | ztest.c | 53 static int cleanup_test(struct unit_test *test) in cleanup_test() argument 72 test->name); in cleanup_test() 76 test->name); in cleanup_test() 195 static void run_test_functions(struct unit_test *test) in run_test_functions() argument 198 test->setup(); in run_test_functions() 200 test->test(); in run_test_functions() 270 static int run_test(struct unit_test *test) in run_test() argument 275 TC_START(test->name); in run_test() 293 run_test_functions(test); in run_test() 295 ret |= cleanup_test(test); in run_test() [all …]
|
D | ztest_rules.c | 10 static void one_cpu_rule_before_each(const struct ztest_unit_test *test, void *data) in one_cpu_rule_before_each() argument 12 ARG_UNUSED(test); in one_cpu_rule_before_each() 16 static void one_cpu_rule_after_each(const struct ztest_unit_test *test, void *data) in one_cpu_rule_after_each() argument 18 ARG_UNUSED(test); in one_cpu_rule_after_each()
|
/Zephyr-Core-3.5.0/subsys/net/pkt_filter/ |
D | ethernet.c | 26 static bool addr_match(struct npf_test *test, struct net_eth_addr *pkt_addr) in addr_match() argument 29 CONTAINER_OF(test, struct npf_test_eth_addr, test); in addr_match() 44 bool npf_eth_src_addr_match(struct npf_test *test, struct net_pkt *pkt) in npf_eth_src_addr_match() argument 48 return addr_match(test, ð_hdr->src); in npf_eth_src_addr_match() 51 bool npf_eth_src_addr_unmatch(struct npf_test *test, struct net_pkt *pkt) in npf_eth_src_addr_unmatch() argument 53 return !npf_eth_src_addr_match(test, pkt); in npf_eth_src_addr_unmatch() 56 bool npf_eth_dst_addr_match(struct npf_test *test, struct net_pkt *pkt) in npf_eth_dst_addr_match() argument 60 return addr_match(test, ð_hdr->dst); in npf_eth_dst_addr_match() 63 bool npf_eth_dst_addr_unmatch(struct npf_test *test, struct net_pkt *pkt) in npf_eth_dst_addr_unmatch() argument 65 return !npf_eth_dst_addr_match(test, pkt); in npf_eth_dst_addr_unmatch() [all …]
|
D | base.c | 82 struct npf_test *test; in apply_tests() local 87 test = rule->tests[i]; in apply_tests() 88 result = test->fn(test, pkt); in apply_tests() 89 NET_DBG("test %p result %d", test, result); in apply_tests() 237 bool npf_iface_match(struct npf_test *test, struct net_pkt *pkt) in npf_iface_match() argument 240 CONTAINER_OF(test, struct npf_test_iface, test); in npf_iface_match() 245 bool npf_iface_unmatch(struct npf_test *test, struct net_pkt *pkt) in npf_iface_unmatch() argument 247 return !npf_iface_match(test, pkt); in npf_iface_unmatch() 250 bool npf_orig_iface_match(struct npf_test *test, struct net_pkt *pkt) in npf_orig_iface_match() argument 253 CONTAINER_OF(test, struct npf_test_iface, test); in npf_orig_iface_match() [all …]
|
/Zephyr-Core-3.5.0/tests/crypto/tinycrypt/ |
D | README.txt | 5 This test verifies that the TinyCrypt AES APIs operate as expected. 32 Performing CCM test #1 (RFC 3610 test vector #1): 35 Performing CCM test #2 (RFC 3610 test vector #2): 38 Performing CCM test #3 (RFC 3610 test vector #3): 41 Performing CCM test #4 (RFC 3610 test vector #7): 44 Performing CCM test #5 (RFC 3610 test vector #8): 47 Performing CCM test #6 (RFC 3610 test vector #9): 50 Performing CCM test #7 (no associated data): 53 Performing CCM test #8 (no payload data):
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/mesh/src/ |
D | main.c | 15 extern struct bst_test_list *test_dfu_install(struct bst_test_list *test); 16 extern struct bst_test_list *test_blob_pst_install(struct bst_test_list *test); 17 extern struct bst_test_list *test_lcd_install(struct bst_test_list *test); 18 extern struct bst_test_list *test_sar_pst_install(struct bst_test_list *test); 21 extern struct bst_test_list *test_adv_install(struct bst_test_list *test); 34 extern struct bst_test_list *test_scanner_install(struct bst_test_list *test); 35 extern struct bst_test_list *test_heartbeat_install(struct bst_test_list *test); 36 extern struct bst_test_list *test_access_install(struct bst_test_list *test); 37 extern struct bst_test_list *test_ivi_install(struct bst_test_list *test); 38 extern struct bst_test_list *test_adv_install(struct bst_test_list *test); [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/disk/disk_performance/ |
D | README.txt | 4 This test is intended to test the performance of disk devices under Zephyr. It 6 The test has the following phases: 8 * Setup test: simply sets up the disk, and reads data such as the sector count 11 * Sequential read test: This test performs sequential reads, first only over one 14 * Random read test: This test performs random reads across the disk, each one 17 * Sequential write test: This test performs sequential writes, first only over 20 * Random write test: This test performs random writes across the disk, each one
|
/Zephyr-Core-3.5.0/samples/subsys/usb/testusb/ |
D | README.rst | 8 to test USB device drivers and the device stack connected to a Linux host 48 /dev/bus/usb/009/016 test 0, 0.000007 secs 49 /dev/bus/usb/009/016 test 9, 4.994475 secs 50 /dev/bus/usb/009/016 test 10, 11.990054 secs 69 /dev/bus/usb/009/017 test 0, 0.000008 secs 70 /dev/bus/usb/009/017 test 1, 2.000001 secs 71 /dev/bus/usb/009/017 test 2, 2.003058 secs 72 /dev/bus/usb/009/017 test 3, 1.054082 secs 73 /dev/bus/usb/009/017 test 4, 1.001010 secs 74 /dev/bus/usb/009/017 test 5, 57.962142 secs [all …]
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/mesh/ |
D | README.rst | 5 subsystem. The tests run on the BabbleSim simulator, using the BabbleSim test 11 src/ directory containing the necessary test harnesses to execute the tests. 13 There's only a single test application for all the Bluetooth mesh BabbleSim 14 tests. The test application is built from this directory, and includes all test 15 harnesses in every build. The overlying bsim test framework selects the harness 16 to use at runtime, using the test identifiers passed in the test scripts. 30 Individual test harnesses can be run outside of ``RunTest()`` by setting the 36 When running test applications independently, make sure to assign the original 39 Example: To debug the ``transport_tx_seg_block`` test harness in the transport 40 seg_block test, change transport/seg_block.sh to [all …]
|
/Zephyr-Core-3.5.0/tests/kernel/workq/work_queue/ |
D | README.txt | 33 Starting sequence test 34 - Initializing test items 35 - Submitting test items 37 - Running test item 1 41 - Running test item 2 45 - Running test item 3 46 - Running test item 4 47 - Running test item 5 48 - Running test item 6 50 Starting resubmit test [all …]
|
/Zephyr-Core-3.5.0/scripts/tests/twister/ |
D | test_harness.py | 65 state=GTEST_START_STATE, suite="suite_name", test="test_name" 84 state=GTEST_START_STATE, suite="suite_name", test="test_name" 87 state=GTEST_PASS_STATE, suite="suite_name", test="test_name" 104 state=GTEST_START_STATE, suite="suite_name", test="test_name" 107 state=GTEST_FAIL_STATE, suite="suite_name", test="test_name" 124 state=GTEST_START_STATE, suite="suite_name", test="test_name" 127 state=GTEST_PASS_STATE, suite="suite_name", test="test_name" 145 state=GTEST_START_STATE, suite="suite_name", test="test0" 148 state=GTEST_PASS_STATE, suite="suite_name", test="test0" 151 state=GTEST_START_STATE, suite="suite_name", test="test1" [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/net/ |
D | net_pkt_filter.h | 38 typedef bool (npf_test_fn_t)(struct npf_test *test, struct net_pkt *pkt); 202 #define Z_NPF_TEST_ADDR(arg) &arg.test 215 struct npf_test test; member 235 .test.fn = npf_iface_match, \ 247 .test.fn = npf_iface_unmatch, \ 259 .test.fn = npf_orig_iface_match, \ 271 .test.fn = npf_orig_iface_unmatch, \ 277 struct npf_test test; member 296 .test.fn = npf_size_inbounds, \ 309 .test.fn = npf_size_inbounds, \ [all …]
|
/Zephyr-Core-3.5.0/tests/kernel/sleep/ |
D | README.txt | 5 This test verifies that cooperative sleep and wakeup APIs operate as 34 Running test suite sleep 36 starting test - test_sleep 41 Testing: test thread sleep + helper thread wakeup test 42 Testing: test thread sleep + isr offload wakeup test 43 Testing: test thread sleep + main wakeup test thread 47 starting test - test_usleep
|
/Zephyr-Core-3.5.0/subsys/tracing/ctf/ |
D | ctf_map.h | 57 #define MAP_NEXT0(test, next, ...) next MAP_OUT argument 58 #define MAP_NEXT1(test, next) MAP_NEXT0(test, next, 0) argument 59 #define MAP_NEXT(test, next) MAP_NEXT1(MAP_GET_END test, next) argument 64 #define MAP_LIST_NEXT1(test, next) MAP_NEXT0(test, MAP_COMMA next, 0) argument 65 #define MAP_LIST_NEXT(test, next) MAP_LIST_NEXT1(MAP_GET_END test, next) argument
|
/Zephyr-Core-3.5.0/tests/lib/mem_alloc/ |
D | README.txt | 6 This test verifies kernel access to the dynamic memory allocation functions 10 or non-functional, and is NOT intended to be a comprehensive test suite 40 Running test suite test_c_lib_dynamic_memalloc 42 starting test - test_malloc 45 starting test - test_free 48 starting test - test_calloc 51 starting test - test_realloc 54 starting test - test_reallocarray 57 starting test - test_memalloc_all 60 starting test - test_memalloc_max
|
/Zephyr-Core-3.5.0/tests/drivers/disk/disk_access/ |
D | README.txt | 4 This test is intended to verify the functionality of disk devices in Zephyr. 5 It is designed to test the NXP USDHC disk driver, but can be used for other 6 disk devices as well. The test has the following phases: 8 * Setup test: Verifies that disk initialization works, as well as testing 10 Note that this test also verifies the memory buffers reserved for read/write 14 * Read test: Verifies that the driver can consistently read sectors. This test 17 The test deliberately will read sectors beyond the end of the disk, and if 22 * Write test: Verifies that the driver can consistently write sectors. This test 23 follows the same flow as the read test, but at each step writes data to the 24 disk and reads it back to verify correctness. The test first performs writes
|
/Zephyr-Core-3.5.0/tests/benchmarks/data_structure_perf/rbtree_perf/src/ |
D | rbtree_perf.c | 134 static void verify_rbtree_perf(struct rbnode *root, struct rbnode *test) in verify_rbtree_perf() argument 138 node_height = search_height_recurse(root, test, node_height); in verify_rbtree_perf() 193 struct rbnode *test = NULL; in ZTEST() local 195 test = rb_get_min(&test_rbtree); in ZTEST() 196 verify_rbtree_perf(root, test); in ZTEST() 198 test = rb_get_max(&test_rbtree); in ZTEST() 199 verify_rbtree_perf(root, test); in ZTEST() 206 test = &nodes[TREE_SIZE/2]; in ZTEST() 207 verify_rbtree_perf(root, test); in ZTEST()
|
/Zephyr-Core-3.5.0/tests/benchmarks/sys_kernel/ |
D | README.txt | 5 The SysKernel test measures the performance of semaphore, 12 MODULE: kernel API test 15 Each test below is repeated 10 times; 23 Starting test. Please wait... 34 Starting test. Please wait... 46 Starting test. Please wait... 56 Starting test. Please wait... 68 Starting test. Please wait... 80 Starting test. Please wait... 90 Starting test. Please wait... [all …]
|
/Zephyr-Core-3.5.0/tests/ztest/fail/ |
D | README.rst | 9 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 ``native_posix`` or 12 - ``ztest_test_fail()`` during either the ``after`` or ``teardown`` phase of the test suite 13 - ``ztest_test_skip()`` during either the ``after`` or ``teardown`` phase of the test suite 14 - ``ztest_test_pass()`` during either the ``after`` or ``teardown`` phase of the test suite 18 The binary by itself, when executed, will fail to run and return a code of ``1``. The main test 19 binary will use ``popen()`` to run the failing test binary and will assert both the return code and
|
D | Kconfig | 5 prompt "Select the type of failure to test" 26 bool "Add a test which fails a zassume() call" 32 default "ERROR: cannot fail in test phase 'after()', bailing" if ZTEST_FAIL_TEST_ASSERT_AFTER 33 default "ERROR: cannot fail in test phase 'teardown()', bailing" if ZTEST_FAIL_TEST_ASSERT_TEARDOWN 34 default "ERROR: cannot skip in test phase 'after()', bailing" if ZTEST_FAIL_TEST_ASSUME_AFTER 35 default "ERROR: cannot skip in test phase 'teardown()', bailing" if ZTEST_FAIL_TEST_ASSUME_TEARDOWN 36 default "ERROR: cannot pass in test phase 'after()', bailing" if ZTEST_FAIL_TEST_PASS_AFTER 37 default "ERROR: cannot pass in test phase 'teardown()', bailing" if ZTEST_FAIL_TEST_PASS_TEARDOWN
|
/Zephyr-Core-3.5.0/tests/subsys/pm/power_mgmt/boards/ |
D | native_posix.overlay | 9 compatible = "test-device-pm"; 13 compatible = "test-device-pm"; 17 compatible = "test-device-pm"; 21 compatible = "test-device-pm";
|
/Zephyr-Core-3.5.0/tests/subsys/sd/sdmmc/ |
D | README.txt | 4 This test is designed to verify the SD subsystem stack implementation, 7 this test also serves as a complete test for the SDHC driver implementation in 9 perform destructive I/O on the card, wiping any data present. The test has 12 * Init test: verify the SD host controller can detect card presence, and 13 test the initialization flow of the SDMMC subsystem to verify that the stack 16 * IOCTL test: verify the SD subsystem correctly implements IOCTL calls required 19 * Read test: verify that single block reads work, followed by multiple 23 * Write test: verify that single block writes work, followed by multiple 27 * R/W test: write data to the SD card, and verify that it is able
|
/Zephyr-Core-3.5.0/tests/subsys/sd/mmc/ |
D | README.txt | 4 This test is designed to verify the MMC protocol stack implementation, 7 this test also serves as a complete test for the SDHC driver implementation in 9 perform destructive I/O on the card, wiping any data present. The test has 12 * Init test: verify the SD host controller can detect card presence, and 13 test the initialization flow of the MMC subsystem to verify that the stack 16 * IOCTL test: verify the SD subsystem correctly implements IOCTL calls required 19 * Read test: verify that single block reads work, followed by multiple 23 * Write test: verify that single block writes work, followed by multiple 27 * R/W test: write data to the MMC card, and verify that it is able
|