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

Declutter functionality test #218

Merged
merged 41 commits into from
Feb 7, 2025
Merged

Declutter functionality test #218

merged 41 commits into from
Feb 7, 2025

Conversation

pelesh
Copy link
Collaborator

@pelesh pelesh commented Jan 26, 2025

This is a proposal how to declutter functionality tests and expand testing scope. Checking results and computing different error norms is moved into a testing helper class to make the main body of the test cleaner and more focused on solver calls. The proposal also includes using command line input to configure tests and generating multiple tests from a single source file.

In this PR:

  • Class TestHelper with common utilities (e.g. error norm calculation) for functionality tests has been added.
  • Eliminated copy-paste-tweak to have multiple tests generated from single source file.
  • Fixed test_install target.
  • Eliminated redundant files and introduced more consistent naming scheme for functionality tests.
  • Fixes bug in matrix::Csc where the matrix format ID was not set.
  • Modify interface for LinSolverDirectCuSolverRf class to be in line with other refactorization solvers.

Closes #193

@pelesh pelesh added enhancement New feature or request testing labels Jan 26, 2025
@pelesh pelesh self-assigned this Jan 26, 2025
@shakedregev
Copy link
Collaborator

Looks good and tests pass. Just fix the merge conflict.

Copy link
Collaborator

@maksud maksud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test looks clean indeed. It works for me.

@pelesh pelesh force-pushed the functionality-test-out-fix branch from 881260b to 3d3f491 Compare February 4, 2025 00:33
@pelesh pelesh marked this pull request as ready for review February 6, 2025 00:48
@pelesh pelesh added this to the Release 0.99.2 milestone Feb 6, 2025
@pelesh pelesh requested review from maksud and nkoukpaizan February 6, 2025 01:13
resolve/LinSolverDirectCuSolverRf.cpp Show resolved Hide resolved
resolve/LinSolverDirectCuSolverRf.cpp Show resolved Hide resolved
resolve/LinSolverDirectCuSolverRf.cpp Show resolved Hide resolved
resolve/LinSolverDirectRocSparseILU0.cpp Outdated Show resolved Hide resolved
resolve/matrix/io.cpp Outdated Show resolved Hide resolved
tests/functionality/testRandGmres.cpp Show resolved Hide resolved
tests/functionality/testRandGmres.cpp Outdated Show resolved Hide resolved
tests/functionality/testRandGmres.cpp Outdated Show resolved Hide resolved
tests/functionality/testRefactor.cpp Show resolved Hide resolved
tests/functionality/testSysGmres.cpp Show resolved Hide resolved
@shakedregev
Copy link
Collaborator

CUDA and HIP tests pass

@pelesh pelesh merged commit 1810c81 into develop Feb 7, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

break long tests up into more functions
3 participants