mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
These tests currently test a code path in the extractor that only exists for these tests. By turning them into integration tests, we actually use the code path that normal database creation uses.
11 lines
330 B
Python
11 lines
330 B
Python
import os
|
|
|
|
|
|
def test(codeql, cpp):
|
|
os.mkdir("pch")
|
|
codeql.database.create(command=[
|
|
f'"{cpp.get_tool("extractor")}" --mimic-cl /Yca.h /Fppch/a.pch a.c',
|
|
f'"{cpp.get_tool("extractor")}" --mimic-cl /Yub.h /Fppch/a.pch b.c',
|
|
f'"{cpp.get_tool("extractor")}" --mimic-cl /Yuc.h /Fppch/a.pch c.c',
|
|
])
|