/qemu/tests/unit/ |
H A D | test-qemu-opts.c | 187 g_assert_cmpstr(opt, ==, "value"); in test_qemu_opt_get() 193 g_assert_cmpstr(opt, ==, "value2"); in test_qemu_opt_get() 357 g_assert_cmpstr(value, ==, "value"); in test_qemu_opt_unset() 363 g_assert_cmpstr(value, ==, "value2"); in test_qemu_opt_unset() 371 g_assert_cmpstr(value, ==, "value"); in test_qemu_opt_unset() 760 g_assert_cmpstr(desc[i].help, ==, in append_verify_list_01() 780 g_assert_cmpstr(desc[i].help, ==, in append_verify_list_01() 970 g_assert_cmpstr(opt->name, ==, "foo"); in test_opts_to_qdict_duplicates() 971 g_assert_cmpstr(opt->str , ==, "a"); in test_opts_to_qdict_duplicates() 974 g_assert_cmpstr(opt->name, ==, "foo"); in test_opts_to_qdict_duplicates() [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() 330 g_assert_cmpstr(qstring_get_str(qstring), ==, "foo"); in test_visitor_out_any() 348 g_assert_cmpstr(qdict_get_str(qdict, "string"), ==, "str"); in test_visitor_out_union_flat() 372 g_assert_cmpstr(qdict_get_str(qdict, "name"), ==, "fish"); in test_visitor_out_union_in_union() 440 g_assert_cmpstr(qstring_get_str(qstr), ==, "value1"); in test_visitor_out_alternate() 467 g_assert_cmpstr(qdict_get_str(qdict, "string"), ==, "str"); in test_visitor_out_alternate() 579 g_assert_cmpstr(actual, ==, expected); in test_visitor_out_list_struct() [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() 465 g_assert_cmpstr("fred", ==, qdict_get_str(rule, "match")); in qdict_crumple_test_recursive() 472 g_assert_cmpstr("bob", ==, qdict_get_str(rule, "match")); in qdict_crumple_test_recursive() 546 g_assert_cmpstr(qdict_get_str(copy, "abc"), ==, "foo"); in qdict_rename_keys_test() 547 g_assert_cmpstr(qdict_get_str(copy, "abcdef"), ==, "bar"); in qdict_rename_keys_test() 573 g_assert_cmpstr(qdict_get_str(copy, "str1"), ==, "foo"); in qdict_rename_keys_test() 574 g_assert_cmpstr(qdict_get_str(copy, "str2"), ==, "bar"); in qdict_rename_keys_test() 596 g_assert_cmpstr(qdict_get_str(copy, "abc"), ==, "bar"); in qdict_rename_keys_test() [all …]
|
H A D | test-qga.c | 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() 726 g_assert_cmpstr(err, ==, ""); in test_qga_config() 734 g_assert_cmpstr(str, ==, "general"); in test_qga_config() 785 g_assert_cmpstr(status, ==, "thawed"); in test_qga_fsfreeze_status() 1056 g_assert_cmpstr(str, ==, "QEMU-GA"); in test_qga_guest_get_osinfo() 1064 g_assert_cmpstr(str, ==, "Test 1"); in test_qga_guest_get_osinfo() 1068 g_assert_cmpstr(str, ==, "1"); in test_qga_guest_get_osinfo() [all …]
|
H A D | test-keyval.c | 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() 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() 624 g_assert_cmpstr(s, ==, ""); in test_keyval_visit_list() 627 g_assert_cmpstr(s, ==, "I"); in test_keyval_visit_list() 631 g_assert_cmpstr(s, ==, "II"); in test_keyval_visit_list() 652 g_assert_cmpstr(s, ==, "head"); in test_keyval_visit_list() 712 g_assert_cmpstr(aso->u.s, ==, "1"); in test_keyval_visit_alternate() 738 g_assert_cmpstr(qstring_get_str(qstr), ==, "null"); in test_keyval_visit_any() [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() 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() 936 g_assert_cmpstr(str->str, ==, "false"); 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() 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() 701 g_assert_cmpstr(tmp->string, ==, "str"); in test_visitor_in_union_flat() 783 g_assert_cmpstr(tmp->u.udfu.string, ==, "str"); in test_visitor_in_alternate() [all …]
|
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-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-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() 3620 g_assert_cmpstr(si_prefix(0), ==, ""); in test_si_prefix() 3621 g_assert_cmpstr(si_prefix(3), ==, "K"); in test_si_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()
|
/qemu/tests/qtest/ |
H A D | virtio-net-failover.c | 93 g_assert_cmpstr(qdict_get_str(err, "desc"), ==, in test_error_id() 689 g_assert_cmpstr(status, !=, "active"); in test_migrate_out() 691 g_assert_cmpstr(status, !=, "failed"); in test_migrate_out() 720 g_assert_cmpstr(status, !=, "failed"); in test_migrate_out() 850 g_assert_cmpstr(status, !=, "failed"); in test_off_migrate_out() 974 g_assert_cmpstr(status, !=, "failed"); in test_guest_off_migrate_out() 1106 g_assert_cmpstr(status, !=, "failed"); in test_migrate_guest_off_abort() 1126 g_assert_cmpstr(status, !=, "failed"); in test_migrate_guest_off_abort() 1127 g_assert_cmpstr(status, !=, "active"); in test_migrate_guest_off_abort() 1203 g_assert_cmpstr(status, ==, "cancelling"); in test_migrate_abort_wait_unplug() [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 | 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 | acpi-utils.h | 32 g_assert_cmpstr(ACPI_ASSERT_CMP_str, ==, expected); \ 38 g_assert_cmpstr(ACPI_ASSERT_CMP_str, ==, expected); \
|
H A D | pvpanic-test.c | 31 g_assert_cmpstr(qdict_get_str(data, "action"), ==, "run"); in test_panic_nopause() 54 g_assert_cmpstr(qdict_get_str(data, "action"), ==, "pause"); in test_panic()
|
H A D | pvpanic-pci-test.c | 46 g_assert_cmpstr(qdict_get_str(data, "action"), ==, "run"); in test_panic_nopause() 79 g_assert_cmpstr(qdict_get_str(data, "action"), ==, "pause"); in test_panic()
|
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()
|