| /openbmc/qemu/tests/unit/ |
| H A D | test-resv-mem.c | 39 GList *expected) in compare_ranges() argument 45 print_ranges("expected", expected); in compare_ranges() 47 if (!expected) { in compare_ranges() 51 g_assert_cmpint(g_list_length(ranges), ==, g_list_length(expected)); in compare_ranges() 52 for (l = ranges, e = expected; l ; l = l->next, e = e->next) { in compare_ranges() 69 static void reset(GList **in, GList **out, GList **expected) in reset() argument 73 g_list_free_full(*expected, g_free); in reset() 76 *expected = NULL; in reset() 80 run_range_inverse_array(const char *prefix, GList **in, GList **expected, in run_range_inverse_array() argument 85 compare_ranges(prefix, out, *expected); in run_range_inverse_array() [all …]
|
| H A D | test-qht.c | 70 static void check(int a, int b, bool expected) in check() argument 89 g_assert_true(!!p == expected); in check() 108 static void check_n(size_t expected) in check_n() argument 113 g_assert_cmpuint(stats.entries, ==, expected); in check_n() 133 static void iter_sum_check(unsigned int expected) in iter_sum_check() argument 138 g_assert_cmpuint(sum, ==, expected); in iter_sum_check() 156 unsigned int expected = 0; in iter_rm_mod_check() local 163 expected += i; in iter_rm_mod_check() 165 iter_sum_check(expected); in iter_rm_mod_check()
|
| /openbmc/openbmc/poky/bitbake/lib/bb/tests/ |
| H A D | runqueue.py | 61 expected = ['a1:' + x for x in self.alltasks] 62 self.assertEqual(set(tasks), set(expected)) 71 …expected = ['a1:package_setscene', 'a1:fetch', 'a1:unpack', 'a1:patch', 'a1:prepare_recipe_sysroot… 74 self.assertEqual(set(tasks), set(expected)) 83 …expected = ['a1:package_setscene', 'a1:packagedata', 'a1:package_qa', 'a1:package_write_rpm', 'a1:… 85 self.assertEqual(set(tasks), set(expected)) 94 …expected = ['a1:package_write_ipk_setscene', 'a1:package_write_rpm_setscene', 'a1:packagedata_sets… 96 self.assertEqual(set(tasks), set(expected)) 105 …expected = ['a1:package_write_ipk_setscene', 'a1:package_write_rpm_setscene', 'a1:packagedata_sets… 107 self.assertEqual(set(tasks), set(expected)) [all …]
|
| H A D | color.py | 71 expected = [(10, None), (50, None), (60, None), (100, None)] 72 self.assertEqual(self._progress_watcher.reports(), expected) 84 expected = [(0, None), (1, None), (2, None), (10, None), (100, None)] 85 self.assertListEqual(self._progress_watcher.reports(), expected) 94 expected = [(0, None), (20.0, None), (60.0, None), (100.0, None)] 95 self.assertListEqual(self._progress_watcher.reports(), expected)
|
| /openbmc/qemu/tests/tcg/s390x/ |
| H A D | signals-s390x.c | 55 } expected; variable 63 if (sig != expected.sig) { in handle_signal() 68 if (info->si_addr != expected.addr) { in handle_signal() 73 if (((ucontext_t *)ucontext)->uc_mcontext.psw.addr != expected.psw_addr) { in handle_signal() 78 switch (expected.exception) { in handle_signal() 80 page = mmap(expected.addr, 4096, PROT_READ | PROT_WRITE, in handle_signal() 82 if (page != expected.addr) { in handle_signal() 88 err = mprotect(expected.addr, 4096, PROT_READ | PROT_WRITE); in handle_signal() 128 expected.sig = SIGSEGV; in check_sigsegv() 129 expected.addr = page; in check_sigsegv() [all …]
|
| H A D | mvc-smc.c | 64 int expected, size; in main() local 68 expected = emit_function(rwx + RWX_OFFSET, size); in main() 69 if (((function_t)(rwx + RWX_OFFSET))(0) != expected) { in main() 75 expected = emit_function(rw, size); in main() 77 if (((function_t)(rwx + RWX_OFFSET))(0) != expected) { in main()
|
| H A D | mvo.c | 8 uint8_t expected[6] = {0xff, 0x01, 0x23, 0x45, 0x6c, 0xff}; in main() local 18 for (i = 0; i < sizeof(expected); i++) { in main() 19 if (dest[i] != expected[i]) { in main()
|
| /openbmc/bmcweb/test/http/ |
| H A D | server_sent_event_test.cpp | 50 constexpr std::string_view expected = in TEST() local 55 while (out.str().size() != expected.size() || !openCalled) in TEST() 61 eventContent.resize(expected.size()); in TEST() 64 EXPECT_EQ(eventContent, expected); in TEST() 72 std::string_view expected = "id: TestEventId\n" in TEST() local 76 while (out.str().size() < expected.size()) in TEST() 80 EXPECT_EQ(out.str(), expected); in TEST() 83 eventContent.resize(expected.size()); in TEST() 86 EXPECT_EQ(eventContent, expected); in TEST() 92 constexpr std::string_view expected = in TEST() local [all …]
|
| /openbmc/u-boot/scripts/kconfig/tests/ |
| H A D | conftest.py | 220 def _read_and_compare(self, compare, expected): argument 226 with open(os.path.join(self._test_dir, expected)) as f: 230 def _contains(self, attr, expected): argument 233 expected) 235 def _matches(self, attr, expected): argument 237 expected) 239 def config_contains(self, expected): argument 245 return self._contains('config', expected) 247 def config_matches(self, expected): argument 253 return self._matches('config', expected) [all …]
|
| /openbmc/qemu/util/ |
| H A D | lockcnt.c | 63 int expected = *val; in qemu_lockcnt_cmpxchg_or_wait() local 65 trace_lockcnt_fast_path_attempt(lockcnt, expected, new_if_free); in qemu_lockcnt_cmpxchg_or_wait() 66 *val = qatomic_cmpxchg(&lockcnt->count, expected, new_if_free); in qemu_lockcnt_cmpxchg_or_wait() 67 if (*val == expected) { in qemu_lockcnt_cmpxchg_or_wait() 68 trace_lockcnt_fast_path_success(lockcnt, expected, new_if_free); in qemu_lockcnt_cmpxchg_or_wait() 82 int expected = *val; in qemu_lockcnt_cmpxchg_or_wait() local 83 int new = expected - QEMU_LOCKCNT_STATE_LOCKED + QEMU_LOCKCNT_STATE_WAITING; in qemu_lockcnt_cmpxchg_or_wait() 85 trace_lockcnt_futex_wait_prepare(lockcnt, expected, new); in qemu_lockcnt_cmpxchg_or_wait() 86 *val = qatomic_cmpxchg(&lockcnt->count, expected, new); in qemu_lockcnt_cmpxchg_or_wait() 87 if (*val == expected) { in qemu_lockcnt_cmpxchg_or_wait() [all …]
|
| /openbmc/u-boot/post/lib_powerpc/fpu/ |
| H A D | mul-subnormal-single-1.c | 61 } static volatile expected[] = variable 72 for (i = 0; i < ARRAY_SIZE(expected); i++) in fpu_post_test_math7() 74 tstmul (expected[i].p1, expected[i].p2, expected[i].res); in fpu_post_test_math7() 75 tstmul (expected[i].p2, expected[i].p1, expected[i].res); in fpu_post_test_math7()
|
| /openbmc/openbmc/meta-google/recipes-google/networking/network-sh/ |
| H A D | test.sh | 52 expected=(0xa2 0 0xf 0xde 0 0x29) 53 expect_array_numeq out expected 80 expected=(10 0 0 1) 81 expect_array_numeq out expected 95 expected=(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0) 96 expect_array_numeq out expected 100 expected=(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1) 101 expect_array_numeq out expected 105 expected=(0xfd 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0) 106 expect_array_numeq out expected [all …]
|
| /openbmc/qemu/scripts/ |
| H A D | xml-preprocess-test.py | 43 expected = "<included>Content from included file</included>" 46 self.assertEqual(result, expected) 53 expected = "<root>TestValue</root>" 56 self.assertEqual(result, expected) 61 expected = f"<root>{platform.architecture()[0]}</root>" 64 self.assertEqual(result, expected) 69 expected = "<root></root>" 72 self.assertEqual(result, expected) 74 expected = "<root>FOO</root>" 77 self.assertEqual(result, expected) [all …]
|
| /openbmc/entity-manager/test/ |
| H A D | test_utils.cpp | 60 std::vector<std::string> expected = {"a", "b", "c"}; in TEST() local 61 EXPECT_EQ(result, expected); in TEST() 67 std::vector<std::string> expected = {"a", "", "b"}; in TEST() local 68 EXPECT_EQ(result, expected); in TEST() 74 std::vector<std::string> expected = {"", "a", "b"}; in TEST() local 75 EXPECT_EQ(result, expected); in TEST() 81 std::vector<std::string> expected = {"a", "b", ""}; in TEST() local 82 EXPECT_EQ(result, expected); in TEST() 88 std::vector<std::string> expected = {"abc"}; in TEST() local 89 EXPECT_EQ(result, expected); in TEST() [all …]
|
| /openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
| H A D | sysroot.py | 47 expected = "maximum shebang size exceeded, the maximum size is 128. [shebang-size]" 49 self.assertTrue(expected in res.output, msg=res.output) 58 expected = "la-test.la failed sanity test (workdir) in path" 61 self.assertTrue(expected in res.output, msg=res.output) 66 self.assertTrue(expected in res.output, msg=res.output) 76 expected = "test.pc failed sanity test (tmpdir) in path" 80 self.assertTrue(expected in res.output, msg=res.output) 84 self.assertTrue(expected in res.output, msg=res.output)
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/cpprest/cpprest/ |
| H A D | disable-float-tests.patch | 13 …void compare_double(double expected, double actual) { compare_floating(expected, actual, DBL_EPSIL… 14 …void compare_float(float expected, float actual) { compare_floating(expected, actual, FLT_EPSILON)… 21 if (expected == 0) VERIFY_ARE_EQUAL(1 / expected, 1 / actual);
|
| /openbmc/bmcweb/test/redfish-core/include/utils/ |
| H A D | hex_utils_test.cpp | 27 uint8_t expected = 16; in TEST() local 30 expected = static_cast<uint8_t>(c) - '0'; in TEST() 34 expected = static_cast<uint8_t>(c - 'A') + 10U; in TEST() 38 expected = static_cast<uint8_t>(c - 'a') + 10U; in TEST() 41 EXPECT_EQ(hexCharToNibble(c), expected); in TEST()
|
| /openbmc/witherspoon-pfault-analysis/test/ |
| H A D | nvtest.cpp | 24 std::string expected; in TEST() local 25 EXPECT_EQ(nv.get(), expected); // empty in TEST() 32 expected = "name1=0x0|name2=0xc0ffee|name3=0x12345678abcdef12|name4=0x1"; in TEST() 34 EXPECT_EQ(nv.get(), expected); in TEST()
|
| /openbmc/phosphor-power/test/ |
| H A D | nvtest.cpp | 24 std::string expected; in TEST() local 25 EXPECT_EQ(nv.get(), expected); // empty in TEST() 32 expected = "name1=0x0|name2=0xc0ffee|name3=0x12345678abcdef12|name4=0x1"; in TEST() 34 EXPECT_EQ(nv.get(), expected); in TEST()
|
| /openbmc/qemu/tests/tcg/plugins/ |
| H A D | inline.c | 65 const uint64_t expected = global_count_insn; in stats_insn() local 75 g_string_append_printf(stats, "insn: %" PRIu64 "\n", expected); in stats_insn() 80 g_assert(expected > 0); in stats_insn() 81 g_assert(per_vcpu == expected); in stats_insn() 82 g_assert(inl_per_vcpu == expected); in stats_insn() 83 g_assert(conditional == expected); in stats_insn() 88 const uint64_t expected = global_count_tb; in stats_tb() local 97 g_string_append_printf(stats, "tb: %" PRIu64 "\n", expected); in stats_tb() 102 g_assert(expected > 0); in stats_tb() 103 g_assert(per_vcpu == expected); in stats_tb() [all …]
|
| /openbmc/qemu/backends/tpm/ |
| H A D | trace-events | 8 tpm_util_get_buffer_size_hdr_len(uint32_t len, size_t expected) "tpm_resp->hdr.len = %u, expected =… 9 tpm_util_get_buffer_size_len(uint32_t len, size_t expected) "tpm_resp->len = %u, expected = %zu" 10 tpm_util_get_buffer_size_hdr_len2(uint32_t len, size_t expected) "tpm2_resp->hdr.len = %u, expected… 11 tpm_util_get_buffer_size_len2(uint32_t len, size_t expected) "tpm2_resp->len = %u, expected = %zu"
|
| /openbmc/qemu/tests/qtest/ |
| H A D | hd-geo-test.c | 89 static void test_cmos_byte(QTestState *qts, int reg, int expected) in test_cmos_byte() argument 96 g_assert(actual == expected); in test_cmos_byte() 100 uint8_t expected[]) in test_cmos_bytes() argument 105 test_cmos_byte(qts, reg0 + i, expected[i]); in test_cmos_bytes() 525 static void read_bootdevices(QFWCFG *fw_cfg, CHSResult expected[]) in read_bootdevices() argument 561 while (expected[i].dev_path) { in read_bootdevices() 566 if (!strcmp(r->dev_path, expected[i].dev_path) && in read_bootdevices() 567 !memcmp(&(r->chs), &(expected[i].chs), sizeof(r->chs))) { in read_bootdevices() 695 CHSResult expected[]) in test_override() argument 707 read_bootdevices(fw_cfg, expected); in test_override() [all …]
|
| /openbmc/entity-manager/test/entity_manager/ |
| H A D | test_entity-manager.cpp | 21 nlohmann::json expected = 23; in TEST() local 22 EXPECT_EQ(expected, j["foo"]); in TEST() 33 nlohmann::json expected = "Test"; in TEST() local 34 EXPECT_EQ(expected, j["foo"]); in TEST() 45 nlohmann::json expected = "the Test"; in TEST() local 46 EXPECT_EQ(expected, j["foo"]); in TEST() 57 nlohmann::json expected = "the Test worked"; in TEST() local 58 EXPECT_EQ(expected, j["foo"]); in TEST() 69 nlohmann::json expected = "the Test 23"; in TEST() local 70 EXPECT_EQ(expected, j["foo"]); in TEST() [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/python3-inotify/ |
| H A D | new-test-inotify.patch | 68 expected = [ 77 - self.assertEquals(events, expected) 78 + if events != expected: 90 + for i, event in enumerate(expected): 109 expected = [ 119 - self.assertEquals(events, expected) 120 + if events != expected: 132 + for i, event in enumerate(expected): 150 expected = [ 181 - self.assertEquals(events, expected) [all …]
|
| /openbmc/qemu/tests/tcg/mips/user/isa/r5900/ |
| H A D | test_r5900_mult.c | 57 static void verify_mult_negations(int32_t rs, int32_t rt, int64_t expected) in verify_mult_negations() argument 59 assert(mult_variants(rs, rt) == expected); in verify_mult_negations() 60 assert(mult_variants(-rs, rt) == -expected); in verify_mult_negations() 61 assert(mult_variants(rs, -rt) == -expected); in verify_mult_negations() 62 assert(mult_variants(-rs, -rt) == expected); in verify_mult_negations()
|