![]() |
CARTA Backend
The backend component of CARTA
|
Enabling tests in the build:
Running all the tests (from the build
directory):
Running only some tests:
Re-running the same test multiple times:
See ./test/carta_backend_tests --help
for a list of commandline parameters that you can pass to the test executable, or the GoogleTest documentation for more information about the GoogleTest library.
This allows the backend executable or the test executable to be run with additional AddressSanitizer checks. We enable this in our CI. Our configuration suppresses warnings from some external dependencies, like casa and casacore.
To build, pass these additional flags when you invoke cmake:
ASAN configuration is stored in the debug
directory in the root of the repository. You need to provide paths into this directory to set the appropriate shell variables when invoking the executable.
Invocation example (assuming that you want to run the backend and are in the build
subdirectory):
To check the code format (from the repository root):
To fix code format issues:
See ./scripts/style.py --help
for a list of options (e.g. selecting specific checks).
Currently the script can check: the code format (using clang-format
), the copyright header, and the newline at the end ofthe file. A more extensive code style check (using clang-tidy
) is planned but not yet fully implemented.