In test/bench.py, added "internal" flag
This marks internal tests/benches (case.in="lfs.c") with an otherwise-unused flag that is printed during --summary/--list-*. This just helps identify which tests/benches are internal.
This commit is contained in:
@@ -912,9 +912,10 @@ static void summary(void) {
|
||||
char perm_buf[64];
|
||||
sprintf(perm_buf, "%zu/%zu", perms.filtered, perms.total);
|
||||
char flag_buf[64];
|
||||
sprintf(flag_buf, "%s%s",
|
||||
sprintf(flag_buf, "%s%s%s",
|
||||
(flags & TEST_REENTRANT) ? "r" : "",
|
||||
(!flags) ? "-" : "");
|
||||
(flags & TEST_INTERNAL) ? "i" : "",
|
||||
(!flags) ? "-" : "");
|
||||
printf("%-23s %7s %7zu %7zu %11s\n",
|
||||
"TOTAL",
|
||||
flag_buf,
|
||||
@@ -973,9 +974,10 @@ static void list_suites(void) {
|
||||
char perm_buf[64];
|
||||
sprintf(perm_buf, "%zu/%zu", perms.filtered, perms.total);
|
||||
char flag_buf[64];
|
||||
sprintf(flag_buf, "%s%s",
|
||||
sprintf(flag_buf, "%s%s%s",
|
||||
(test_suites[i].flags & TEST_REENTRANT) ? "r" : "",
|
||||
(!test_suites[i].flags) ? "-" : "");
|
||||
(test_suites[i].flags & TEST_INTERNAL) ? "i" : "",
|
||||
(!test_suites[i].flags) ? "-" : "");
|
||||
printf("%-*s %7s %7zu %11s\n",
|
||||
name_width,
|
||||
test_suites[i].name,
|
||||
@@ -1028,9 +1030,11 @@ static void list_cases(void) {
|
||||
char perm_buf[64];
|
||||
sprintf(perm_buf, "%zu/%zu", perms.filtered, perms.total);
|
||||
char flag_buf[64];
|
||||
sprintf(flag_buf, "%s%s",
|
||||
sprintf(flag_buf, "%s%s%s",
|
||||
(test_suites[i].cases[j].flags & TEST_REENTRANT)
|
||||
? "r" : "",
|
||||
(test_suites[i].cases[j].flags & TEST_INTERNAL)
|
||||
? "i" : "",
|
||||
(!test_suites[i].cases[j].flags)
|
||||
? "-" : "");
|
||||
printf("%-*s %7s %11s\n",
|
||||
|
||||
Reference in New Issue
Block a user