Lines Matching +full:test +full:- +full:expectations
4 # SPDX-License-Identifier: MIT
28 parser.add_argument('--build-dir', '-B', required=False)
29 parser.add_argument('--test-filter', '-f', required=False)
30 parser.add_argument('--update-all', '-u', action='store_true')
43 build_args.append(f'-C{args.build_dir}')
48 test_args.append(f'--gtest_filter={args.test_filter}')
56 expected_pattern = re.compile(r'Expected \(([\d\w\W/.-_]+):(\d+)\):')
59 expectations = collections.defaultdict(list) variable
61 # Parse the output of the test binary and gather the changed shaders.
73 expectations[file].append(TestFileChange(line, test_result.strip()))
85 for file in expectations:
86 changes = expectations[file]
103 indentation = len(test_line) - len(test_line.lstrip()) + 3
110 tmp.write(bytes(updated_test_file, encoding="utf-8"))
114 ['git', 'diff', '--no-index', file, tmp.name],
137 ['git', 'apply', '--allow-empty'],
140 apply.communicate(input=bytes(patch, encoding="utf-8"))