dougshidong / PHiLiP

Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
Other
46 stars 37 forks source link

Adding Labels to Ctests #269

Open tofstie opened 3 weeks ago

tofstie commented 3 weeks ago

This PR adds labels to all current CTests and sets a standard for the labels to be included in CTests in the future. If you want to add any labels to a test, feel free to push to my branch.

How to add labels

To add labels use the custom ctest function, defined in ./tests/CMakeLists.txt, set_tests_labels. This function takes one input and as many arguments as needed. The one input is the test name and the arguments are the labels wanted. See below for an example use.

ADD_TEST(NAME NNLS_multi_core
COMMAND mpirun -n ${MPIMAX} $<TARGET_FILE:Tests.exe> multiCore)
set_tests_labels(NNLS_multi_core    LINEAR_SOLVER
                                    PARALLEL
                                    QUICK
                                    UNIT_TEST)

How to use labels

To use a label to run a specific set of tests use the -L flag with ctest. Multiple -L flags are counted as an AND statement. One may also use -LE to exclude certain tests from running. ctest -L UNIT_TEST -L QUICK will run all quick unit tests. These -L flags can also use regex.

ODE_SOLVER unit tests

cpethrick commented 2 weeks ago

I just pushed a commit adding CONVERGENCE tags to relevant time refinement study tests and to some others which I've used in the past.

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud