Skip to content

Commit

Permalink
tests: Handle loglevel flag in testrunner
Browse files Browse the repository at this point in the history
Useful when manually running individual test cases with verbose logging.
  • Loading branch information
vkoskiv committed Feb 4, 2024
1 parent b6f5e88 commit f306102
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testrunner.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ int getPerfTestCount(char *suite) {

int main(int argc, char *argv[]) {
struct driver_args *args = args_parse(argc, argv);
char *log_level = args_string(args, "log_level");
if (stringEquals(log_level, "debug")) {
cr_log_level_set(Debug);
} else if (stringEquals(log_level, "spam")) {
cr_log_level_set(Spam);
}
int ret = 0;
if (args_is_set(args, "runTests") || args_is_set(args, "runPerfTests")) {
char *suite = args_string(args, "test_suite");
Expand Down

0 comments on commit f306102

Please sign in to comment.