(tmpdir, test_file)
| 2161 | |
| 2162 | |
| 2163 | def __write_compdb(tmpdir, test_file): |
| 2164 | compile_commands = os.path.join(tmpdir, 'compile_commands.json') |
| 2165 | j = [ |
| 2166 | { |
| 2167 | 'directory': os.path.dirname(test_file), |
| 2168 | 'file': test_file, |
| 2169 | 'command': 'gcc -c {}'.format(test_file) |
| 2170 | } |
| 2171 | ] |
| 2172 | with open(compile_commands, 'wt') as f: |
| 2173 | f.write(json.dumps(j)) |
| 2174 | return compile_commands |
| 2175 | |
| 2176 | |
| 2177 | def __test_ignore_project_2(tmpdir, extra_args, append=False, inject_path=False): |
no test coverage detected