Tips - DLR-AMR/t8code GitHub Wiki
We collect general tips and tricks for t8code developers.
Try setting the T8CODE_TEST_LEVEL
to a higher number (for example, 2) to make the test suite faster.
Compiling and running individual tests
When writing a new test, you do not have to run make test
every time to compile your single test.
make test
will compile and run all tests which is rather time consuming.
Instead you can compile and run your tests individually:
make test/path/to/test
./test/path/to/test
Attention: Individual tests using testfiles from the test/testfiles
folder must be run from the build/test/
folder. This ensures that the paths specified are valid.
Deactivating sc and p4est tests
If you are developing and running make test
often, waiting for sc and p4est tests to compile and run can be tedious.
Especially since you do not change anything in sc and p4est and hence know that the test cases will pass. Set the T8CODE_BUILD_TPL_TESTS
option to OFF
to disable third party library tests.