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

EXTRA_ARGS of catch_discover_tests not used during discovery #2382

Open
pgrete opened this issue Mar 4, 2022 · 0 comments
Open

EXTRA_ARGS of catch_discover_tests not used during discovery #2382

pgrete opened this issue Mar 4, 2022 · 0 comments

Comments

@pgrete
Copy link

pgrete commented Mar 4, 2022

Describe the bug

Our code outputs some warnings that get parsed as tests, e.g.,

$ ctest -N
Test project /home/pgrete/src/parthenon/build-catch2
  Test  #1: Kokkos::OpenMP::initialize WARNING: OMP_PROC_BIND environment variable not set
  Test  #2:   In general, for best performance with OpenMP 4.0 or better set OMP_PROC_BIND=spread and OMP_PLACES=threads
  Test  #3:   For best performance with OpenMP 3.1 set OMP_PROC_BIND=true
  Test  #4:   For unit testing set OMP_PROC_BIND=false
  Test  #5: Adding MeshBlockData objects to a DataCollection
  Test  #6: Just check everything

We can suppress the warnings by adding --kokkos-disable-warnings to the command call.
I tried to use catch_discover_tests(performance_tests EXTRA_ARGS "--kokkos-disable-warnings") but the warning still show up as tests (see above)

Expected behavior
EXTRA_ARGS also be used for discovering tests.

Reproduction steps
I can try to come up with a MWE if required.

Platform information:

  • OS: linux
  • Compiler+version: g++ 11.2
  • Catch version: v2.13.8

Additional context
Potentially also related to #1810

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

No branches or pull requests

1 participant