Beispiel #1
0
static void cdash_show_pass(TestReporter *reporter, const char *file, int line, const char *message, va_list arguments) {
    double exectime;
    CDashMemo *memo;
    const char *name = get_current_from_breadcrumb((CgreenBreadcrumb *)reporter->breadcrumb);
    (void)message;
    (void)arguments;
    memo = (CDashMemo *)reporter->memo;

    memo->testfinished = cdash_current_time(NULL);
    exectime = cdash_elapsed_time(memo->teststarted, memo->testfinished);

    print_test_header(memo, "passed", name, file, line);
    print_results_header(memo, name, exectime);
    print_measurement(memo, "");
    print_tail(memo);
}
Beispiel #2
0
static void show_incomplete(TestReporter *reporter, const char *file, int line, const char *message, va_list arguments) {
    const char *name;
    char buffer[1000];
    float exectime;
    CDashMemo *memo;

    memo = (CDashMemo *)reporter->memo;

    memo->testfinished = cdash_current_time(NULL);

    exectime = (float)cdash_elapsed_time(memo->teststarted, memo->testfinished);

    name = get_current_from_breadcrumb((CgreenBreadcrumb *)reporter->breadcrumb);

    print_test_header(memo, "incomplete", name, file, line);
    print_results_header(memo, name, exectime);
   
    vsprintf(buffer, (message == NULL ? "Problem" : message), arguments);
    print_measurement(memo, buffer);

    print_tail(memo);
}
Beispiel #3
0
/**
 * calls the various other printing functions to perform the printing of the
 * results
 * 
 * @param competition the competition struct containing the name and date of the
 * competition
 * @param root
 */
void print_results(competition competition, competitor * root){
    print_competition_header(competition);
    print_results_header();
    in_order_traverse(root, print_results_inner);
    printf("\n\n");
}