Compare commits

..

1 Commits

Author SHA1 Message Date
f779c157a7 refactor: address code review feedback
All checks were successful
CI Code / Check spelling (pull_request) Successful in 20s
CI Code / Check coding style (pull_request) Successful in 35s
CI Code / Code Coverage (pull_request) Successful in 15m36s
CI Code / Linux (debian) (pull_request) Successful in 16m3s
CI Code / Linux (ubuntu) (pull_request) Successful in 18m7s
CI Code / Linux (arch) (pull_request) Successful in 20m21s
Makefile.am:
- Replace 4 hardcoded parallel commands with loop over FUNC_TEST_GROUPS
- Easy to extend by adding group numbers to the variable

functionaltests.c:
- Remove test counts from comments (prone to becoming outdated)
- Restore previous comment style with === separators for readability
- Replace switch with groups[] array structure for extensibility
- Add ARRAY_SIZE macro for cleaner code

proftest.h:
- Fix comment to describe current state, not the change made

CONTRIBUTING.md:
- Document test groups and parallel execution commands
- Add instructions for adding new test groups
2026-01-21 15:32:00 +03:00

View File

@@ -38,6 +38,7 @@
#include "config.h"
#include "common.h"
#include "proftest.h"
#include "test_connect.h"
#include "test_ping.h"
@@ -55,8 +56,6 @@
/* Macro to wrap each test with setup/teardown functions */
#define PROF_FUNC_TEST(test) cmocka_unit_test_setup_teardown(test, init_prof_test, close_prof_test)
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
int
main(int argc, char* argv[])
{