Commit Graph

8292 Commits

Author SHA1 Message Date
Léo Creuse
435d0d95fa Merge branch 'topic/4205-various-fixes' into 'qualkit-4502'
Various qualkit updates

See merge request eng/das/cov/gnatcoverage-qualification!36

The modifications include:

* TOR: Refinements over the expected execution environment
* TOR: remove index entry definitions
* PLANS: Remove duplicate revision history section

(cherry picked from commit 772afba72ae4014b866562d04b6f3fd8c5f8d5dd)
2026-01-23 08:24:12 +00:00
Léo Creuse
e0a7d6fe36 Merge branch 'topic/fix_pdf_id' into 'qualkit-4502'
genbundle.py: Defer settings loading until after work dir has been setup

See merge request eng/das/cov/gnatcoverage-qualification!35

(cherry picked from commit 6b7a34d411eadf998cdcabcac0da8bd1baaa1e49)
2026-01-23 08:24:12 +00:00
Léo Creuse
3d9c9903e3 Merge branch 'topic/add_pdf_id' into 'qualkit-4502'
Qualkit: Add document id in the filename for each of the documents

See merge request eng/das/cov/gnatcoverage-qualification!33

(cherry picked from commit 337879aca842aa309033986bf51366b63546f997)
2026-01-23 08:24:12 +00:00
Vasiliy Fofanov
e6ce76fe46 Merge branch 'topic/4502_adjust_plans' into 'qualkit-4502'
Update plans

See merge request eng/das/cov/gnatcoverage-qualification!32

(cherry picked from commit b56f9be7f52f1b9974988057834348a0cb9890dd)
2026-01-23 08:24:12 +00:00
Pierre-Marie de Rodat
e85cd3cd8c Merge branch 'mr/pmderodat/funcall-ada2012' into 'master'
instr-cov/514-funcall-pre2012: kill with old toolchains

See merge request eng/das/cov/gnatcoverage!1099

For https://gitlab.adacore-it.com/eng/das/cov/gnatcoverage/-/issues/514
2026-01-22 15:10:41 +00:00
Pierre-Marie de Rodat
970d966752 instr-cov/514-funcall-pre2012: kill with old toolchains 2026-01-22 14:28:39 +00:00
Pierre-Marie de Rodat
cb839a260d Merge branch 'mr/pmderodat/ci' into 'master'
CI: remove the temporary qualrun testing for gnatcov 25

See merge request eng/das/cov/gnatcoverage!1098

For https://gitlab.adacore-it.com/eng/cert/projects/c-nvidia-25qualif/-/issues/105

This basically reverts https://gitlab.adacore-it.com/eng/das/cov/gnatcoverage/-/merge_requests/984, now that the development project is over.
2026-01-22 09:58:09 +00:00
Pierre-Marie de Rodat
b2c9a0161f CI: remove the temporary qualrun testing for gnatcov 25 2026-01-22 10:12:01 +01:00
Pierre-Marie de Rodat
ec184feca7 Merge branch 'mr/pmderodat/ada-closure' into 'master'
Instrument the same set of Ada sources that GPRbuild will compile

Closes #496

See merge request eng/das/cov/gnatcoverage!1090

Closes https://gitlab.adacore-it.com/eng/das/cov/gnatcoverage/-/issues/496
2026-01-21 20:44:00 +00:00
Pierre-Marie de Rodat
5e65869bfd Instrument the same set of Ada sources that GPRbuild will compile
Make `gnatcov instrument` refrain from instrumenting Ada source files
that GPRbuild would not compile when given the same project options. For
instance, do not instrument source files that belong to the root project
but which are not in the closure of GPR mains.

