Improve testing framework

Replaced Criterrion with CMock. Added few tests, currently not working
properly. Random test upgrades.
This commit is contained in:
Piotr Krygier committed 2025-06-20 13:44:33 +02:00
1 parent 56c0b7922f
commit f5ab5f3f27
29 files changed
+140082 -310

No files matched your search

+9
View File
@@ -5,10 +5,19 @@ const char* log_levels[] = {
"[TRACE]", "[DEBUG]", "[INFO]", "WARNING", "[ERROR]", "[FATAL]"
};
#ifndef LOGLEVEL
#define LOGLEVEL LOGLEVEL_DEBUG
#endif
void _log_log(unsigned int level, const char* file, int line, const char* fmt, ...)
{
va_list list;
if (level < LOGLEVEL)
{
return;
}
va_start(list, fmt);
fprintf(stdout, "%s %s:%d: ", log_levels[level], file, line);
vfprintf(stdout, fmt, list);