/openbmc/qemu/tests/unit/ |
H A D | test-qemu-opts.c | 126 g_assert_cmpstr(list->name, ==, "opts_list_01"); in test_qemu_find_opts() 137 g_assert_cmpstr(list->name, ==, "opts_list_01"); in test_qemu_opts_create() 168 g_assert_cmpstr(list->name, ==, "opts_list_01"); in test_qemu_opt_get() 187 g_assert_cmpstr(opt, ==, "value"); in test_qemu_opt_get() 193 g_assert_cmpstr(opt, ==, "value2"); in test_qemu_opt_get() 211 g_assert_cmpstr(list->name, ==, "opts_list_02"); in test_qemu_opt_get_bool() 254 g_assert_cmpstr(list->name, ==, "opts_list_01"); in test_qemu_opt_get_number() 298 g_assert_cmpstr(list->name, ==, "opts_list_02"); in test_qemu_opt_get_size() 357 g_assert_cmpstr(value, ==, "value"); in test_qemu_opt_unset() 363 g_assert_cmpstr(value, ==, "value2"); in test_qemu_opt_unset() [all …]
|
H A D | test-string-output-visitor.c | 79 g_assert_cmpstr(str, ==, "42 (0x2a)"); in test_visitor_out_int() 81 g_assert_cmpstr(str, ==, "42"); in test_visitor_out_int() 104 g_assert_cmpstr(str, ==, in test_visitor_out_intList() 109 g_assert_cmpstr(str, ==, in test_visitor_out_intList() 124 g_assert_cmpstr(str, ==, "true"); in test_visitor_out_bool() 136 g_assert_cmpstr(str, ==, "3.1415926535897931"); in test_visitor_out_number() 150 g_assert_cmpstr(str, ==, string_human); in test_visitor_out_string() 152 g_assert_cmpstr(str, ==, string); in test_visitor_out_string() 167 g_assert_cmpstr(str, ==, "<null>"); in test_visitor_out_no_string() 169 g_assert_cmpstr(str, ==, ""); in test_visitor_out_no_string() [all …]
|
H A D | test-qobject-output-visitor.c | 110 g_assert_cmpstr(qstring_get_str(qstr), ==, string); in test_visitor_out_string() 124 g_assert_cmpstr(qstring_get_str(qstr), ==, ""); in test_visitor_out_no_string() 138 g_assert_cmpstr(qstring_get_str(qstr), ==, EnumOne_str(i)); in test_visitor_out_enum() 159 g_assert_cmpstr(qdict_get_str(qdict, "string"), ==, "foo"); in test_visitor_out_struct() 195 g_assert_cmpstr(qdict_get_str(qdict, "string0"), ==, strings[0]); in test_visitor_out_struct_nested() 199 g_assert_cmpstr(qdict_get_str(dict1, "string1"), ==, strings[1]); in test_visitor_out_struct_nested() 203 g_assert_cmpstr(qdict_get_str(dict2, "string"), ==, strings[2]); in test_visitor_out_struct_nested() 207 g_assert_cmpstr(qdict_get_str(userdef, "string"), ==, string); in test_visitor_out_struct_nested() 211 g_assert_cmpstr(qdict_get_str(dict3, "string"), ==, strings[3]); in test_visitor_out_struct_nested() 215 g_assert_cmpstr(qdict_get_str(userdef, "string"), ==, string); in test_visitor_out_struct_nested() [all …]
|
H A D | check-block-qdict.c | 25 g_assert_cmpstr(qdict_get_str(dict, "foo"), ==, "abc"); in qdict_defaults_test() 29 g_assert_cmpstr(qdict_get_str(copy, "foo"), ==, "abc"); in qdict_defaults_test() 32 g_assert_cmpstr(qdict_get_str(copy, "bar"), ==, "xyz"); in qdict_defaults_test() 451 g_assert_cmpstr("127.0.0.1", ==, qdict_get_str(listen, "addr")); in qdict_crumple_test_recursive() 452 g_assert_cmpstr("5901", ==, qdict_get_str(listen, "port")); in qdict_crumple_test_recursive() 465 g_assert_cmpstr("fred", ==, qdict_get_str(rule, "match")); in qdict_crumple_test_recursive() 466 g_assert_cmpstr("allow", ==, qdict_get_str(rule, "policy")); in qdict_crumple_test_recursive() 472 g_assert_cmpstr("bob", ==, qdict_get_str(rule, "match")); in qdict_crumple_test_recursive() 473 g_assert_cmpstr("deny", ==, qdict_get_str(rule, "policy")); in qdict_crumple_test_recursive() 477 g_assert_cmpstr("acl0", ==, qdict_get_str(vnc, "acl.name")); in qdict_crumple_test_recursive() [all …]
|
H A D | test-qga.c | 257 g_assert_cmpstr(class, ==, "GenericError"); in test_qga_invalid_args() 258 g_assert_cmpstr(desc, ==, "Parameter 'foo' is unexpected"); in test_qga_invalid_args() 275 g_assert_cmpstr(class, ==, "CommandNotFound"); in test_qga_invalid_cmd() 292 g_assert_cmpstr(version, ==, QEMU_VERSION); in test_qga_info() 453 g_assert_cmpstr(tmp, ==, (char *)helloworld); in test_qga_file_ops() 475 g_assert_cmpstr(b64, ==, enc); in test_qga_file_ops() 491 g_assert_cmpstr(b64, ==, ""); in test_qga_file_ops() 579 g_assert_cmpstr(b64, ==, ""); in test_qga_file_write_read() 607 g_assert_cmpstr(b64, ==, enc); in test_qga_file_write_read() 647 g_assert_cmpstr(class, ==, "CommandNotFound"); in test_qga_blockedrpcs() [all …]
|
H A D | test-keyval.c | 74 g_assert_cmpstr(qdict_get_try_str(qdict, long_key + 1), ==, "v"); in test_keyval_parse() 83 g_assert_cmpstr(qdict_get_try_str(sub_qdict, long_key + 1), ==, "v"); in test_keyval_parse() 95 g_assert_cmpstr(qdict_get_try_str(qdict, "a"), ==, "3"); in test_keyval_parse() 96 g_assert_cmpstr(qdict_get_try_str(qdict, "b"), ==, "2,x"); in test_keyval_parse() 102 g_assert_cmpstr(qdict_get_try_str(qdict, "id"), ==, "bar"); in test_keyval_parse() 114 g_assert_cmpstr(qdict_get_try_str(sub_qdict, "c"), ==, "2"); in test_keyval_parse() 115 g_assert_cmpstr(qdict_get_try_str(qdict, "d"), ==, "3"); in test_keyval_parse() 129 g_assert_cmpstr(qdict_get_try_str(qdict, "x"), ==, "y"); in test_keyval_parse() 140 g_assert_cmpstr(qdict_get_try_str(qdict, "x"), ==, ",id=bar"); in test_keyval_parse() 146 g_assert_cmpstr(qdict_get_try_str(qdict, "id"), ==, "666"); in test_keyval_parse() [all …]
|
H A D | test-crypto-secret.c | 45 g_assert_cmpstr(pw, ==, "123456"); in test_secret_direct() 76 g_assert_cmpstr(pw, ==, "123456"); in test_secret_indirect_good() 122 g_assert_cmpstr(pw, ==, ""); in test_secret_indirect_emptyfile() 158 g_assert_cmpstr(pw, ==, PAYLOAD); in test_secret_keyring_good() 287 g_assert_cmpstr(pw, ==, "MTIzNDU2"); in test_secret_noconv_base64_good() 323 g_assert_cmpstr(pw, ==, "123456"); in test_secret_noconv_utf8() 344 g_assert_cmpstr(pw, ==, "123456"); in test_secret_conv_base64_utf8valid() 383 g_assert_cmpstr(pw, ==, "MTIzNDU2"); in test_secret_conv_utf8_base64() 415 g_assert_cmpstr(pw, ==, "123456"); in test_secret_crypt_raw() 447 g_assert_cmpstr(pw, ==, "123456"); in test_secret_crypt_base64()
|
H A D | test-qdist.c | 59 g_assert_cmpstr(pr, ==, str); in histogram_check() 171 g_assert_cmpstr("BUG", ==, "This is not meant to be exhaustive"); in do_test_pr() 195 g_assert_cmpstr(pr, ==, str); in do_test_pr() 337 g_assert_cmpstr(pr, ==, " "); in test_single_empty() 341 g_assert_cmpstr(pr, ==, " "); in test_single_empty() 345 g_assert_cmpstr(pr, ==, " "); in test_single_empty() 363 g_assert_cmpstr(pr, ==, "(empty)"); in test_none() 367 g_assert_cmpstr(pr, ==, "(empty)"); in test_none() 371 g_assert_cmpstr(pr, ==, "(empty)"); in test_none()
|
H A D | test-forward-visitor.c | 66 g_assert_cmpstr(dst->string, ==, "Hello"); in test_forward_any() 134 g_assert_cmpstr(dst, ==, "Hello"); in test_forward_string() 144 g_assert_cmpstr(dst->string, ==, "Hello"); in test_forward_struct() 157 g_assert_cmpstr(s_dst->u.s, ==, "hello"); in test_forward_alternate() 161 g_assert_cmpstr(o_dst->u.o.string, ==, "world"); in test_forward_alternate()
|
H A D | test-clone-visitor.c | 29 g_assert_cmpstr(dst->string, ==, "Hello"); in test_clone_struct() 113 g_assert_cmpstr(dst->string, ==, "abc"); in test_clone_complex1() 143 g_assert_cmpstr(dst->alt->u.udfu.string, ==, ""); in test_clone_complex2() 180 g_assert_cmpstr(elt->string, ==, "one"); in test_clone_complex3() 185 g_assert_cmpstr(elt->string, ==, "two"); in test_clone_complex3() 190 g_assert_cmpstr(elt->string, ==, "three"); in test_clone_complex3()
|
H A D | check-qjson.c | 91 g_assert_cmpstr(qstring_get_str(cstr), in escaped_string() 95 g_assert_cmpstr(jstr, ==, test_cases[i].json_in); in escaped_string() 123 g_assert_cmpstr(qstring_get_str(str), ==, cstr); in string_with_quotes() 753 g_assert_cmpstr(qstring_get_str(str), ==, utf8_out); in utf8_string() 777 g_assert_cmpstr(jstr, ==, json_out); in utf8_string() 784 g_assert_cmpstr(qstring_get_str(str), ==, utf8_in); in utf8_string() 828 g_assert_cmpstr(str->str, ==, in int_number() 865 g_assert_cmpstr(str->str, ==, in uint_number() 904 g_assert_cmpstr(str->str, ==, in float_number() 925 g_assert_cmpstr(str->str, ==, "true"); in keyword_literal() [all …]
|
H A D | check-qnum.c | 143 g_assert_cmpstr(tmp, ==, "123456"); in qnum_to_string_test() 149 g_assert_cmpstr(tmp, ==, "0.41999999999999998"); in qnum_to_string_test() 155 g_assert_cmpstr(tmp, ==, "2.7182818284590451"); in qnum_to_string_test()
|
H A D | test-qobject-input-visitor.c | 377 g_assert_cmpstr(res, ==, value); in test_visitor_in_string() 410 g_assert_cmpstr(p->string, ==, "foo"); in test_visitor_in_struct() 429 g_assert_cmpstr(udp->string0, ==, "string0"); in test_visitor_in_struct_nested() 430 g_assert_cmpstr(udp->dict1->string1, ==, "string1"); in test_visitor_in_struct_nested() 432 g_assert_cmpstr(udp->dict1->dict2->userdef->string, ==, "string"); in test_visitor_in_struct_nested() 433 g_assert_cmpstr(udp->dict1->dict2->string, ==, "string2"); in test_visitor_in_struct_nested() 452 g_assert_cmpstr(item->value->string, ==, string); in test_visitor_in_list() 590 g_assert_cmpstr(expected, ==, actual); in test_visitor_in_list_struct() 605 g_assert_cmpstr(str_list->value, ==, expected); in test_visitor_in_list_struct() 649 g_assert_cmpstr(qstring_get_str(qstring), ==, "foo"); in test_visitor_in_any() [all …]
|
H A D | test-uuid.c | 154 g_assert_cmpstr(uuid_test_data[i].uuidstr, ==, out); in test_uuid_unparse() 169 g_assert_cmpstr(uuid_test_data[i].uuidstr, ==, out); in test_uuid_unparse_strdup()
|
H A D | test-visitor-serialization.c | 200 g_assert_cmpstr(ts1->string, ==, ts2->string); in struct_compare() 237 g_assert_cmpstr(udnp1->string0, ==, udnp2->string0); in nested_struct_compare() 238 g_assert_cmpstr(udnp1->dict1->string1, ==, udnp2->dict1->string1); in nested_struct_compare() 241 g_assert_cmpstr(udnp1->dict1->dict2->userdef->string, ==, in nested_struct_compare() 243 g_assert_cmpstr(udnp1->dict1->dict2->string, ==, in nested_struct_compare() 248 g_assert_cmpstr(udnp1->dict1->dict3->userdef->string, ==, in nested_struct_compare() 250 g_assert_cmpstr(udnp1->dict1->dict3->string, ==, in nested_struct_compare() 309 g_assert_cmpstr(pt->value.string, ==, pt_copy->value.string); in test_primitives() 478 g_assert_cmpstr(pt->value.string, ==, ptr->value); in test_primitive_lists() 546 g_assert_cmpstr(double_actual->str, ==, double_expected->str); in test_primitive_lists()
|
H A D | test-cutils.c | 3564 g_assert_cmpstr(str, ==, "999 Hz"); in test_freq_to_str() 3568 g_assert_cmpstr(str, ==, "1 KHz"); in test_freq_to_str() 3572 g_assert_cmpstr(str, ==, "1.01 KHz"); in test_freq_to_str() 3581 g_assert_cmpstr(str, ==, "0 B"); in test_size_to_str() 3585 g_assert_cmpstr(str, ==, "1 B"); in test_size_to_str() 3589 g_assert_cmpstr(str, ==, "0.992 KiB"); in test_size_to_str() 3593 g_assert_cmpstr(str, ==, "1 KiB"); in test_size_to_str() 3597 g_assert_cmpstr(str, ==, "512 MiB"); in test_size_to_str() 3603 g_assert_cmpstr(iec_binary_prefix(0), ==, ""); in test_iec_binary_prefix() 3604 g_assert_cmpstr(iec_binary_prefix(10), ==, "Ki"); in test_iec_binary_prefix() [all …]
|
H A D | check-qom-proplist.c | 354 g_assert_cmpstr(dobj->sv, ==, "Hiss hiss hiss"); in test_dummy_createv() 395 g_assert_cmpstr(dobj->sv, ==, "Hiss hiss hiss"); in test_dummy_createlist() 439 g_assert_cmpstr(dobj->sv, ==, "Hiss hiss hiss"); in test_dummy_createcmdl() 466 g_assert_cmpstr(dobj->sv, ==, "Hiss hiss hiss"); in test_dummy_createcmdl() 491 g_assert_cmpstr(error_get_pretty(err), ==, in test_dummy_badenum()
|
H A D | test-crypto-afsplit.c | 152 g_assert_cmpstr(actual, ==, expect); in test_afsplit() 169 g_assert_cmpstr(actual, ==, expect); in test_afsplit()
|
/openbmc/qemu/tests/qtest/ |
H A D | virtio-net-failover.c | 93 g_assert_cmpstr(qdict_get_str(err, "desc"), ==, in test_error_id() 123 g_assert_cmpstr(qdict_get_str(err, "desc"), ==, in test_error_pcie() 244 g_assert_cmpstr(mac, ==, addr); \ 304 g_assert_cmpstr(qdict_get_str(resp, "device-id"), ==, id); in start_virtio_net() 675 g_assert_cmpstr(qdict_get_str(resp, "device-id"), ==, "primary0"); in test_migrate_out() 689 g_assert_cmpstr(status, !=, "active"); in test_migrate_out() 690 g_assert_cmpstr(status, !=, "completed"); in test_migrate_out() 691 g_assert_cmpstr(status, !=, "failed"); in test_migrate_out() 692 g_assert_cmpstr(status, !=, "cancelling"); in test_migrate_out() 693 g_assert_cmpstr(status, !=, "cancelled"); in test_migrate_out() [all …]
|
H A D | device-introspect-test.c | 210 g_assert_cmpstr(qom_tree_start, ==, qom_tree_end); in test_device_intro_none() 212 g_assert_cmpstr(qtree_start, ==, qtree_end); in test_device_intro_none() 229 g_assert_cmpstr(qom_tree_start, ==, qom_tree_end); in test_device_intro_abstract() 231 g_assert_cmpstr(qtree_start, ==, qtree_end); in test_device_intro_abstract() 262 g_assert_cmpstr(qom_tree_start, ==, qom_tree_end); in test_device_intro_concrete() 265 g_assert_cmpstr(qtree_start, ==, qtree_end); in test_device_intro_concrete()
|
H A D | pvpanic-test.c | 32 g_assert_cmpstr(qdict_get_str(data, "action"), ==, "run"); in test_panic_nopause() 55 g_assert_cmpstr(qdict_get_str(data, "action"), ==, "pause"); in test_panic() 83 g_assert_cmpstr(qdict_get_str(data, "reason"), ==, "guest-shutdown"); in test_pvshutdown()
|
H A D | qmp-test.c | 151 g_assert_cmpstr(qdict_get_try_str(resp, "id"), ==, "cookie#1"); in test_qmp_protocol() 214 g_assert_cmpstr(qdict_get_try_str(resp, "id"), ==, id); in recv_cmd_id() 238 g_assert_cmpstr(qstring_get_str(qstr), ==, "oob"); in test_qmp_oob() 304 g_assert_cmpstr(qdict_get_try_str(ret, "status"), ==, "prelaunch"); in test_qmp_preconfig() 315 g_assert_cmpstr(qdict_get_try_str(ret, "status"), ==, "running"); in test_qmp_preconfig()
|
H A D | pvpanic-pci-test.c | 47 g_assert_cmpstr(qdict_get_str(data, "action"), ==, "run"); in test_panic_nopause() 80 g_assert_cmpstr(qdict_get_str(data, "action"), ==, "pause"); in test_panic() 118 g_assert_cmpstr(qdict_get_str(data, "reason"), ==, "guest-shutdown"); in test_pvshutdown()
|
H A D | acpi-utils.h | 32 g_assert_cmpstr(ACPI_ASSERT_CMP_str, ==, expected); \ 38 g_assert_cmpstr(ACPI_ASSERT_CMP_str, ==, expected); \
|
H A D | netdev-socket.c | 35 g_assert_cmpstr(resp, ==, e); \ 211 g_assert_cmpstr(addr->u.q_unix.path, ==, path); in test_stream_unix_reconnect() 228 g_assert_cmpstr(addr->u.q_unix.path, ==, path); in test_stream_unix_reconnect() 233 g_assert_cmpstr(addr->u.q_unix.path, ==, path); in test_stream_unix_reconnect()
|