|
5 | 5 |
|
6 | 6 | submodule(julienne_test_m) julienne_test_s
|
7 | 7 | use julienne_test_description_m, only : test_description_t
|
8 |
| - use julienne_one_image_prints_m, only : one_image_prints |
9 | 8 | use julienne_string_m, only : string_t
|
10 | 9 | implicit none
|
11 | 10 |
|
|
35 | 34 | #if HAVE_MULTI_IMAGE_SUPPORT
|
36 | 35 | associate(me => this_image())
|
37 | 36 | #else
|
38 |
| - integer me |
39 |
| - me = 1 |
| 37 | + associate(me => 1) |
40 | 38 | #endif
|
41 | 39 | image_1_prints_usage_info: &
|
42 | 40 | if (me==1) then
|
|
49 | 47 | character(len=:), allocatable :: search_string
|
50 | 48 | search_string = command_line%flag_value("--contains")
|
51 | 49 | if (len(search_string)==0) then
|
52 |
| - call one_image_prints( new_line('') // & |
| 50 | + if (me==1) print '(a)', new_line('') // & |
53 | 51 | "Running all tests." // new_line('') // &
|
54 |
| - "(Add '-- --contains <string>' to run only tests with subjects or descriptions containing the specified string.)") |
| 52 | + "(Add '-- --contains <string>' to run only tests with subjects or descriptions containing the specified string.)" |
55 | 53 | else
|
56 |
| -#ifndef NAGFOR |
57 |
| - call one_image_prints(new_line('') // "Running only tests with subjects or descriptions containing '" // search_string // "'.") |
58 |
| -#else |
59 |
| - call one_image_prints(new_line('') // "Running only tests with subjects or descriptions containing '" // string_t(search_string) // "'.") |
60 |
| -#endif |
| 54 | + if (me==1) print '(a)', new_line('') // "Running only tests with subjects or descriptions containing '" // search_string // "'." |
61 | 55 | end if
|
62 | 56 | end block
|
63 | 57 | end if first_report
|
64 | 58 | end block
|
65 | 59 |
|
66 |
| -#ifndef NAGFOR |
67 |
| - call one_image_prints(new_line('') // test%subject()) |
68 |
| -#else |
69 |
| - call one_image_prints(new_line('') // string_t(test%subject())) |
70 |
| -#endif |
| 60 | + if (me==1) print '(a)', new_line('') // test%subject() |
71 | 61 |
|
72 | 62 | end if image_1_prints_usage_info
|
73 | 63 |
|
|
79 | 69 | block
|
80 | 70 | integer i
|
81 | 71 | do i=1,num_tests
|
82 |
| -#ifndef NAGFOR |
83 |
| - call one_image_prints(" " // test_results(i)%characterize()) |
84 |
| -#else |
85 |
| - call one_image_prints(" " // string_t(test_results(i)%characterize())) |
86 |
| -#endif |
| 72 | + if (me==1) print '(a)', " " // test_results(i)%characterize() |
87 | 73 | end do
|
88 | 74 | end block
|
89 | 75 | end if
|
|
97 | 83 | call co_all(skipped_tests)
|
98 | 84 |
|
99 | 85 | associate(num_passes => count(passing_tests), num_skipped => count(skipped_tests))
|
100 |
| - call one_image_prints(" " // string_t(num_passes) // " of " // string_t(num_tests) // " tests passed. " // string_t(num_skipped) // " tests were skipped.") |
| 86 | + if (me==1) print '(*(a,:,i0))', " ", num_passes, " of ", num_tests, " tests passed. ", num_skipped, " tests were skipped." |
101 | 87 | passes = passes + num_passes
|
102 | 88 | skips = skips + num_skipped
|
103 | 89 | end associate
|
104 | 90 | end block
|
105 | 91 | end associate
|
106 |
| -#if HAVE_MULTI_IMAGE_SUPPORT |
107 | 92 | end associate
|
108 |
| -#endif |
109 |
| - |
110 | 93 | #else
|
111 | 94 | block
|
112 | 95 | logical, allocatable :: passing_tests(:)
|
|
118 | 101 | tests = tests + num_tests
|
119 | 102 | if (me==1) then
|
120 | 103 | do i=1,num_tests
|
121 |
| - call one_image_prints(test_results(i)%characterize()) |
| 104 | + print '(a)', test_results(i)%characterize() |
122 | 105 | end do
|
123 | 106 | end if
|
124 | 107 | passing_tests = test_results%passed()
|
125 | 108 | call co_all(passing_tests)
|
126 | 109 | associate(num_passes => count(passing_tests))
|
127 |
| - call one_image_prints(" " // string_t(num_passes) // " of " // string_t(num_tests) // " tests passed.") |
| 110 | + if (me==1) print '(a)', " " // string_t(num_passes) // " of " // string_t(num_tests) // " tests passed." |
128 | 111 | passes = passes + num_passes
|
129 | 112 | end associate
|
130 | 113 | end associate
|
|
0 commit comments