#include <stdint.h>
#include "test.h"
#include "log.h"
#include "libvmaf/libvmaf.h"
static char *test_vmaf_log()
{
fprintf(stderr, "\n");
vmaf_set_log_level(VMAF_LOG_LEVEL_DEBUG);
vmaf_log(VMAF_LOG_LEVEL_ERROR, "this is an example %s log\n", "error");
vmaf_log(VMAF_LOG_LEVEL_WARNING, "this is an example %s log\n", "warning");
vmaf_log(VMAF_LOG_LEVEL_INFO, "this is an example %s log\n", "info");
vmaf_log(VMAF_LOG_LEVEL_DEBUG, "this is an example %s log\n", "debug");
vmaf_log(VMAF_LOG_LEVEL_DEBUG + 1, "this should log nothing\n");
vmaf_log(VMAF_LOG_LEVEL_NONE - 1, "this should log nothing\n");
return NULL;
}
char *run_tests()
{
mu_run_test(test_vmaf_log);
return NULL;
}