/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/linux/scripts/kconfig/tests/ |
H A D | conftest.py | 224 def _read_and_compare(self, compare, expected): argument 228 expected: file that contains the expected data 230 with open(os.path.join(self._test_dir, expected)) as f: 234 def _contains(self, attr, expected): argument 237 expected) 239 def _matches(self, attr, expected): argument 241 expected) 243 def config_contains(self, expected): argument 244 """Check if resulted configuration contains expected data. 246 expected: file that contains the expected data [all …]
|
/openbmc/linux/tools/testing/selftests/hid/tests/ |
H A D | test_apple_keyboard.py | 171 expected = [syn_event] 172 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_ALL_APPLICATIONS, 1)) 175 self.assertInputEventsIn(expected, events) 180 expected = [syn_event] 181 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_ALL_APPLICATIONS, 0)) 184 self.assertInputEventsIn(expected, events) 195 expected = [syn_event] 196 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_F4, 1)) 197 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_FN, 1)) 200 self.assertInputEventsIn(expected, events) [all …]
|
H A D | test_keyboard.py | 270 expected = [syn_event] 271 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_A, 1)) 274 self.assertInputEventsIn(expected, events) 278 expected = [syn_event] 279 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_A, 0)) 282 self.assertInputEventsIn(expected, events) 291 expected = [syn_event] 292 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_A, 1)) 293 expected.append(libevdev.InputEvent(libevdev.EV_KEY.KEY_Q, 1)) 296 self.assertInputEventsIn(expected, events) [all …]
|
/openbmc/linux/tools/testing/selftests/ |
H A D | kselftest_harness.h | 173 * Defines a test by name and the expected term signal. 450 * @expected: expected value 453 * ASSERT_EQ(expected, measured): expected == measured 455 #define ASSERT_EQ(expected, seen) \ argument 456 __EXPECT(expected, #expected, seen, #seen, ==, 1) 461 * @expected: expected value 464 * ASSERT_NE(expected, measured): expected != measured 466 #define ASSERT_NE(expected, seen) \ argument 467 __EXPECT(expected, #expected, seen, #seen, !=, 1) 472 * @expected: expected value [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/tests/ |
H A D | runqueue.py | 59 expected = ['a1:' + x for x in self.alltasks] 60 self.assertEqual(set(tasks), set(expected)) 69 …expected = ['a1:package_setscene', 'a1:fetch', 'a1:unpack', 'a1:patch', 'a1:prepare_recipe_sysroot… 72 self.assertEqual(set(tasks), set(expected)) 81 …expected = ['a1:package_setscene', 'a1:packagedata', 'a1:package_qa', 'a1:package_write_rpm', 'a1:… 83 self.assertEqual(set(tasks), set(expected)) 92 …expected = ['a1:package_write_ipk_setscene', 'a1:package_write_rpm_setscene', 'a1:packagedata_sets… 94 self.assertEqual(set(tasks), set(expected)) 103 …expected = ['a1:package_write_ipk_setscene', 'a1:package_write_rpm_setscene', 'a1:packagedata_sets… 105 self.assertEqual(set(tasks), set(expected)) [all …]
|
/openbmc/qemu/scripts/ |
H A D | device-crash-test | 71 # * expected: if True, QEMU is expected to always fail every time 77 {'machine':'niagara', 'expected':True}, # Unable to load a firmware for -M niagara 78 … {'machine':'boston', 'expected':True}, # Please provide either a -kernel or -bios argument 79 {'machine':'leon3_generic', 'expected':True}, # Can't read bios image (null) 83 {'device':'.*-(i386|x86_64)-cpu', 'expected':True}, # CPU socket-id is not set 84 …{'device':'icp', 'expected':True}, # icp_realize: required link 'xics' not fou… 85 …{'device':'ics', 'expected':True}, # ics_base_realize: required link 'xics' no… 86 # "-device ide-cd" does work on more recent QEMU versions, so it doesn't have expected=True 88 {'device':'ide-hd', 'expected':True}, # No drive specified 89 …{'device':'ipmi-bmc-extern', 'expected':True}, # IPMI external bmc requires chardev attrib… [all …]
|
/openbmc/linux/tools/testing/selftests/ftrace/test.d/ftrace/ |
H A D | func_set_ftrace_file.tc | 68 fail "Expected only $ALL_FUNCS" 73 fail "Expected $ALL_FUNCS and $FUNC1:traceoff:unlimited" 78 fail "Expected $FUNC1 and $FUNC1:traceoff:unlimited" 83 fail "Expected $FUNC1 $FUNC2 and $FUNC1:traceoff:unlimited" 88 fail "Expected $FUNC1 $FUNC2 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 93 fail "Expected $FUNC1 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 98 fail "Expected $ALL_FUNCS $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 104 fail "Expected $ALL_FUNCS" 109 fail "Expected $FUNC1" 114 fail "Expected $FUNC1 and $FUNC2" [all …]
|
/openbmc/linux/drivers/iio/test/ |
H A D | iio-test-rescale.c | 28 const char *expected; member 42 .expected = "5210.918114143", 50 .expected = "-5210.918114143", 59 .expected = "260.545905707", 68 .expected = "-260.545905707", 77 .expected = "0.049528301", 86 .expected = "-0.049528301", 95 .expected = "1240.710106203", 104 .expected = "-1240.710106203", 113 .expected = "1240.84789", [all …]
|
/openbmc/linux/drivers/gpu/drm/tests/ |
H A D | drm_format_helper_test.c | 21 const u8 expected[TEST_BUF_SIZE]; member 26 const u8 expected[TEST_BUF_SIZE]; member 31 const u16 expected[TEST_BUF_SIZE]; member 37 const u16 expected[TEST_BUF_SIZE]; member 42 const u16 expected[TEST_BUF_SIZE]; member 47 const u16 expected[TEST_BUF_SIZE]; member 52 const u8 expected[TEST_BUF_SIZE]; member 57 const u32 expected[TEST_BUF_SIZE]; member 62 const u32 expected[TEST_BUF_SIZE]; member 67 const u32 expected[TEST_BUF_SIZE]; member [all …]
|
/openbmc/linux/tools/testing/selftests/livepatch/ |
H A D | test-shadow-vars.sh | 21 $MOD_TEST: got expected NULL result 35 $MOD_TEST: got expected PTR3 -> PTR2 result 37 $MOD_TEST: got expected PTR6 -> PTR5 result 39 $MOD_TEST: got expected PTR8 -> PTR7 result 41 $MOD_TEST: got expected PTR11 -> PTR10 result 43 $MOD_TEST: got expected PTR13 -> PTR12 result 45 $MOD_TEST: got expected PTR16 -> PTR15 result 47 $MOD_TEST: got expected PTR3 -> PTR2 result 49 $MOD_TEST: got expected PTR8 -> PTR7 result 51 $MOD_TEST: got expected PTR13 -> PTR12 result [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() 232 for (const auto& [index, value, waitMin] : GetParam().expected) in testBodySensorIsUpdatedMultipleTimes() 260 .Expected({}), [all …]
|
/openbmc/linux/scripts/ |
H A D | rust_is_available_test.py | 7 under their canonical name (and with the expected versions). 20 class Expected(enum.Enum): class in TestRustIsAvailable 98 def run_script(self, expected, override_env): argument 116 if expected == self.Expected.SUCCESS: 121 elif expected == self.Expected.SUCCESS_WITH_EXTRA_OUTPUT: 128 elif expected == self.Expected.SUCCESS_WITH_WARNINGS: 146 result = self.run_script(self.Expected.FAILURE, { "RUSTC": None }) 151 result = self.run_script(self.Expected.FAILURE, { "BINDGEN": None }) 156 result = self.run_script(self.Expected.FAILURE, { "CC": None }) 161 result = self.run_script(self.Expected.FAILURE, { "RUSTC": self.missing }) [all …]
|
/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | diag.sh | 57 local expected=$2 65 if [ "$nr" != "$expected" ]; then 70 echo "[ fail ] expected $expected found $nr" 97 local expected=$1 108 [ $nr == $expected ] && break; 116 echo "[ fail ] timeout while expecting $expected max $max last $nr" 119 elif [ $nr != $expected ]; then 120 echo "[ fail ] expected $expected found $nr" 143 local expected=$2 146 __chk_nr "ss -N $ns -Ml '$filter' | grep -c LISTEN" "$expected" "$msg" 0 [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn21/ |
H A D | dcn21_hubp.c | 291 …DC_LOG_DEBUG("DML Validation | HUBPRET_CONTROL:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actual:… in hubp21_validate_dml_output() 294 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 297 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:MRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 300 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actu… in hubp21_validate_dml_output() 303 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:CRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 307 DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:CHUNK_SIZE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 310 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_CHUNK_SIZE - Expected: %u Actual: %u\… in hubp21_validate_dml_output() 313 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:META_CHUNK_SIZE - Expected: %u Actual: %u… in hubp21_validate_dml_output() 316 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_META_CHUNK_SIZE - Expected: %u Actual… in hubp21_validate_dml_output() 319 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:DPTE_GROUP_SIZE - Expected: %u Actual: %u… in hubp21_validate_dml_output() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_progs.h | 237 #define ASSERT_EQ(actual, expected, name) ({ \ argument 240 typeof(expected) ___exp = (expected); \ 243 "unexpected %s: actual %lld != expected %lld\n", \ 248 #define ASSERT_NEQ(actual, expected, name) ({ \ argument 251 typeof(expected) ___exp = (expected); \ 254 "unexpected %s: actual %lld == expected %lld\n", \ 259 #define ASSERT_LT(actual, expected, name) ({ \ argument 262 typeof(expected) ___exp = (expected); \ 265 "unexpected %s: actual %lld >= expected %lld\n", \ 270 #define ASSERT_LE(actual, expected, name) ({ \ argument [all …]
|
/openbmc/linux/tools/testing/selftests/damon/ |
H A D | _debugfs_common.sh | 9 expected=$5 12 if [ $? -ne "$expected" ] 14 echo "writing $content to $file doesn't return $expected" 15 echo "expected because: $expect_reason" 32 expected=$3 36 if [ "$content" != "$expected" ] 38 echo "reading $file expected $expected but $content" 39 echo "expected because: $expect_reason"
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | btf_dump_test_case_padding.c | 9 /* ----- START-EXPECTED-OUTPUT ----- */ 16 /* ------ END-EXPECTED-OUTPUT ------ */ 18 /* ----- START-EXPECTED-OUTPUT ----- */ 27 /* ------ END-EXPECTED-OUTPUT ------ */ 35 /* ----- START-EXPECTED-OUTPUT ----- */ 43 /* ------ END-EXPECTED-OUTPUT ------ */ 45 /* ----- START-EXPECTED-OUTPUT ----- */ 59 /* ------ END-EXPECTED-OUTPUT ------ */ 66 /* ----- START-EXPECTED-OUTPUT ----- */ 80 /* ------ END-EXPECTED-OUTPUT ------ */ [all …]
|
/openbmc/bmcweb/test/http/ |
H A D | server_sent_event_test.cpp | 47 constexpr std::string_view expected = in TEST() local 52 while (out.str().size() != expected.size() || !openCalled) in TEST() 58 eventContent.resize(expected.size()); in TEST() 61 EXPECT_EQ(eventContent, expected); in TEST() 69 std::string_view expected = "id: TestEventId\n" in TEST() local 73 while (out.str().size() < expected.size()) in TEST() 77 EXPECT_EQ(out.str(), expected); in TEST() 80 eventContent.resize(expected.size()); in TEST() 83 EXPECT_EQ(eventContent, expected); in TEST() 89 constexpr std::string_view expected = in TEST() local [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/linux/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | event_attributes_test.c | 23 /* Expected to succeed */ in event_attributes() 30 /* Expected to fail, no PMC specified */ in event_attributes() 37 /* Expected to fail, not exclusive */ in event_attributes() 44 /* Expected to fail, sets freq */ in event_attributes() 51 /* Expected to fail, sets sample_period */ in event_attributes() 58 /* Expected to fail, sets enable_on_exec */ in event_attributes() 65 /* Expected to fail, sets inherit */ in event_attributes() 76 /* Expected to succeed */ in event_attributes() 88 /* Expected to fail, event doesn't request EBB, leader does */ in event_attributes() 103 /* Expected to fail, leader doesn't request EBB */ in event_attributes() [all …]
|
/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/linux/fs/ext4/ |
H A D | inode-test.c | 77 struct timespec64 expected; member 89 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L}, 97 .expected = {.tv_sec = -1LL, .tv_nsec = 0L}, 105 .expected = {0LL, 0L}, 113 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L}, 121 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L}, 129 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L}, 137 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L}, 145 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L}, 153 .expected = {.tv_sec = 0x180000000LL, .tv_nsec = 0L}, [all …]
|