| /kernel/linux/linux-5.10/scripts/kconfig/tests/ |
| 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 …]
|
| /kernel/linux/linux-6.6/scripts/kconfig/tests/ |
| 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 …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/ |
| D | kselftest_harness.h | 167 * Defines a test by name and the expected term signal. 437 * @expected: expected value 440 * ASSERT_EQ(expected, measured): expected == measured 442 #define ASSERT_EQ(expected, seen) \ argument 443 __EXPECT(expected, #expected, seen, #seen, ==, 1) 448 * @expected: expected value 451 * ASSERT_NE(expected, measured): expected != measured 453 #define ASSERT_NE(expected, seen) \ argument 454 __EXPECT(expected, #expected, seen, #seen, !=, 1) 459 * @expected: expected value [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/hid/tests/ |
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/ |
| 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/ftrace/test.d/ftrace/ |
| 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 …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/ftrace/test.d/ftrace/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/iio/test/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/tests/ |
| 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/livepatch/ |
| 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 …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/livepatch/ |
| 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 …]
|
| /kernel/liteos_m/testsuites/unittest/posix/src/math/ |
| D | math_func_test.c | 105 int expected[] = {3, 0, 3}; variable 109 LOG("\n [POSIXTEST][abs]abs(%d) = %d, expected is %d", testValues[i], ret, expected[i]); 110 ICUNIT_ASSERT_EQUAL(ret, expected[i], ret); 124 int expected[] = {-2147483648, 2147483647, 2147483647}; variable 128 LOG("\n [POSIXTEST][abs]abs(%d) = %d, expected is %d", testValues[i], ret, expected[i]); 129 ICUNIT_ASSERT_EQUAL(ret, expected[i], ret); 143 double expected[] = { -0.69314718055994528623, 1.70474809223842527217, 0.00000000000000000000}; variable 149 LOG("\n [POSIXTEST][log]log(%lf) = %lf, expected is %lf", testValues[i], ret, expected[i]); 150 TEST_ASSERT_EQUAL_FLOAT(expected[i], ret); 151 ICUNIT_ASSERT_EQUAL(DoubleEquals(expected[i], ret), TRUE, 0); [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/net/mptcp/ |
| 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 …]
|
| /kernel/linux/linux-6.6/scripts/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn21/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn21/ |
| 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
| 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/damon/ |
| 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"
|
| /kernel/linux/linux-5.10/tools/perf/tests/shell/ |
| D | record+probe_libc_inet_pton.sh | 33 expected=`mktemp -u /tmp/expected.XXX` 35 echo "ping[][0-9 \.:]+$event_name: \([[:xdigit:]]+\)" > $expected 36 echo ".*inet_pton\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 40 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 41 echo "(__GI_)?getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 42 echo "main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected 46 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected 47 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected 48 echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected 52 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
| 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 …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
| 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 …]
|
| /kernel/linux/linux-5.10/fs/ext4/ |
| D | inode-test.c | 77 struct timespec64 expected; member 110 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 118 .expected = {.tv_sec = -1LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 126 .expected = {0LL, 0L}, in inode_test_xtimestamp_decoding() 134 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 142 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 150 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 158 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 166 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() 174 .expected = {.tv_sec = 0x180000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding() [all …]
|
| /kernel/linux/linux-6.6/fs/ext4/ |
| 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 …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/ |
| 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 …]
|