Introduce golden file mechanism for tests

This commit is contained in:
2026-04-24 21:09:47 +02:00
parent 9ca72ef5bf
commit a89e61eedd
9 changed files with 66 additions and 24 deletions
+6
View File
@@ -38,4 +38,10 @@ void assert_str(const char* expected, const char* actual, const char* msg);
*/
void assert_log(const char* expected, const char* msg);
/**
* Asserts that the logged output matches the content of a file.
* If GENERATE_GOLDEN=1, the file is overwritten with the actual output.
*/
void assert_log_file(const char* filepath, const char* msg);
#endif