Home
last modified time | relevance | path

Searched refs:ut_assert (Results 1 – 25 of 30) sorted by relevance

12

/third_party/uboot/u-boot-2020.01/test/
Dunicode_ut.c67 ut_assert(copy != c4); in unicode_test_u16_strdup()
68 ut_assert(!memcmp(copy, c4, sizeof(c4))); in unicode_test_u16_strdup()
80 ut_assert(r == copy); in unicode_test_u16_strcpy()
81 ut_assert(!memcmp(copy, c1, sizeof(c1))); in unicode_test_u16_strcpy()
96 ut_assert(!strncmp(&buf[2], d2, 7)); in unicode_test_string16()
97 ut_assert(!buf[9]); in unicode_test_string16()
102 ut_assert(!strncmp(&buf[5], d4, 12)); in unicode_test_string16()
103 ut_assert(!buf[17]); in unicode_test_string16()
108 ut_assert(!strncmp(buf, d4, 8)); in unicode_test_string16()
109 ut_assert(!buf[14]); in unicode_test_string16()
[all …]
/third_party/uboot/u-boot-2020.01/test/dm/
Dcore.c116 ut_assert(dms->root); in dm_test_autobind()
124 ut_assert(1 < list_count_items(&gd->uclass_root)); in dm_test_autobind()
125 ut_assert(0 < list_count_items(&gd->dm_root->child_head)); in dm_test_autobind()
132 ut_assert(!(dev->flags & DM_FLAG_ACTIVATED)); in dm_test_autobind()
135 ut_assert(dm_testdrv_op_count[DM_TEST_OP_BIND] == 3); in dm_test_autobind()
149 ut_assert(uc); in dm_test_autobind_uclass_pdata_alloc()
155 ut_assert(uc->uc_drv->per_device_platdata_auto_alloc_size); in dm_test_autobind_uclass_pdata_alloc()
160 ut_assert(dev); in dm_test_autobind_uclass_pdata_alloc()
163 ut_assert(uc_pdata); in dm_test_autobind_uclass_pdata_alloc()
183 ut_assert(dev); in dm_test_autobind_uclass_pdata_valid()
[all …]
Dtee.c67 ut_assert(dev); in test_tee()
69 ut_assert(!state->session); in test_tee()
72 ut_assert(!rc); in test_tee()
73 ut_assert(session == state->session); in test_tee()
76 ut_assert(!rc); in test_tee()
79 ut_assert(!rc); in test_tee()
80 ut_assert(!state->session); in test_tee()
82 ut_assert(!state->num_shms); in test_tee()
84 ut_assert(!rc); in test_tee()
85 ut_assert(state->num_shms == 1); in test_tee()
[all …]
Dtest-uclass.c35 ut_assert(!device_active(dev)); in test_post_bind()
38 ut_assert(uc_pdata); in test_post_bind()
59 ut_assert(priv); in test_pre_probe()
60 ut_assert(device_active(dev)); in test_pre_probe()
75 ut_assert(priv); in test_post_probe()
76 ut_assert(device_active(dev)); in test_post_probe()
85 ut_assert(pdata); in test_post_probe()
86 ut_assert(prev_uc_priv); in test_post_probe()
103 ut_assert(uc->priv); in test_init()
Deth.c281 ut_assert(arp_is_waiting()); in sb_check_arp_reply()
284 ut_assert(memcmp(eth->et_src, net_ethaddr, ARP_HLEN) == 0); in sb_check_arp_reply()
285 ut_assert(memcmp(eth->et_dest, priv->fake_host_hwaddr, ARP_HLEN) == 0); in sb_check_arp_reply()
286 ut_assert(eth->et_protlen == htons(PROT_ARP)); in sb_check_arp_reply()
288 ut_assert(arp->ar_hrd == htons(ARP_ETHER)); in sb_check_arp_reply()
289 ut_assert(arp->ar_pro == htons(PROT_IP)); in sb_check_arp_reply()
290 ut_assert(arp->ar_hln == ARP_HLEN); in sb_check_arp_reply()
291 ut_assert(arp->ar_pln == ARP_PLEN); in sb_check_arp_reply()
292 ut_assert(memcmp(&arp->ar_sha, net_ethaddr, ARP_HLEN) == 0); in sb_check_arp_reply()
293 ut_assert(net_read_ip(&arp->ar_spa).s_addr == net_ip.s_addr); in sb_check_arp_reply()
[all …]
Dsyscon.c59 ut_assert(map); in dm_test_syscon_by_phandle()
60 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle()
66 ut_assert(map); in dm_test_syscon_by_phandle()
67 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle()
73 ut_assert(map); in dm_test_syscon_by_phandle()
74 ut_assert(!IS_ERR(map)); in dm_test_syscon_by_phandle()
77 ut_assert(IS_ERR(syscon_regmap_lookup_by_phandle(dev, "not-present"))); in dm_test_syscon_by_phandle()
Dofnode.c13 ut_assert(ofnode_valid(root_node)); in dm_test_ofnode_compatible()
14 ut_assert(ofnode_device_is_compatible(root_node, "sandbox")); in dm_test_ofnode_compatible()
29 ut_assert(ofnode_valid(node)); in dm_test_ofnode_by_prop_value()
31 ut_assert(str && !strcmp(str, propval)); in dm_test_ofnode_by_prop_value()
40 ut_assert(str && !strcmp(str, propval)); in dm_test_ofnode_by_prop_value()
53 ut_assert(ofnode_valid(node)); in dm_test_ofnode_fmap()
Dtest-fdt.c170 ut_assert(!ret); in dm_check_devices()
183 ut_assert(!dm_check_operations(uts, dev, base, in dm_check_devices()
200 ut_assert(!ret); in dm_test_fdt()
203 ut_assert(!ret); in dm_test_fdt()
211 ut_assert(!ret); in dm_test_fdt()
212 ut_assert(!dev_get_priv(dev)); in dm_test_fdt()
213 ut_assert(dev->platdata); in dm_test_fdt()
251 ut_assert(!ret); in dm_test_fdt_pre_reloc()
254 ut_assert(!ret); in dm_test_fdt_pre_reloc()
330 ut_assert(node > 0); in dm_test_fdt_offset()
[all …]
Dbus.c135 ut_assert(!dm_check_devices(uts, num_devices)); in dm_test_bus_children()
154 ut_assert(dev->flags & DM_FLAG_ACTIVATED); in dm_test_bus_children_funcs()
160 ut_assert(!(dev->flags & DM_FLAG_ACTIVATED)); in dm_test_bus_children_funcs()
163 ut_assert(dev->flags & DM_FLAG_ACTIVATED); in dm_test_bus_children_funcs()
191 ut_assert(node > 0); in dm_test_bus_children_of_offset()
194 ut_assert(!(dev->flags & DM_FLAG_ACTIVATED)); in dm_test_bus_children_of_offset()
197 ut_assert(dev->flags & DM_FLAG_ACTIVATED); in dm_test_bus_children_of_offset()
250 ut_assert(NULL != parent_data); in test_bus_parent_data()
261 ut_assert(NULL != parent_data); in test_bus_parent_data()
388 ut_assert(plat != NULL); in test_bus_parent_platdata()
[all …]
Dregulator.c79 ut_assert(uc_pdata); in dm_test_power_regulator_get()
106 ut_assert(uc_pdata); in dm_test_power_regulator_set_get_voltage()
112 ut_assert(val_get >= 0); in dm_test_power_regulator_set_get_voltage()
133 ut_assert(uc_pdata); in dm_test_power_regulator_set_get_current()
139 ut_assert(val_get >= 0); in dm_test_power_regulator_set_get_current()
148 ut_assert(uc_pdata); in dm_test_power_regulator_set_get_current()
232 ut_assert(uc_pdata); in dm_test_power_regulator_set_get_suspend_voltage()
240 ut_assert(val_get >= 0); in dm_test_power_regulator_set_get_suspend_voltage()
381 ut_assert(dev_list[i]); in dm_test_power_regulator_autoset_list()
Dvideo.c93 ut_assert(!device_active(dev)); in select_vidconsole()
202 ut_assert(!device_active(dev)); in check_vidconsole_output()
277 ut_assert(buf != NULL); in read_file()
279 ut_assert(fd >= 0); in read_file()
282 ut_assert(size >= 0); in read_file()
283 ut_assert(size < buf_size); in read_file()
344 ut_assert(!device_active(dev)); in dm_test_video_truetype_scroll()
365 ut_assert(!device_active(dev)); in dm_test_video_truetype_bs()
Dphy.c39 ut_assert(phy1_method1.id != phy2.id); in dm_test_phy_base()
45 ut_assert(phy2.dev != phy3.dev); in dm_test_phy_base()
84 ut_assert(generic_phy_power_on(&phy1) != 0); in dm_test_phy_ops()
85 ut_assert(generic_phy_power_off(&phy1) != 0); in dm_test_phy_ops()
Dserial.c28 ut_assert(value_serial == SERIAL_DEFAULT_CONFIG); in dm_test_serial()
30 ut_assert(info_serial.type == SERIAL_CHIP_UNKNOWN); in dm_test_serial()
31 ut_assert(info_serial.addr == SERIAL_DEFAULT_ADDRESS); in dm_test_serial()
Dboard.c23 ut_assert(board); in dm_test_board()
26 ut_assert(!called_detect); in dm_test_board()
31 ut_assert(called_detect); in dm_test_board()
Dtest-driver.c38 ut_assert(!dev_get_priv(dev)); in test_bind()
49 ut_assert(priv); in test_probe()
59 ut_assert(dev_get_priv(dev)); in test_remove()
68 ut_assert(!dev->priv); in test_unbind()
Dbootcount.c21 ut_assert(val == 0); in dm_test_bootcount()
24 ut_assert(val == 0xab); in dm_test_bootcount()
Drtc.c65 ut_assert(emul != NULL); in dm_test_rtc_set_get()
130 ut_assert(emul != NULL); in dm_test_rtc_reset()
159 ut_assert(emul1 != NULL); in dm_test_rtc_dual()
161 ut_assert(emul2 != NULL); in dm_test_rtc_dual()
Dclk.c84 ut_assert(IS_ERR_VALUE(rate)); in dm_test_clk()
108 ut_assert(IS_ERR_VALUE(rate)); in dm_test_clk()
110 ut_assert(IS_ERR_VALUE(rate)); in dm_test_clk()
Dregmap.c51 ut_assert(ofnode_valid(node)); in dm_test_regmap_base()
181 ut_assert(get_timer(start) > (5 * CONFIG_SYS_HZ)); in dm_test_regmap_poll()
Dcpu.c26 ut_assert(dev->flags & DM_FLAG_ACTIVATED); in dm_test_cpu()
Dmdio.c45 ut_assert(ops->read(dev, SANDBOX_PHY_ADDR + 1, MDIO_DEVAD_NONE, in dm_test_mdio()
/third_party/uboot/u-boot-2020.01/test/optee/
Dcmd_ut_optee.c35 ut_assert(expect_success ? offs >= 0 : offs < 0); in optee_fdt_firmware()
45 ut_assert(strncmp(prop, "hvc", 3) == 0 || strncmp(prop, "smc", 3) == 0); in optee_fdt_firmware()
57 ut_assert(expect_success ? offs >= 0 : offs < 0); in optee_fdt_protected_memory()
65 ut_assert(offs >= 0); in optee_fdt_protected_memory()
68 ut_assert(subnode); in optee_fdt_protected_memory()
75 ut_assert(name); in optee_fdt_protected_memory()
88 ut_assert(found); in optee_fdt_protected_memory()
/third_party/uboot/u-boot-2020.01/test/overlay/
Dcmd_ut_overlay.c111 ut_assert(off >= 0); in fdt_overlay_add_node_by_phandle()
124 ut_assert(off >= 0); in fdt_overlay_add_node_by_path()
137 ut_assert(off >= 0); in fdt_overlay_add_subnode_property()
153 ut_assert(off >= 0); in fdt_overlay_local_phandle()
156 ut_assert(local_phandle); in fdt_overlay_local_phandle()
177 ut_assert(off >= 0); in fdt_overlay_local_phandles()
180 ut_assert(local_phandle); in fdt_overlay_local_phandles()
183 ut_assert(off >= 0); in fdt_overlay_local_phandles()
186 ut_assert(test_phandle); in fdt_overlay_local_phandles()
/third_party/uboot/u-boot-2020.01/test/lib/
Dlmb.c42 ut_assert(!check_lmb(uts, lmb, ram_base, ram_size, \
63 ut_assert(ram_end == 0 || ram_end > ram); in test_multi_alloc()
64 ut_assert(alloc_64k_end > alloc_64k_addr); in test_multi_alloc()
66 ut_assert(alloc_64k_addr >= ram + 8); in test_multi_alloc()
67 ut_assert(alloc_64k_end <= ram_end - 8); in test_multi_alloc()
230 ut_assert(ram_end == 0 || ram_end > ram); in test_bigblock()
298 ut_assert(ram_end == 0 || ram_end > ram); in test_noreserved()
308 ut_assert(a != 0); in test_noreserved()
313 ut_assert(b != 0); in test_noreserved()
334 ut_assert(a == b); in test_noreserved()
[all …]
/third_party/uboot/u-boot-2020.01/test/env/
Dhashtable.c52 ut_assert(ritem); in htab_check_fill()
78 ut_assert(ritem); in htab_create_delete()

12