Closed JakeHillion closed 6 months ago
Attention: 83 lines
in your changes are missing coverage. Please review.
Comparison is base (
beb404e
) 44.63% compared to head (5fa72c4
) 44.32%.
Files | Patch % | Lines |
---|---|---|
test/integration/runner_common.cpp | 0.00% | 82 Missing :warning: |
test/integration/runner_common.h | 0.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Closing for now as CMake not providing linker commands means this can't work reliably on all machines in this form.
oilgen: add to integration test framework
TODO: Replace the references to local paths.
oilgen (the basis of Ahead Of Time compilation for OIL) has never been passed through our large test suite and has instead had more focused testing and large examples. When consuming DWARF information in a similar fashion to JIT OIL this was okay, but with the new Clang AST based mechanism it means we have very little coverage.
This change adds an oilgen test for every test case that has an oil test. Relying on the build system to create the test target as before would make it difficult to have failing tests, so we move the build into the integration test runner. This involves:
This approach can give the full error message at any stage that fails and will fail the test appropriately. The downside is the build system integration is more difficult, as we need the correct compiler flags for the target and to use the correct compiler. It would be very tricky to replicate this in a build system that's not CMake, so we will likely only run these tests in open source.
Test plan: