result = i->check(m);
if (!result) {
- if (verbose)
- printf(" %s: OK\n", i->name);
+ if (verbose) {
+ printf(" %s: OK", i->name);
+ if (i->total_score)
+ printf(" (+%u/%u)",
+ i->total_score, i->total_score);
+ printf("\n");
+ }
if (i->total_score) {
*score += i->total_score;
*total_score += i->total_score;
*total_score += i->total_score;
*score += this_score;
+ if (verbose) {
+ printf(" %s: FAIL (+%u/%u)\n",
+ i->name, this_score, i->total_score);
+ }
if (!quiet) {
printf("%s\n", i->describe(m, result));
list_head_init(list);
list_for_each(&m->run_tests, i, list) {
- run_tests.total_score++;
+ run_tests_vg.total_score++;
/* FIXME: timeout here */
cmdout = run_command(m, "valgrind -q %s", i->compiled);
if (cmdout) {
}
list_for_each(&m->api_tests, i, list) {
- run_tests.total_score++;
+ run_tests_vg.total_score++;
/* FIXME: timeout here */
cmdout = run_command(m, "valgrind -q %s", i->compiled);
if (cmdout) {
{
struct list_head *list = check_result;
struct run_tests_result *i;
- unsigned int score = run_tests.total_score;
+ unsigned int score = run_tests_vg.total_score;
list_for_each(list, i, list)
score--;