Adapt relevant existing testcases to accomodate this new behavior: this
makes source instrumentation behave mor like coverage with binary
traces.
2026-01-21 20:43:35 +00:00
Pierre-Marie de Rodat
c36f80c86f SUITE.tutils: fix gprfor for projects with Ada+C mains 2026-01-21 20:43:35 +00:00
Pierre-Marie de Rodat
62e62d9ba3 320-varying-scos/varying_meta: robustify
Depending on the processing order for SID files, the "discarding source
coverage data" warning may refer to `bar.c`/`foo.c.sid` or
`foo.c`/`bar.c.sid`. Make warnings matching more robust to handle both
cases.
2026-01-21 20:43:35 +00:00
Pierre-Marie de Rodat
733410e509 Testsuite: fix projects so that all units are compiled
Upcoming changes will make gnatcov instrument exactly the set of sources
that get compiled by gprbuild. To avoid "warning: no SID file found for
unit X" messages from "gnatcov coverage" on tests for which this this is
an accident rather than on purpose, adjust projects so that all units
get compiled/instrumented.
2026-01-21 20:43:35 +00:00
Pierre-Marie de Rodat
309b7d9d9b Merge branch 'mr/pmderodat/default-ada-2022' into 'master'
Adapt for runs with `--cargs:Ada=-gnat2022`

See merge request eng/das/cov/gnatcoverage!1096

For https://gitlab.adacore-it.com/eng/das/cov/gnatcoverage/-/issues/517
2026-01-21 15:19:17 +00:00
Pierre-Marie de Rodat
f64ff22e82 Adapt the testcases for runs with --cargs:Ada=-gnat2022 2026-01-21 14:00:04 +00:00
Pierre-Marie de Rodat
398b32497c Instrument: harmonize the sloc of SCO stmt in expression functions
Fix the statement instrumentation of expression functions in Ada 2022
mode so that the sloc of the resulting SCO statement is identical to
what we get for pre-2022 code: the parens around the expression must not
be included.

This fixes 213-sarif-report test failures with `--cargs:Ada=-gnat22`.
2026-01-21 14:00:04 +00:00
Pierre-Marie de Rodat
71b5a7962e instrument-ada_unit.adb: minor style fixes 2026-01-21 11:12:31 +00:00
Pierre-Marie de Rodat
852d058a97 Merge branch 'mr/pmderodat/default-ada-95' into 'master'
Adaptations/fixes for testsuite runs with `--cargs:Ada=-gnat95`

See merge request eng/das/cov/gnatcoverage!1095

For https://gitlab.adacore-it.com/eng/das/cov/gnatcoverage/-/issues/517
2026-01-21 10:49:38 +00:00
Pierre-Marie de Rodat
79fcb786d8 Adapt the non-Qualif tests for runs with --cargs:Ada=-gnat95
Adapt sources to be compatible with Ada 95, or when this is not
possible, force the language version inside the test itself (with an
overriding `-gnatXX` argument or with language version pragmas).
2026-01-21 10:00:07 +00:00
Pierre-Marie de Rodat
b222c521fc Qualif tests: adapt for runs with --cargs:Ada=-gnat95
Kill tests meant to exercise Ada 2005/2012/2022 features, and adapt the
other tests to be compatible with Ada 95.
2026-01-21 10:00:07 +00:00
Pierre-Marie de Rodat
157c5f53d9 Instrument: make Ada dump helpers compatible with Ada 95
This fixes multiple tests when the testsuite is run with
`--cargs:Ada=-gnat95`, so no need for new testcases.
2026-01-21 10:00:07 +00:00
Pierre-Marie de Rodat
3956da38d1 Merge branch 'mr/pmderodat/funcall-ada2022' into 'master'
Fix function call instrumentation for pre-2012 Ada codebases

Closes #514

See merge request eng/das/cov/gnatcoverage!1093

Closes https://gitlab.adacore-it.com/eng/das/cov/gnatcoverage/-/issues/514
2026-01-20 15:45:02 +00:00
Pierre-Marie de Rodat
25ed848962 Fix function call instrumentation for pre-2012 Ada codebases 2026-01-20 15:43:37 +00:00
Pierre-Marie de Rodat
fba7355982 Documentation: minor fixes in the GExpr support section 2026-01-20 15:43:37 +00:00
Pierre-Marie de Rodat
dff2ad468e instrument-ada_unit.adb: remove unused code
Current, we never instrument calls when a qualified expr is needed to
wrap the inserted if expression: remove preliminary code that was
introduced to handle this case (it's never used and we always emit a
warning saying we could not instrument instead).
2026-01-20 15:43:37 +00:00