Commit b2a774f
COMP: Auto-remove transient single-owner test outputs in itk_add_test
Wire transient-output cleanup into every test whose ${ITK_TEST_OUTPUT_DIR}/
${TEMP} outputs are owned by a single test. Each such test lists its outputs
with an ITK_REMOVE_TEMPORARY_TEST_FILES <file>... argument to itk_add_test,
which registers a FIXTURES_CLEANUP companion that removes them. Gated by the
ITK_REMOVE_TEMPORARY_TEST_FILES option (ON by default); set OFF to retain
outputs for debugging.
The argument keeps each test's cleanup file list co-located with the
itk_add_test call that produces them, rather than a separate
itk_add_file_test_cleanup() companion call. It is the only parsed keyword, so
it must appear last. The gersemi stub declares it so call sites format
correctly.
Detached-header outputs (.mhd, .nhdr) also remove their companion raw data
files, and the cleanup command uses rm -rf so directory outputs (DICOM
series, FileTools dirs) are removed as well as plain files.
1355 tests instrumented across 126 test/CMakeLists.txt. 42 multi-consumer
shared outputs are excluded so the file persists for the consuming test.
Co-authored-by: Bradley Lowekamp <blowekamp@mail.nih.gov>
Co-authored-by: Dženan Zukić <dzenan.zukic@kitware.com>1 parent a449d57 commit b2a774f
129 files changed
Lines changed: 3152 additions & 58 deletions
File tree
- CMake
- stubs
- Modules
- Bridge/VtkGlue/test
- Core
- Common/test
- ImageAdaptors/test
- Mesh/test
- MultipleImageIterator/test
- QuadEdgeMesh/test
- SpatialObjects/test
- TestKernel/test
- Transform/test
- Filtering
- AdaptiveDenoising/test
- AnisotropicSmoothing/test
- AntiAlias/test
- BSplineGradient/test
- BiasCorrection/test
- BinaryMathematicalMorphology/test
- BoneMorphometry/test
- Colormap/test
- Convolution/test
- Cuberille/test
- CurvatureFlow/test
- Deconvolution/test
- Denoising/test
- DisplacementField/test
- DistanceMap/test
- FFT/test
- FastBilateral/test
- FastMarching/test
- GPUAnisotropicSmoothing/test
- GPUImageFilterBase/test
- GPUSmoothing/test
- GPUThresholding/test
- GenericLabelInterpolator/test
- HigherOrderAccurateGradient/test
- ImageCompare/test
- ImageCompose/test
- ImageFeature/test
- ImageFilterBase/test
- ImageFusion/test
- ImageGradient/test
- ImageGrid/test
- ImageIntensity/test
- ImageLabel/test
- ImageSources/test
- ImageStatistics/test
- IsotropicWavelets/test
- LabelErodeDilate/test
- LabelMap/test
- MathematicalMorphology/test
- MeshToPolyData/test
- Path/test
- PhaseSymmetry/test
- QuadEdgeMeshFiltering/test
- Smoothing/test
- Strain/test
- TextureFeatures/test
- Thickness3D/test
- Thresholding/test
- TotalVariation/test
- IO
- BMP/test
- BioRad/test
- Bruker/test
- CSV/test
- DCMTK/test
- GDCM/test
- GE/test
- GIPL/test
- IOMeshMZ3/test
- IOMeshSTL/test
- IOMeshSWC/test
- IOScanco/test
- IOTransformDCMTK/test
- ImageBase/test
- JPEG2000/test
- JPEG/test
- LSM/test
- MINC/test
- MRC/test
- MeshBYU/test
- MeshBase/test
- MeshFreeSurfer/test
- MeshGifti/test
- MeshOBJ/test
- MeshOFF/test
- MeshVTK/test
- Mesh/test
- Meta/test
- NIFTI/test
- NRRD/test
- PNG/test
- PhilipsREC/test
- RAW/test
- SpatialObjects/test
- Stimulate/test
- TIFF/test
- TransformInsightLegacy/test
- VTK/test
- XML/test
- Nonunit
- IntegratedTest/test
- Review/test
- Numerics
- FEM/test
- NarrowBand/test
- Statistics/test
- Registration
- Common/test
- RegistrationITKv3/test
- FEM/test
- GPUPDEDeformable/test
- Metricsv4/test
- PDEDeformable/test
- RegistrationMethodsv4/test
- TwoProjectionRegistration/test
- Segmentation
- Classifiers/test
- ConnectedComponents/test
- GrowCut/test
- KLMRegionGrowing/test
- LabelVoting/test
- LevelSetsv4/test
- LevelSets/test
- RegionGrowing/test
- SuperPixel/test
- Voronoi/test
- Watersheds/test
- Video
- BridgeOpenCV/test
- BridgeVXL/test
- Core/test
- Filtering/test
- IO/test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
107 | | - | |
| 114 | + | |
108 | 115 | | |
109 | 116 | | |
110 | | - | |
111 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
112 | 120 | | |
113 | | - | |
| 121 | + | |
114 | 122 | | |
115 | 123 | | |
116 | 124 | | |
117 | 125 | | |
118 | | - | |
| 126 | + | |
119 | 127 | | |
120 | 128 | | |
121 | 129 | | |
| |||
129 | 137 | | |
130 | 138 | | |
131 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
132 | 147 | | |
133 | 148 | | |
134 | 149 | | |
| |||
343 | 358 | | |
344 | 359 | | |
345 | 360 | | |
346 | | - | |
347 | | - | |
348 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
349 | 368 | | |
350 | | - | |
351 | | - | |
| 369 | + | |
| 370 | + | |
352 | 371 | | |
353 | 372 | | |
354 | | - | |
| 373 | + | |
355 | 374 | | |
356 | 375 | | |
357 | 376 | | |
| |||
363 | 382 | | |
364 | 383 | | |
365 | 384 | | |
366 | | - | |
| 385 | + | |
367 | 386 | | |
368 | 387 | | |
369 | 388 | | |
370 | 389 | | |
371 | 390 | | |
372 | 391 | | |
373 | 392 | | |
374 | | - | |
| 393 | + | |
375 | 394 | | |
376 | 395 | | |
377 | 396 | | |
378 | | - | |
| 397 | + | |
379 | 398 | | |
380 | 399 | | |
381 | 400 | | |
| |||
389 | 408 | | |
390 | 409 | | |
391 | 410 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
405 | 415 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
419 | 431 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
0 commit comments