/openbmc/qemu/tests/unit/ |
H A D | test-aio.c | 115 g_assert_cmpint(data.n, ==, 0); in test_bh_schedule() 118 g_assert_cmpint(data.n, ==, 1); in test_bh_schedule() 121 g_assert_cmpint(data.n, ==, 1); in test_bh_schedule() 131 g_assert_cmpint(data.n, ==, 0); in test_bh_schedule10() 134 g_assert_cmpint(data.n, ==, 1); in test_bh_schedule10() 137 g_assert_cmpint(data.n, ==, 2); in test_bh_schedule10() 142 g_assert_cmpint(data.n, ==, 10); in test_bh_schedule10() 145 g_assert_cmpint(data.n, ==, 10); in test_bh_schedule10() 155 g_assert_cmpint(data.n, ==, 0); in test_bh_cancel() 158 g_assert_cmpint(data.n, ==, 0); in test_bh_cancel() [all …]
|
H A D | test-cutils.c | 42 g_assert_cmpint(r, ==, -EINVAL); in test_parse_uint_null() 56 g_assert_cmpint(r, ==, -EINVAL); in test_parse_uint_empty() 70 g_assert_cmpint(r, ==, -EINVAL); in test_parse_uint_whitespace() 85 g_assert_cmpint(r, ==, -EINVAL); in test_parse_uint_invalid() 100 g_assert_cmpint(r, ==, 0); in test_parse_uint_trailing() 114 g_assert_cmpint(r, ==, 0); in test_parse_uint_correct() 128 g_assert_cmpint(r, ==, 0); in test_parse_uint_octal() 142 g_assert_cmpint(r, ==, 0); in test_parse_uint_decimal() 156 g_assert_cmpint(r, ==, 0); in test_parse_uint_llong_max() 172 g_assert_cmpint(r, ==, 0); in test_parse_uint_max() [all …]
|
H A D | test-thread-pool.c | 53 g_assert_cmpint(data.n, ==, 1); in test_submit() 64 g_assert_cmpint(data.ret, ==, -EINPROGRESS); in test_submit_aio() 68 g_assert_cmpint(active, ==, 0); in test_submit_aio() 69 g_assert_cmpint(data.n, ==, 1); in test_submit_aio() 70 g_assert_cmpint(data.ret, ==, 0); in test_submit_aio() 84 g_assert_cmpint(data->n, ==, 1); in co_test_cb() 100 g_assert_cmpint(active, ==, 1); in test_submit_co() 101 g_assert_cmpint(data.ret, ==, -EINPROGRESS); in test_submit_co() 111 g_assert_cmpint(active, ==, 0); in test_submit_co() 112 g_assert_cmpint(data.ret, ==, 0); in test_submit_co() [all …]
|
H A D | test-bdrv-drain.c | 69 g_assert_cmpint(s->drain_count, >, 0); in bdrv_test_close() 230 g_assert_cmpint(s->drain_count, ==, 0); in test_drv_cb_common() 231 g_assert_cmpint(backing_s->drain_count, ==, 0); in test_drv_cb_common() 235 g_assert_cmpint(s->drain_count, ==, 1); in test_drv_cb_common() 236 g_assert_cmpint(backing_s->drain_count, ==, !!recursive); in test_drv_cb_common() 240 g_assert_cmpint(s->drain_count, ==, 0); in test_drv_cb_common() 241 g_assert_cmpint(backing_s->drain_count, ==, 0); in test_drv_cb_common() 247 g_assert_cmpint(aio_ret, ==, -EINPROGRESS); in test_drv_cb_common() 249 g_assert_cmpint(s->drain_count, ==, 0); in test_drv_cb_common() 250 g_assert_cmpint(backing_s->drain_count, ==, 0); in test_drv_cb_common() [all …]
|
H A D | test-qgraph.c | 52 g_assert_cmpint(qos_graph_has_machine(interface), ==, FALSE); in check_interface() 54 g_assert_cmpint(qos_graph_has_node(interface), ==, TRUE); in check_interface() 55 g_assert_cmpint(qos_graph_get_node_type(interface), ==, QNODE_INTERFACE); in check_interface() 57 g_assert_cmpint(qos_graph_get_node_availability(interface), ==, TRUE); in check_interface() 64 g_assert_cmpint(qos_graph_has_machine(machine), ==, TRUE); in check_machine() 66 g_assert_cmpint(qos_graph_get_node_availability(machine), ==, FALSE); in check_machine() 68 g_assert_cmpint(qos_graph_get_node_availability(machine), ==, TRUE); in check_machine() 69 g_assert_cmpint(qos_graph_has_node(machine), ==, TRUE); in check_machine() 70 g_assert_cmpint(qos_graph_get_node_type(machine), ==, QNODE_MACHINE); in check_machine() 80 g_assert_cmpint(qos_graph_edge_get_type(edge), ==, QEDGE_CONTAINS); in check_contains() [all …]
|
H A D | check-block-qdict.c | 237 g_assert_cmpint(qnum_get_int(int1), ==, 66); in qdict_array_split_test() 289 g_assert_cmpint(qnum_get_int(int1), ==, 42); in qdict_array_split_test() 305 g_assert_cmpint(qdict_array_entries(dict, "foo."), ==, 0); in qdict_array_entries_test() 309 g_assert_cmpint(qdict_array_entries(dict, "foo."), ==, 0); in qdict_array_entries_test() 312 g_assert_cmpint(qdict_array_entries(dict, "foo."), ==, -EINVAL); in qdict_array_entries_test() 314 g_assert_cmpint(qdict_array_entries(dict, "foo."), ==, 2); in qdict_array_entries_test() 316 g_assert_cmpint(qdict_array_entries(dict, "foo."), ==, -EINVAL); in qdict_array_entries_test() 322 g_assert_cmpint(qdict_array_entries(dict, "foo."), ==, 3); in qdict_array_entries_test() 323 g_assert_cmpint(qdict_array_entries(dict, ""), ==, -EINVAL); in qdict_array_entries_test() 329 g_assert_cmpint(qdict_array_entries(dict, ""), ==, -EINVAL); in qdict_array_entries_test() [all …]
|
H A D | test-clone-visitor.c | 27 g_assert_cmpint(dst->integer, ==, 42); in test_clone_struct() 30 g_assert_cmpint(dst->has_enum1, ==, false); in test_clone_struct() 52 g_assert_cmpint(b_dst->type, ==, b_src->type); in test_clone_alternate() 53 g_assert_cmpint(b_dst->u.b, ==, b_src->u.b); in test_clone_alternate() 56 g_assert_cmpint(s_dst->type, ==, s_src->type); in test_clone_alternate() 57 g_assert_cmpint(s_dst->u.e, ==, s_src->u.e); in test_clone_alternate() 79 g_assert_cmpint(tmp->value, ==, i); in test_clone_list() 112 g_assert_cmpint(dst->integer, ==, 123); in test_clone_complex1() 114 g_assert_cmpint(dst->enum1, ==, ENUM_ONE_VALUE1); in test_clone_complex1() 117 g_assert_cmpint(dst->u.value1.a_b, ==, 0); in test_clone_complex1() [all …]
|
H A D | test-bitmap.c | 46 g_assert_cmpint(find_first_bit(bmap2, 60), ==, 60); in check_bitmap_copy_with_offset() 47 g_assert_cmpint(find_next_zero_bit(bmap2, 205, 60), ==, 205); in check_bitmap_copy_with_offset() 52 g_assert_cmpint(find_first_bit(bmap3, 135), ==, 135); in check_bitmap_copy_with_offset() 53 g_assert_cmpint(find_next_zero_bit(bmap3, 280, 135), ==, 280); in check_bitmap_copy_with_offset() 73 g_assert_cmpint(find_first_bit(bmap, 2 * BITS_PER_LONG), in bitmap_set_case() 75 g_assert_cmpint(find_next_zero_bit(bmap, in bitmap_set_case() 85 g_assert_cmpint(find_first_bit(bmap, BITS_PER_LONG), ==, BITS_PER_LONG); in bitmap_set_case() 86 g_assert_cmpint(find_next_zero_bit(bmap, 3 * BITS_PER_LONG, BITS_PER_LONG), in bitmap_set_case() 95 g_assert_cmpint(find_first_bit(bmap, BITS_PER_LONG), in bitmap_set_case() 97 g_assert_cmpint(find_next_zero_bit(bmap, in bitmap_set_case() [all …]
|
H A D | test-util-sockets.c | 87 g_assert_cmpint(mon_fd, >, STDERR_FILENO); in test_socket_fd_pass_name_good() 93 g_assert_cmpint(fd, !=, -1); in test_socket_fd_pass_name_good() 94 g_assert_cmpint(fd, !=, mon_fd); in test_socket_fd_pass_name_good() 98 g_assert_cmpint(fd, !=, -1); in test_socket_fd_pass_name_good() 99 g_assert_cmpint(fd, !=, mon_fd); in test_socket_fd_pass_name_good() 119 g_assert_cmpint(mon_fd, >, STDERR_FILENO); in test_socket_fd_pass_name_bad() 125 g_assert_cmpint(fd, ==, -1); in test_socket_fd_pass_name_bad() 129 g_assert_cmpint(fd, ==, -1); in test_socket_fd_pass_name_bad() 152 g_assert_cmpint(fd, ==, -1); in test_socket_fd_pass_name_nomon() 156 g_assert_cmpint(fd, ==, -1); in test_socket_fd_pass_name_nomon() [all …]
|
H A D | test-qobject-input-visitor.c | 120 g_assert_cmpint(res, ==, value); in test_visitor_in_int() 141 g_assert_cmpint(i64, ==, value); in test_visitor_in_uint() 200 g_assert_cmpint(res, ==, value); in test_visitor_in_int_str_keyval() 225 g_assert_cmpint(res, ==, true); in test_visitor_in_bool() 250 g_assert_cmpint(res, ==, true); in test_visitor_in_bool_str_keyval() 394 g_assert_cmpint(i, ==, res); in test_visitor_in_enum() 408 g_assert_cmpint(p->integer, ==, -42); in test_visitor_in_struct() 431 g_assert_cmpint(udp->dict1->dict2->userdef->integer, ==, 42); in test_visitor_in_struct_nested() 453 g_assert_cmpint(item->value->integer, ==, 42 + i); in test_visitor_in_list() 532 g_assert_cmpint(int_list->value, ==, i); in test_visitor_in_list_struct() [all …]
|
H A D | test-block-iothread.c | 93 g_assert_cmpint(ret, ==, 0); in test_sync_op_pread() 97 g_assert_cmpint(ret, ==, -EIO); in test_sync_op_pread() 107 g_assert_cmpint(ret, ==, 0); in test_sync_op_pwrite() 111 g_assert_cmpint(ret, ==, -EIO); in test_sync_op_pwrite() 121 g_assert_cmpint(ret, ==, 0); in test_sync_op_blk_pread() 125 g_assert_cmpint(ret, ==, -EIO); in test_sync_op_blk_pread() 135 g_assert_cmpint(ret, ==, 0); in test_sync_op_blk_pwrite() 139 g_assert_cmpint(ret, ==, -EIO); in test_sync_op_blk_pwrite() 150 g_assert_cmpint(ret, ==, 0); in test_sync_op_blk_preadv() 154 g_assert_cmpint(ret, ==, -EIO); in test_sync_op_blk_preadv() [all …]
|
H A D | test-vmstate.c | 48 g_assert_cmpint(ftruncate(fd, 0), ==, 0); in open_test_file() 61 g_assert_cmpint((val), ==, 0) 64 g_assert_cmpint((val), !=, 0) 92 g_assert_cmpint(qemu_get_buffer(f, result, size), ==, size); in compare_vmstate() 101 g_assert_cmpint(qemu_file_get_error(f), ==, -EIO); in compare_vmstate() 266 #define FIELD_EQUAL(name) g_assert_cmpint(obj.name, ==, obj_simple.name) in test_simple_primitive() 370 g_assert_cmpint(obj.a, ==, 10); in test_load_v1() 371 g_assert_cmpint(obj.b, ==, 200); in test_load_v1() 372 g_assert_cmpint(obj.c, ==, 30); in test_load_v1() 373 g_assert_cmpint(obj.d, ==, 40); in test_load_v1() [all …]
|
H A D | test-char.c | 50 g_assert_cmpint(size, <=, fe_can_read(opaque)); in fe_read() 119 g_assert_cmpint(ret, ==, 4); in char_stdio_test_subprocess() 158 g_assert_cmpint(ret, ==, 4); in char_ringbuf_test() 233 g_assert_cmpint(qemu_chr_be_can_write(base), !=, 0); in char_mux_test() 236 g_assert_cmpint(h1.read_count, ==, 0); in char_mux_test() 237 g_assert_cmpint(h2.read_count, ==, 6); in char_mux_test() 241 g_assert_cmpint(h1.last_event, !=, 42); /* should be MUX_OUT or OPENED */ in char_mux_test() 242 g_assert_cmpint(h2.last_event, !=, 42); /* should be MUX_IN or OPENED */ in char_mux_test() 245 g_assert_cmpint(h1.last_event, ==, 42); in char_mux_test() 246 g_assert_cmpint(h2.last_event, ==, 42); in char_mux_test() [all …]
|
H A D | test-qobject-output-visitor.c | 71 g_assert_cmpint(val, ==, value); in test_visitor_out_int() 156 g_assert_cmpint(qdict_size(qdict), ==, 3); in test_visitor_out_struct() 157 g_assert_cmpint(qdict_get_int(qdict, "integer"), ==, 42); in test_visitor_out_struct() 158 g_assert_cmpint(qdict_get_bool(qdict, "boolean"), ==, false); in test_visitor_out_struct() 194 g_assert_cmpint(qdict_size(qdict), ==, 2); in test_visitor_out_struct_nested() 198 g_assert_cmpint(qdict_size(dict1), ==, 3); in test_visitor_out_struct_nested() 202 g_assert_cmpint(qdict_size(dict2), ==, 2); in test_visitor_out_struct_nested() 205 g_assert_cmpint(qdict_size(userdef), ==, 2); in test_visitor_out_struct_nested() 206 g_assert_cmpint(qdict_get_int(userdef, "integer"), ==, value); in test_visitor_out_struct_nested() 210 g_assert_cmpint(qdict_size(dict3), ==, 2); in test_visitor_out_struct_nested() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | tpm-crb-test.c | 37 g_assert_cmpint(FIELD_EX32(intfid, CRB_INTF_ID, InterfaceType), ==, 1); in tpm_crb_test() 38 g_assert_cmpint(FIELD_EX32(intfid, CRB_INTF_ID, InterfaceVersion), ==, 1); in tpm_crb_test() 39 g_assert_cmpint(FIELD_EX32(intfid, CRB_INTF_ID, CapLocality), ==, 0); in tpm_crb_test() 40 g_assert_cmpint(FIELD_EX32(intfid, CRB_INTF_ID, CapCRBIdleBypass), ==, 0); in tpm_crb_test() 41 g_assert_cmpint(FIELD_EX32(intfid, CRB_INTF_ID, CapDataXferSizeSupport), in tpm_crb_test() 43 g_assert_cmpint(FIELD_EX32(intfid, CRB_INTF_ID, CapFIFO), ==, 0); in tpm_crb_test() 44 g_assert_cmpint(FIELD_EX32(intfid, CRB_INTF_ID, CapCRB), ==, 1); in tpm_crb_test() 45 g_assert_cmpint(FIELD_EX32(intfid, CRB_INTF_ID, InterfaceSelector), ==, 1); in tpm_crb_test() 46 g_assert_cmpint(FIELD_EX32(intfid, CRB_INTF_ID, RID), ==, 0); in tpm_crb_test() 48 g_assert_cmpint(csize, >=, 128); in tpm_crb_test() [all …]
|
H A D | tpm-tis-i2c-test.c | 104 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_i2c_test_basic() 109 g_assert_cmpint(v, ==, 0); in tpm_tis_i2c_test_basic() 115 g_assert_cmpint(v, ==, 0); in tpm_tis_i2c_test_basic() 121 g_assert_cmpint(v, ==, TPM_DATA_CSUM_ENABLED); in tpm_tis_i2c_test_basic() 124 g_assert_cmpint(v, ==, TPM_DATA_CSUM_ENABLED); in tpm_tis_i2c_test_basic() 130 g_assert_cmpint(v, ==, 0); in tpm_tis_i2c_test_basic() 135 g_assert_cmpint(v, ==, 0xffffffff); in tpm_tis_i2c_test_basic() 142 g_assert_cmpint(v, ==, 0); in tpm_tis_i2c_test_basic() 148 g_assert_cmpint(v, ==, v2); in tpm_tis_i2c_test_basic() 157 g_assert_cmpint(v, ==, 0); in tpm_tis_i2c_test_basic() [all …]
|
H A D | virtio-iommu-test.c | 36 g_assert_cmpint(input_range_start, ==, 0); in pci_config() 38 g_assert_cmpint(domain_range_start, ==, 0); in pci_config() 39 g_assert_cmpint(domain_range_end, ==, UINT32_MAX); in pci_config() 40 g_assert_cmpint(bypass, ==, 1); in pci_config() 48 g_assert_cmpint(buffer->reserved[i], ==, 0); in read_tail_status() 189 g_assert_cmpint(ret, ==, 0); in test_attach_detach() 193 g_assert_cmpint(ret, ==, VIRTIO_IOMMU_S_NOENT); in test_attach_detach() 197 g_assert_cmpint(ret, ==, VIRTIO_IOMMU_S_NOENT); in test_attach_detach() 201 g_assert_cmpint(ret, ==, 0); in test_attach_detach() 205 g_assert_cmpint(ret, ==, VIRTIO_IOMMU_S_INVAL); in test_attach_detach() [all …]
|
H A D | i440fx-test.c | 56 g_assert_cmpint(qpci_config_readw(dev, PCI_VENDOR_ID), ==, 0x8086); in test_i440fx_defaults() 58 g_assert_cmpint(qpci_config_readw(dev, PCI_DEVICE_ID), ==, 0x1237); in test_i440fx_defaults() 61 g_assert_cmpint(qpci_config_readw(dev, PCI_COMMAND), ==, 0x0006); in test_i440fx_defaults() 63 g_assert_cmpint(qpci_config_readw(dev, PCI_STATUS), ==, 0x0280); in test_i440fx_defaults() 66 g_assert_cmpint(qpci_config_readb(dev, PCI_CLASS_PROG), ==, 0x00); in test_i440fx_defaults() 67 g_assert_cmpint(qpci_config_readw(dev, PCI_CLASS_DEVICE), ==, 0x0600); in test_i440fx_defaults() 69 g_assert_cmpint(qpci_config_readb(dev, PCI_LATENCY_TIMER), ==, 0x00); in test_i440fx_defaults() 71 g_assert_cmpint(qpci_config_readb(dev, PCI_HEADER_TYPE), ==, 0x00); in test_i440fx_defaults() 73 g_assert_cmpint(qpci_config_readb(dev, PCI_BIST), ==, 0x00); in test_i440fx_defaults() 86 g_assert_cmpint(qpci_config_readb(dev, 0x52), ==, 0x00); /* DETURBO */ in test_i440fx_defaults() [all …]
|
H A D | tpm-tis-util.c | 56 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_test_check_localities() 60 g_assert_cmpint(capability, ==, TPM_TIS_CAPABILITIES_SUPPORTED2_0); in tpm_tis_test_check_localities() 63 g_assert_cmpint(ifaceid, ==, TPM_TIS_IFACE_ID_SUPPORTED_FLAGS2_0); in tpm_tis_test_check_localities() 66 g_assert_cmpint(didvid, !=, 0); in tpm_tis_test_check_localities() 67 g_assert_cmpint(didvid, !=, 0xffffffff); in tpm_tis_test_check_localities() 70 g_assert_cmpint(rid, !=, 0); in tpm_tis_test_check_localities() 71 g_assert_cmpint(rid, !=, 0xffffffff); in tpm_tis_test_check_localities() 83 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_test_check_access_reg() 90 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_test_check_access_reg() 98 g_assert_cmpint(access, ==, TPM_TIS_ACCESS_TPM_REG_VALID_STS | in tpm_tis_test_check_access_reg() [all …]
|
H A D | nvme-test.c | 60 g_assert_cmpint(qpci_io_readb(pdev, bar, 0), ==, 0x99); in nvmetest_oob_cmb_test() 61 g_assert_cmpint(qpci_io_readw(pdev, bar, 0), ==, 0xaa99); in nvmetest_oob_cmb_test() 65 g_assert_cmpint(qpci_io_readb(pdev, bar, cmb_bar_size - 1), ==, 0x11); in nvmetest_oob_cmb_test() 66 g_assert_cmpint(qpci_io_readw(pdev, bar, cmb_bar_size - 1), !=, 0x2211); in nvmetest_oob_cmb_test() 67 g_assert_cmpint(qpci_io_readl(pdev, bar, cmb_bar_size - 1), !=, 0x44332211); in nvmetest_oob_cmb_test() 82 g_assert_cmpint(NVME_CAP_MQES(cap_lo), ==, 0x7ff); in nvmetest_reg_read_test() 85 g_assert_cmpint(NVME_CAP_MPSMAX((uint64_t)cap_hi << 32), ==, 0x4); in nvmetest_reg_read_test() 88 g_assert_cmpint(NVME_CAP_MQES(cap), ==, 0x7ff); in nvmetest_reg_read_test() 89 g_assert_cmpint(NVME_CAP_MPSMAX(cap), ==, 0x4); in nvmetest_reg_read_test() 106 g_assert_cmpint(qpci_io_readb(pdev, pmr_bar, 0), !=, 0x99); in nvmetest_pmr_reg_test() [all …]
|
H A D | rtc-test.c | 174 g_assert_cmpint(ABS(t - s), <=, wiggle); in check_time() 194 g_assert_cmpint(cmos_read(RTC_HOURS), ==, 0x02); in set_year_20xx() 195 g_assert_cmpint(cmos_read(RTC_MINUTES), ==, 0x04); in set_year_20xx() 196 g_assert_cmpint(cmos_read(RTC_SECONDS), >=, 0x58); in set_year_20xx() 197 g_assert_cmpint(cmos_read(RTC_DAY_OF_MONTH), ==, 0x02); in set_year_20xx() 198 g_assert_cmpint(cmos_read(RTC_MONTH), ==, 0x02); in set_year_20xx() 199 g_assert_cmpint(cmos_read(RTC_YEAR), ==, 0x11); in set_year_20xx() 200 g_assert_cmpint(cmos_read(RTC_CENTURY), ==, 0x20); in set_year_20xx() 211 g_assert_cmpint(cmos_read(RTC_HOURS), ==, 0x02); in set_year_20xx() 212 g_assert_cmpint(cmos_read(RTC_MINUTES), ==, 0x04); in set_year_20xx() [all …]
|
H A D | test-filter-redirector.c | 74 g_assert_cmpint(ret, !=, -1); in test_redirector_tx() 77 g_assert_cmpint(ret, !=, -1); in test_redirector_tx() 79 g_assert_cmpint(ret, !=, -1); in test_redirector_tx() 95 g_assert_cmpint(recv_sock, !=, -1); in test_redirector_tx() 111 g_assert_cmpint(ret, ==, sizeof(send_buf) + sizeof(size)); in test_redirector_tx() 115 g_assert_cmpint(ret, ==, sizeof(len)); in test_redirector_tx() 118 g_assert_cmpint(len, ==, sizeof(send_buf)); in test_redirector_tx() 121 g_assert_cmpint(ret, ==, len); in test_redirector_tx() 144 g_assert_cmpint(ret, !=, -1); in test_redirector_rx() 147 g_assert_cmpint(ret, !=, -1); in test_redirector_rx() [all …]
|
H A D | pflash-cfi02-test.c | 330 g_assert_cmpint(pri, >=, 0x2D + 4 * nb_erase_regions); in test_geometry() 331 g_assert_cmpint(flash_query(c, FLASH_ADDR(pri + 0)), ==, replicate(c, 'P')); in test_geometry() 332 g_assert_cmpint(flash_query(c, FLASH_ADDR(pri + 1)), ==, replicate(c, 'R')); in test_geometry() 333 g_assert_cmpint(flash_query(c, FLASH_ADDR(pri + 2)), ==, replicate(c, 'I')); in test_geometry() 334 g_assert_cmpint(flash_query_1(c, FLASH_ADDR(pri + 6)), ==, 2); /* R/W */ in test_geometry() 489 g_assert_cmpint(status0 & dq3, ==, 0); in test_geometry() 490 g_assert_cmpint(status0 & dq6, ==, ~status1 & dq6); in test_geometry() 491 g_assert_cmpint(status0 & dq2, ==, ~status1 & dq2); in test_geometry() 494 g_assert_cmpint(status0 & dq3, ==, 0); in test_geometry() 495 g_assert_cmpint(status0 & dq6, ==, ~status1 & dq6); in test_geometry() [all …]
|
H A D | bcm2835-dma-test.c | 54 g_assert_cmpint(isr, ==, 0); in bcm2835_dma_test_interrupt() 56 g_assert_cmpint(reg0, ==, 0); in bcm2835_dma_test_interrupt() 58 g_assert_cmpint(ic_pending, ==, 0); in bcm2835_dma_test_interrupt() 60 g_assert_cmpint(gpu_pending1, ==, 0); in bcm2835_dma_test_interrupt() 79 g_assert_cmpint(data, ==, check_data); in bcm2835_dma_test_interrupt() 82 g_assert_cmpint(data, ==, ~check_data); in bcm2835_dma_test_interrupt() 87 g_assert_cmpint(isr, ==, 1 << dma_c); in bcm2835_dma_test_interrupt() 90 g_assert_cmpint(ic_pending, ==, IRQ_GPU_PENDING1_AGGR); in bcm2835_dma_test_interrupt() 93 g_assert_cmpint(gpu_pending1, ==, 1 << gpu_irq_line); in bcm2835_dma_test_interrupt()
|
H A D | fw_cfg-test.c | 89 g_assert_cmpint(qfw_cfg_get_u64(fw_cfg, FW_CFG_RAM_SIZE), ==, ram_size); in test_fw_cfg_ram_size() 103 g_assert_cmpint(qfw_cfg_get_u16(fw_cfg, FW_CFG_NOGRAPHIC), ==, 0); in test_fw_cfg_nographic() 117 g_assert_cmpint(qfw_cfg_get_u16(fw_cfg, FW_CFG_NB_CPUS), ==, nb_cpus); in test_fw_cfg_nb_cpus() 131 g_assert_cmpint(qfw_cfg_get_u16(fw_cfg, FW_CFG_MAX_CPUS), ==, max_cpus); in test_fw_cfg_max_cpus() 146 g_assert_cmpint(qfw_cfg_get_u64(fw_cfg, FW_CFG_NUMA), ==, nb_nodes); in test_fw_cfg_numa() 156 g_assert_cmpint(node_mask[0], ==, ram_size); in test_fw_cfg_numa() 173 g_assert_cmpint(qfw_cfg_get_u16(fw_cfg, FW_CFG_BOOT_MENU), ==, boot_menu); in test_fw_cfg_boot_menu() 190 g_assert_cmpint(filesize, ==, sizeof(reboot_timeout)); in test_fw_cfg_reboot_timeout() 192 g_assert_cmpint(reboot_timeout, ==, 15); in test_fw_cfg_reboot_timeout() 210 g_assert_cmpint(filesize, ==, sizeof(reboot_timeout)); in test_fw_cfg_no_reboot_timeout() [all …]
|