forked from enlightenment/efl
efl/efreet: better printing of test results
Print the name of each test together with the status so it's easier to check which test failed/passed regardless the test's output: ./src/tests/efreet/efreet_test 2>/dev/null | grep -e "^FINISHED" The tests themselves should not print to stdout, so we wouldn't need the grep. But this is already better than we had before. SVN revision: 82782
This commit is contained in:
parent
522bb558e9
commit
366a3dee3b
|
@ -149,16 +149,15 @@ main(int argc, char ** argv)
|
||||||
|
|
||||||
num_tests ++;
|
num_tests ++;
|
||||||
|
|
||||||
printf("%s:\t\t", tests[i].name);
|
printf("Starting \'%s\':\n", tests[i].name);
|
||||||
fflush(stdout);
|
|
||||||
start = ecore_time_get();
|
start = ecore_time_get();
|
||||||
|
|
||||||
environ = NULL;
|
environ = NULL;
|
||||||
ret = tests[i].cb();
|
ret = tests[i].cb();
|
||||||
|
|
||||||
printf("%s in %.3f seconds\n", (ret ? "PASSED" : "FAILED"),
|
printf("FINISHED \'%s\': %s in %.3f seconds\n", tests[i].name,
|
||||||
ecore_time_get() - start);
|
(ret ? "PASSED" : "FAILED"), ecore_time_get() - start);
|
||||||
passed += ret;
|
passed += !!ret;
|
||||||
|
|
||||||
efreet_shutdown();
|
efreet_shutdown();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue