Skip to content

tools/vtk_test_ports: VTK's Python tests with Tack's algorithms in place of VTK's filters - #354

Merged
berkgeveci merged 1 commit into
Kitware:mainfrom
berkgeveci:tools/vtk-test-ports
Nov 5, 2026
Merged

berkgeveci merged 1 commit into
Kitware:mainfrom
berkgeveci:tools/vtk-test-ports

Conversation

@berkgeveci

Copy link
Copy Markdown
Collaborator

The harness behind #343, #344, #345, #348, #349, #350, #352 and #353: VTK's own Python tests run with Tack's VTK algorithms in place of VTK's filters, as a robustness test of Tack's filters on the data and pipelines VTK's tests build (not a check that Tack replaces VTK's filters one for one).

  • shims.py: a stand-in for each VTK filter class Tack has, in its vtkmodules module. It keeps a real VTK filter as its twin, which takes every call the stand-in does not answer, so the twin holds the test's settings; when run, the stand-in translates them to a Tack wrapper, gives its output (converted to VTK's class), and records it against the twin's: counts, bounds over the points cells use, total length, area and volume, array ranges, and a verdict. A setting Tack has no counterpart for, or a Tack error, gives the twin's output and records why.
  • run_one.py: one test as VTK's test driver runs it (rtImageTest), offscreen, with VTK's filters or Tack's, its image against VTK's baseline.
  • drive.py: a list of tests both ways, in parallel, into summary.json; report.py summarizes it.
  • README.md: how it works, how to run it, and what it found.

Not run by CI: it needs VTK's source tree, test data and baselines.

🤖 Generated with Claude Code

…ace of VTK's filters

Stand-ins of VTK's filter classes over a real VTK twin: the twin holds the test's
settings, the stand-in runs the Tack wrapper they translate to and records its
output against the twin's (counts, bounds, measures, array ranges); a setting
Tack has no counterpart for, or a Tack error, gives the twin's output and the
reason. A driver runs tests both ways in parallel with VTK's image checks, and a
report summarizes them.
@berkgeveci
berkgeveci merged commit 0d4f830 into Kitware:main Nov 5, 2026
61 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant