commit d728769d30366f48bd81c28233bd89c1b8f306b0 from: Omar Polo date: Sat Aug 07 09:52:29 2021 UTC changed a bit the output of the tests commit - 511b3aa71fae5d4e941fe3159828c84c7f74ba51 commit + d728769d30366f48bd81c28233bd89c1b8f306b0 blob - 8e604fe1fe17883283a912f4595e5c31887f54a6 blob + 5251641aa7b2b4facb6ef1e2bd999ebc4add67f8 --- script.c +++ script.c @@ -54,6 +54,8 @@ static int ibuf_inuse; static struct procs procs = TAILQ_HEAD_INITIALIZER(procs); static struct tests tests = TAILQ_HEAD_INITIALIZER(tests); + +static int ntests; static struct opstacks blocks = TAILQ_HEAD_INITIALIZER(blocks); static struct opstacks args = TAILQ_HEAD_INITIALIZER(args); @@ -1033,6 +1035,8 @@ test_done(char *name, char *dir) TAILQ_INSERT_HEAD(&tests, test, entry); else TAILQ_INSERT_TAIL(&tests, test, entry); + + ntests++; } static int @@ -1421,7 +1425,8 @@ main(int argc, char **argv) i = 0; TAILQ_FOREACH(t, &tests, entry) { - printf("===> running test \"%s\"... ", t->name); + printf("===> [%d/%d] running test \"%s\"... ", i, ntests, + t->name); fflush(stdout); filler = "\n"; @@ -1431,7 +1436,7 @@ main(int argc, char **argv) switch (r) { case EVAL_OK: - printf("passed!\n"); + printf("passed\n"); passed++; break; case EVAL_ERR: @@ -1449,9 +1454,9 @@ main(int argc, char **argv) } printf("\n"); - printf("passed %d/%d\n", passed, i); - printf("failed %d\n", failed); - printf("skipped %d\n", skipped); + printf("passed: %d/%d\n", passed, i); + printf("failed: %d\n", failed); + printf("skipped: %d\n", skipped); popenv();