Commit Graph
3 Commits
Author SHA1 Message Date
Bård SkaflestadandCopilot Autofix powered by AI 9d321db0d8 Use Exact Test Name Matching When Extracting Test Properties
This commit switches away from matching specific test names in
CTestTestfile.cmake using regular expressions to using exact name
match instead.  The regular expressions are a little too brittle in
the face of partially overlapping test names like

    compareECLFiles_flow+UDT-1D-01
    compareECLFiles_flow+UDT-1D-01B

for which the greedy matching ".*$" could yield false positives.
Instead we use the "index" function to pinpoint the exact line, and
position within the line, that matches exactly that test and
specific property.  While here, switch the injected variable name
away from "search" and over to "test" to better reflect the nature
of the variable and update call sites accordingly.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-29 09:09:38 +02:00
Bård Skaflestad 479a575539 Add Brief Documentation Block to Test Property AWK Script
Mostly to aid future maintainers.
2023-06-08 12:05:16 +02:00
Arne Morten Kvarving 4a3a47c764 changed: no need to manually specify test data in update script
rather specify it as properties on the tests themself and extract
using some awk-ing.
2023-06-08 10:33:36 +02:00