/linux-master/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | reg_access_test.c | 18 uint64_t val, expected; local 22 expected = 0x8000000100000000ull; 23 mtspr(SPRN_BESCR, expected); 26 FAIL_IF(val != expected); 28 expected = 0x0000000001000000ull; 29 mtspr(SPRN_EBBHR, expected); 32 FAIL_IF(val != expected);
|
H A D | cycles_with_mmcr2_test.c | 25 uint64_t val, expected[2], actual; local 49 expected[0] = MMCR2_EXPECTED_1; 50 expected[1] = MMCR2_EXPECTED_2; 59 mtspr(SPRN_MMCR2, expected[i % 2]); 64 if (val != expected[i % 2]) {
|
/linux-master/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"
|
/linux-master/tools/perf/tests/shell/ |
H A D | record+probe_libc_inet_pton.sh | 36 expected=`mktemp -u /tmp/expected.XXX` 38 echo "ping[][0-9 \.:]+$event_name: \([[:xdigit:]]+\)" > $expected 39 echo ".*inet_pton\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 43 echo "(__GI_)?getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 44 echo "main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected 48 # Add gaih_inet to expected backtrace only if it is part of libc. 50 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected 52 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected 53 echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected [all...] |
/linux-master/fs/ext4/ |
H A D | inode-test.c | 77 struct timespec64 expected; member in struct:timestamp_expectation 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 [all...] |
/linux-master/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, event [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, event [all...] |
/linux-master/drivers/iio/test/ |
H A D | iio-test-rescale.c | 28 const char *expected; member in struct:rescale_tc_data 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 [all...] |
/linux-master/tools/testing/selftests/clone3/ |
H A D | clone3.c | 107 static bool test_clone3(uint64_t flags, size_t size, int expected, argument 116 ksft_print_msg("[%d] clone3() with flags says: %d expected %d\n", 117 getpid(), ret, expected); 118 if (ret != expected) { 120 "[%d] Result (%d) is different than expected (%d)\n", 121 getpid(), ret, expected); 163 int expected; member in struct:test 173 .expected = 0, 180 .expected = 0, 188 .expected [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | tc_helpers.h | 52 static inline void __assert_mprog_count(int target, int expected, int ifindex) argument 59 ASSERT_EQ(count, expected, "count"); 63 static inline void assert_mprog_count(int target, int expected) argument 65 __assert_mprog_count(target, expected, loopback); 68 static inline void assert_mprog_count_ifindex(int ifindex, int target, int expected) argument 70 __assert_mprog_count(target, expected, ifindex);
|
/linux-master/tools/testing/selftests/net/mptcp/ |
H A D | diag.sh | 50 local expected=$2 58 if [ "$nr" != "$expected" ]; then 63 mptcp_lib_pr_fail "expected $expected found $nr" 88 local expected=$1 91 __chk_nr "ss -nlHMON $ns | wc -l" "$expected" "$msg - mptcp" 0 92 __chk_nr "ss -nlHtON $ns | wc -l" "$expected" "$msg - subflows" 98 local expected=$1 109 [ $nr == $expected ] && break; 117 mptcp_lib_pr_fail "timeout while expecting $expected ma [all...] |
/linux-master/tools/testing/selftests/riscv/vector/ |
H A D | vstate_prctl.c | 51 int test_and_compare_child(long provided, long expected, int inherit) argument 62 if (rc != expected) { 64 expected); 76 long flag, expected; local 136 expected = flag | PR_RISCV_V_VSTATE_CTRL_ON; 137 if (test_and_compare_child(flag, expected, 0)) 140 if (test_and_compare_child(flag, expected, 1)) 146 expected = flag | PR_RISCV_V_VSTATE_CTRL_OFF; 147 if (test_and_compare_child(flag, expected, 0)) 150 if (test_and_compare_child(flag, expected, [all...] |
/linux-master/lib/ |
H A D | globtest.c | 16 bool expected; member in struct:glob_test 19 static bool __pure __init test(char const *pat, char const *str, bool expected) argument 22 bool success = match == expected; 139 * or '0' to indicate the expected outcome, or '\0' to indicate the 144 bool expected = *p++ & 1; local 148 successes += test(pat, p, expected);
|
H A D | percpu_test.c | 4 /* validate @native and @pcp counter values match @expected */ 5 #define CHECK(native, pcp, expected) \ 7 WARN((native) != (expected), \ 8 "raw %ld (0x%lx) != expected %lld (0x%llx)", \ 10 (long long)(expected), (long long)(expected)); \ 11 WARN(__this_cpu_read(pcp) != (expected), \ 12 "pcp %ld (0x%lx) != expected %lld (0x%llx)", \ 14 (long long)(expected), (long long)(expected)); \ [all...] |
/linux-master/tools/testing/selftests/ftrace/test.d/ftrace/ |
H A D | func_set_ftrace_file.tc | 117 test_actual() { # Compares $TMPDIR/expected with set_ftrace_filter 119 DIFF=`diff $TMPDIR/actual $TMPDIR/expected` 124 cat available_filter_functions | cut -d' ' -f1 | grep 'lock' | sort -u > $TMPDIR/expected 129 grep -v 'try.*lock$' $TMPDIR/expected > $TMPDIR/expected2 130 mv $TMPDIR/expected2 $TMPDIR/expected 135 grep -v '^m.*lock$' $TMPDIR/expected > $TMPDIR/expected2 136 mv $TMPDIR/expected2 $TMPDIR/expected 141 grep -v '^c.*unlock' $TMPDIR/expected > $TMPDIR/expected2 142 mv $TMPDIR/expected2 $TMPDIR/expected 147 > $TMPDIR/expected [all...] |
H A D | func-filter-glob.tc | 14 cut -f1 -d" " available_filter_functions | grep "$2" > $TMPDIR/expected 15 DIFF=`diff $TMPDIR/actual $TMPDIR/expected`
|
/linux-master/fs/squashfs/ |
H A D | file_cache.c | 21 int squashfs_readpage_block(struct page *page, u64 block, int bsize, int expected) argument 32 squashfs_copy_cache(page, buffer, expected, 0);
|
/linux-master/tools/memory-model/scripts/ |
H A D | checktheselitmus.sh | 41 echo All litmus tests verified as was expected. 1>&2
|
/linux-master/drivers/gpu/drm/tests/ |
H A D | drm_modes_test.c | 72 struct drm_display_mode *expected, *mode; local 74 expected = drm_analog_tv_mode(priv->drm, 78 KUNIT_ASSERT_NOT_NULL(test, expected); 83 KUNIT_EXPECT_TRUE(test, drm_mode_equal(expected, mode)); 119 struct drm_display_mode *expected, *mode; local 121 expected = drm_analog_tv_mode(priv->drm, 125 KUNIT_ASSERT_NOT_NULL(test, expected); 130 KUNIT_EXPECT_TRUE(test, drm_mode_equal(expected, mode));
|
H A D | drm_format_helper_test.c | 29 const u8 expected[TEST_BUF_SIZE]; member in struct:convert_to_gray8_result 34 const u8 expected[TEST_BUF_SIZE]; member in struct:convert_to_rgb332_result 39 const u16 expected[TEST_BUF_SIZE]; member in struct:convert_to_rgb565_result 45 const u16 expected[TEST_BUF_SIZE]; member in struct:convert_to_xrgb1555_result 50 const u16 expected[TEST_BUF_SIZE]; member in struct:convert_to_argb1555_result 55 const u16 expected[TEST_BUF_SIZE]; member in struct:convert_to_rgba5551_result 60 const u8 expected[TEST_BUF_SIZE]; member in struct:convert_to_rgb888_result 65 const u32 expected[TEST_BUF_SIZE]; member in struct:convert_to_argb8888_result 70 const u32 expected[TEST_BUF_SIZE]; member in struct:convert_to_xrgb2101010_result 75 const u32 expected[TEST_BUF_SIZ member in struct:convert_to_argb2101010_result 80 const u8 expected[TEST_BUF_SIZE]; member in struct:convert_to_mono_result 85 const u32 expected[TEST_BUF_SIZE]; member in struct:fb_swab_result 90 const u32 expected[TEST_BUF_SIZE]; member in struct:convert_to_xbgr8888_result 95 const u32 expected[TEST_BUF_SIZE]; member in struct:convert_to_abgr8888_result 1334 u32 expected[TEST_BUF_SIZE]; member in struct:fb_build_fourcc_list_case 1478 const u32 expected[DRM_FORMAT_MAX_PLANES][TEST_BUF_SIZE]; member in struct:fb_memcpy_case 1797 __le32 *expected[DRM_FORMAT_MAX_PLANES] = { 0 }; local [all...] |
H A D | drm_dp_mst_helper_test.c | 19 const int expected; member in struct:drm_dp_mst_calc_pbn_mode_test 27 .expected = 689 33 .expected = 1047 39 .expected = 1063 45 .expected = 1191 51 .expected = 1161 60 params->expected); 74 fixed20_12 expected; member in struct:drm_dp_mst_calc_pbn_div_test 86 * .expected = .link_rate * .lane_count * 0.9671 / 8 / 54 / 100 88 * .expected [all...] |
/linux-master/tools/perf/tests/ |
H A D | util.c | 10 const char *replace, const char *expected) 13 int ret = strcmp(new, expected); 9 test_strreplace(char needle, const char *haystack, const char *replace, const char *expected) argument
|
/linux-master/scripts/kconfig/tests/ |
H A D | conftest.py | 228 def _read_and_compare(self, compare, expected): 232 expected: file that contains the expected data 234 with open(os.path.join(self._test_dir, expected)) as f: 238 def _contains(self, attr, expected): 241 expected) 243 def _matches(self, attr, expected): 245 expected) 247 def config_contains(self, expected): 248 """Check if resulted configuration contains expected dat [all...] |
/linux-master/drivers/hid/ |
H A D | hid-uclogic-core-test.c | 17 bool expected; member in struct:uclogic_raw_event_hook_test 35 .expected = true, 40 .expected = true, 45 .expected = false, 50 .expected = false, 55 .expected = false, 94 KUNIT_ASSERT_EQ(test, res, test_events[n].expected);
|
/linux-master/include/linux/ |
H A D | bcm963xx_nvram.h | 75 * @expected_out: optional pointer to store expected checksum value 84 u32 expected, actual; local 88 expected = nvram->checksum_v4; 91 expected = nvram->checksum_v5; 105 *expected_out = expected; 110 return expected == actual ? 0 : -EINVAL;
|