Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO ImageBase tests not exercised #3703

Closed
jhlegarreta opened this issue Oct 22, 2022 · 3 comments · Fixed by #5151
Closed

IO ImageBase tests not exercised #3703

jhlegarreta opened this issue Oct 22, 2022 · 3 comments · Fixed by #5151
Assignees
Labels
Good first issue A good issue for community members new to contributing type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct

Comments

@jhlegarreta
Copy link
Member

jhlegarreta commented Oct 22, 2022

Description

The tests itkLargeImageWriteConvertReadTest and itkLargeImageWriteReadTest are not being exercised as the corresponding itk_add_test command are not present in the relevant CMakeLists.txt file, despite the files being listed:

itkLargeImageWriteConvertReadTest.cxx

and
itkLargeImageWriteReadTest.cxx

Thus, the corresponding executables are not created.

Steps to Reproduce

  1. Get ITK
  2. Configure and build
  3. Execute
ctest -V -R itkLargeImageWriteConvertReadTest -C Debug

and

ctest -V -R itkLargeImageWriteReadTest-C Debug

CTest will report the message:

No tests were found!!!

Expected behavior

All listed tests should be exercised.

Actual behavior

Tests are not being exercised.

Reproducibility

100%.

Versions

master.

Environment

Any.

Additional Information

None

@jhlegarreta jhlegarreta added type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct Good first issue A good issue for community members new to contributing labels Oct 22, 2022
@dzenanz
Copy link
Member

dzenanz commented Oct 24, 2022

Maybe they were meant to be controlled by ITK_COMPUTER_MEMORY_SIZE, similar to

if("${ITK_COMPUTER_MEMORY_SIZE}" GREATER 5)
# Image of 1.67 Gigabytes (pixels size is 16bits)
itk_add_test(NAME itkLargeTIFFImageWriteReadTest1
COMMAND ITKIOTIFFTestDriver
itkLargeTIFFImageWriteReadTest ${ITK_TEST_OUTPUT_DIR}/LargeImage01.tif 30000L)
# Image of 2.98 Gigabytes (pixels size is 16bits)
itk_add_test(NAME itkLargeTIFFImageWriteReadTest2
COMMAND ITKIOTIFFTestDriver
itkLargeTIFFImageWriteReadTest ${ITK_TEST_OUTPUT_DIR}/LargeImage02.tif 40000L)
# Image of 4.9 Gigabytes (pixels size is 8-bits out and 16-bit in)
itk_add_test(NAME itkLargeTIFFImageWriteReadTest3
COMMAND ITKIOTIFFTestDriver
itkLargeTIFFImageWriteReadTest ${ITK_TEST_OUTPUT_DIR}/LargeImage03.tif 50000L)
# Due to the large memory requirements this tests must be run one by one
set_tests_properties(itkLargeTIFFImageWriteReadTest1
itkLargeTIFFImageWriteReadTest2
itkLargeTIFFImageWriteReadTest3
PROPERTIES
LABELS BigIO
RESOURCE_LOCK MEMORY_SIZE
)
set_property(TEST itkLargeTIFFImageWriteReadTest1 APPEND PROPERTY LABELS RUNS_LONG)
set_property(TEST itkLargeTIFFImageWriteReadTest1 APPEND PROPERTY RUN_SERIAL True)
set_property(TEST itkLargeTIFFImageWriteReadTest2 APPEND PROPERTY LABELS RUNS_LONG)
set_property(TEST itkLargeTIFFImageWriteReadTest2 APPEND PROPERTY RUN_SERIAL True)
set_property(TEST itkLargeTIFFImageWriteReadTest3 APPEND PROPERTY LABELS RUNS_LONG)
set_property(TEST itkLargeTIFFImageWriteReadTest3 APPEND PROPERTY RUN_SERIAL True)
endif()

@jhlegarreta jhlegarreta added this to the ITK 6.0 Beta 1 milestone Jan 23, 2025
@jadh4v
Copy link
Member

jadh4v commented Jan 23, 2025

I can take this up

@jhlegarreta
Copy link
Member Author

@jadh4v Thanks for having addressed this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good first issue A good issue for community members new to contributing type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants