Skip to content

Commit 9be41b0

Browse files
committed
Add new report type 'none'
Signed-off-by: Christoph Niethammer <[email protected]>
1 parent 109d071 commit 9be41b0

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

cmdline.ggo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ in order, so use 'all,^exclude'."
1313
text "\n"
1414
option "atomic-io" a "enable atomicity for files in I/O for all tests that support it"
1515
option "num-threads" j "number of additional threads to execute the tests" int default="0"
16-
option "report" r "level of detail for test report" values="summary","run","full" default="summary"
16+
option "report" r "level of detail for test report" values="none","summary","run","full" default="summary"
1717
option "execution-mode" x "level of correctness testing" values="disabled","strict","relaxed" default="relaxed"
1818

1919
option "list" l "list all available tests, communicators, datatypes and corresponding classes"

mpi_test_suite.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ int main (int argc, char * argv[])
359359
str = strtok (NULL, ",");
360360
}
361361

362-
for (tst_report = TST_REPORT_SUMMARY; tst_report < TST_REPORT_MAX; tst_report++) {
362+
for (tst_report = TST_REPORT_NONE; tst_report < TST_REPORT_MAX; tst_report++) {
363363
if (0 == strcasecmp (args_info.report_arg, tst_reports[tst_report])) {
364364
break;
365365
}
@@ -461,7 +461,7 @@ int main (int argc, char * argv[])
461461
MPI_Barrier (MPI_COMM_WORLD);
462462
}
463463

464-
if (tst_global_rank == 0) {
464+
if (tst_global_rank == 0 && tst_report >= TST_REPORT_SUMMARY) {
465465
tst_test_print_failed ();
466466
}
467467

tst_output.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ static int tst_output_global_rank;
2626

2727
/* Corresponding strings to values in enum tst_report_types. */
2828
const char * tst_reports[] = {
29+
"None",
2930
"Summary",
3031
"Run",
3132
"Full",

tst_output.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ typedef enum {
2626

2727

2828
typedef enum {
29-
TST_REPORT_SUMMARY = 0, /**< No output, except for final summary */
29+
TST_REPORT_NONE = 0, /**< No output */
30+
TST_REPORT_SUMMARY, /**< No output, except for final summary */
3031
TST_REPORT_RUN, /**< Output every test that runs, plus the previous */
3132
TST_REPORT_FULL, /**< Full output, including hexdump of wrong memory */
3233
TST_REPORT_MAX /**< Output everything */

0 commit comments

Comments
 (0)