/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 …]
|
/openbmc/u-boot/scripts/kconfig/tests/ |
H A D | conftest.py | 220 def _read_and_compare(self, compare, expected): argument 224 expected: file that contains the expected data 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 240 """Check if resulted configuration contains expected data. 242 expected: file that contains the expected data [all …]
|
/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 …]
|
/openbmc/qemu/scripts/ |
H A D | device-crash-test | 70 # * expected: if True, QEMU is expected to always fail every time 76 {'machine':'niagara', 'expected':True}, # Unable to load a firmware for -M niagara 77 … {'machine':'boston', 'expected':True}, # Please provide either a -kernel or -bios argument 78 {'machine':'leon3_generic', 'expected':True}, # Can't read bios image (null) 82 {'device':'.*-(i386|x86_64)-cpu', 'expected':True}, # CPU socket-id is not set 83 …{'device':'icp', 'expected':True}, # icp_realize: required link 'xics' not fou… 84 …{'device':'ics', 'expected':True}, # ics_base_realize: required link 'xics' no… 85 # "-device ide-cd" does work on more recent QEMU versions, so it doesn't have expected=True 87 {'device':'ide-hd', 'expected':True}, # No drive specified 88 …{'device':'ipmi-bmc-extern', 'expected':True}, # IPMI external bmc requires chardev attrib… [all …]
|
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/openbmc/meta-openembedded/meta-oe/recipes-devtools/memtool/memtool/ |
H A D | test_read_write_plainfiles.sh | 22 EXPECTED=$2 25 if [ "$ACTUAL" = "$EXPECTED" ]; then 29 echo " Expected: $EXPECTED" 35 # Test Case: Verifies that the expected string of bytes is read from a plain file starting from 38 EXPECTED="00000006: 57 6f 72 6c 64 21 World!" 40 verify "$ACTUAL" "$EXPECTED" "memtool read from plain file" 43 # Test Case 2: Verifies that the expected string of bytes is written to a plain file starting from 52 EXPECTED="00000006: 59 6f 63 74 6f 21 Yocto!" 54 verify "$ACTUAL" "$EXPECTED" "memtool write to plain file"
|
/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/openbmc-test-automation/data/ |
H A D | ipmi_raw_cmd_table.py | 6 - Define IPMI interface index, commands and expected output. 24 # raw command, expected output(s), comment 34 # raw command, expected output, comment 40 # raw command, expected output, comment 48 # raw command, expected output(s), comment 56 # raw command, expected output, comment 62 # raw command, expected output, comment 70 # raw command, expected output, comment 80 # raw command, expected output(s) 88 # raw command, expected output(s) [all …]
|
/openbmc/telemetry/tests/src/ |
H A D | test_numeric_threshold.cpp | 77 LabeledThresholdParam expected = numeric::LabeledThresholdParam( in TEST_F() local 79 EXPECT_EQ(sut->getThresholdParam(), expected); in TEST_F() 120 NumericParams& Expected(std::vector<ExpectedParams> val) in Expected() function 122 expected = std::move(val); in Expected() 162 *os << " ], Expected: [ "; in PrintTo() 163 for (const auto& [index, value, waitMin] : o.expected) in PrintTo() 175 std::vector<ExpectedParams> expected; member 201 for (const auto& [index, value, waitMin] : GetParam().expected) in testBodySensorIsUpdatedMultipleTimes() 233 for (const auto& [index, value, waitMin] : GetParam().expected) in testBodySensorIsUpdatedMultipleTimes() 263 .Expected({}), [all …]
|
H A D | test_on_change_threshold.cpp | 68 LabeledThresholdParam expected = std::monostate(); in TEST_F() local 69 EXPECT_EQ(sut->getThresholdParam(), expected); in TEST_F() 91 OnChangeParams& Expected(std::vector<ExpectedParams> val) in Expected() function 93 expected = std::move(val); in Expected() 104 *os << " ] Expected: [ "; in PrintTo() 105 for (const auto& [index, value] : o.expected) in PrintTo() 113 std::vector<ExpectedParams> expected; member 123 Values(OnChangeParams().Updates({{0, 80.0}}).Expected({{0, 80.0}}), 126 .Expected({{0, 80.0}, {1, 81.0}}), 129 .Expected({{0, 80.0}, {0, 90.0}}), [all …]
|
H A D | test_discrete_threshold.cpp | 87 LabeledThresholdParam expected = discrete::LabeledThresholdParam( in TEST_P() local 89 EXPECT_EQ(sut->getThresholdParam(), expected); in TEST_P() 160 DiscreteParams& Expected(std::vector<ExpectedParams> val) in Expected() function 162 expected = std::move(val); in Expected() 188 *os << " ] Expected: [ "; in PrintTo() 189 for (const auto& [index, value, waitMin] : o.expected) in PrintTo() 198 std::vector<ExpectedParams> expected; member 225 for (const auto& [index, value, waitMin] : GetParam().expected) in testBodySensorIsUpdatedMultipleTimes() 248 for (const auto& [index, value, waitMin] : GetParam().expected) in testBodySensorIsUpdatedMultipleTimes() 275 .Expected({}), [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/State/ |
H A D | Cable.events.yaml | 10 description: The port where an expected cable is not connected. 12 description: An expected cable is not connected. 13 message: An expected cable on port {PortId} is not connected. 23 description: The port where an expected cable is connected. 25 description: An expected cable is connected. 26 message: An expected cable on port {PortId} is connected.
|
/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 …]
|
/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/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | sysroot.py | 44 Expected: Fail when a shebang bigger than the max shebang-size is reached. 47 expected = "maximum shebang size exceeded, the maximum size is 128. [shebang-size]" 49 self.assertTrue(expected in res.output, msg=res.output) 55 Expected: Fail when a workdir path is found in the file content. 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) 73 Expected: Fail when a tmpdir path is found in the file content. 76 expected = "test.pc failed sanity test (tmpdir) in path" 80 self.assertTrue(expected in res.output, msg=res.output) [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-tools/expectedJsonChecker/ |
H A D | README.md | 1 # Expected JSON Checker tool 3 A tool that cross checks an expected set of JSON entries, by a given index, with 5 expected entries by using logical operations against entries within another file 6 contain JSON entries. This filtering functionality on cross checking expected 9 Expected entries that only want to be found within the input JSON should use a 16 entries within the BMC's enumerated sensor JSON output against an expected set 17 of entries for a specific machine. In addition, the expected set of entries are 20 expected set of entries that should be contained within the sensor data is 22 determine if all the expected set of entries are found within the sensor data. 23 The machine's name was used as the index into the expected JSON to allow the [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: 87 + print("EXPECTED:") 90 + for i, event in enumerate(expected): 109 expected = [ 119 - self.assertEquals(events, expected) 120 + if events != expected: 129 + print("EXPECTED:") 132 + for i, event in enumerate(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/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/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/openbmc-test-automation/lib/ |
H A D | dmtf_redfishtool_utils.robot | 22 # expected_error Expected error optionally provided in testcase (e.g. 401 / 28 IF ${rc} != 0 Is HTTP error Expected ${cmd_output} ${expected_error} 41 # expected_error Expected error optionally provided in testcase (e.g. 401 / 47 IF ${rc} != 0 Is HTTP error Expected ${cmd_output} ${expected_error} 61 # expected_error Expected error optionally provided in testcase (e.g. 401 / 67 IF ${rc} != 0 Is HTTP error Expected ${cmd_output} ${expected_error} 79 # expected_error Expected error optionally provided in testcase (e.g. 401 / 85 IF ${rc} != 0 Is HTTP error Expected ${cmd_output} ${expected_error} 90 Is HTTP error Expected 91 [Documentation] Check if the HTTP error is expected. [all …]
|
/openbmc/openbmc-test-automation/redfish/extended/ |
H A D | test_power_restore.robot | 32 ... Expected Host State: 38 # Policy Initial Host State Expected Host State 48 # Policy Initial Host State Expected Host State 59 ... Expected Host State: 65 # Policy Initial Host State Expected Host State 75 # Policy Initial Host State Expected Host State 87 ... Expected Host State: 93 # Policy Initial Host State Expected Host State 103 # Policy Initial Host State Expected Host State 144 [Documentation] Poweron if ON expected, Poweroff if OFF expected
|
/openbmc/entity-manager/test/entity_manager/ |
H A D | test_entity-manager.cpp | 22 nlohmann::json expected = 23; in TEST() local 23 EXPECT_EQ(expected, j["foo"]); in TEST() 35 nlohmann::json expected = "Test"; in TEST() local 36 EXPECT_EQ(expected, j["foo"]); in TEST() 48 nlohmann::json expected = "the Test"; in TEST() local 49 EXPECT_EQ(expected, j["foo"]); in TEST() 61 nlohmann::json expected = "the Test worked"; in TEST() local 62 EXPECT_EQ(expected, j["foo"]); in TEST() 74 nlohmann::json expected = "the Test 23"; in TEST() local 75 EXPECT_EQ(expected, in TEST() 87 nlohmann::json expected = "3 plus 1 equals 4"; TEST() local 100 nlohmann::json expected = "3 minus 1 equals 2 !"; TEST() local 113 nlohmann::json expected = "3 mod 2 equals 1"; TEST() local 126 nlohmann::json expected = "3 * 2 equals 6"; TEST() local 139 nlohmann::json expected = "4 / 2 equals 2"; TEST() local 152 nlohmann::json expected = "4 * 2 % 6 equals 2"; TEST() local 166 nlohmann::json expected = "foo bar"; TEST() local 180 nlohmann::json expected = "4 / 2 equals 2 bar"; TEST() local 193 nlohmann::json expected = "4 / 2 equals 2 bar"; TEST() local 211 nlohmann::json expected = {{"Address", 84}, TEST() local 227 nlohmann::json expected = "twelve is 12"; TEST() local 239 nlohmann::json expected = 84; TEST() local [all...] |
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-dbs/postgresql/files/ |
H A D | 0005-postgresql-fix-ptest-failure-of-sysviews.patch | 10 Also we need to reduce the row count in expected result of sysview test 17 src/test/regress/expected/sysviews.out | 2 +- 21 diff --git a/src/test/regress/expected/sysviews.out b/src/test/regress/expected/sysviews.out 23 --- a/src/test/regress/expected/sysviews.out 24 +++ b/src/test/regress/expected/sysviews.out
|