@@ -9,7 +9,7 @@ program legacy_driver
99#ifdef __GNUC__
1010#if (GCC_VERSION < 140300)
1111 ! Internal utilities
12- use julienne_m, only : command_line_t, GitHub_CI, one_image_prints, string_t
12+ use julienne_m, only : command_line_t, GitHub_CI
1313
1414 ! Test modules
1515 use assert_test_m ,only : assert_test_t
@@ -45,36 +45,34 @@ program legacy_driver
4545
4646 if (command_line% argument_present([character (len= len (" --help" )):: " --help" ," -h" ])) stop usage
4747
48- call one_image_prints(new_line( " " ) // " Append '-- --help' or '-- -h' to your `fpm test` command to display usage information. " )
48+ associate(me = > this_image() )
4949
50- call assert_test% report(passes, tests, skips)
51- call bin_test% report(passes, tests, skips)
52- call formats_test% report(passes, tests, skips)
53- call string_test% report(passes, tests, skips)
54- call test_result_test% report(passes, tests, skips)
55- call test_description_test% report(passes, tests, skips)
56- call test_diagnosis_test% report(passes, tests, skips)
50+ if (me== 1 ) print ' (a)' , new_line(" " ) // " Append '-- --help' or '-- -h' to your `fpm test` command to display usage information."
5751
58- if (.not. GitHub_CI()) then
59- if (command_line% argument_present([" --test" ])) then
60- call command_line_test% report(passes, tests, skips)
61- else
62- call one_image_prints( &
63- new_line(" " ) // &
64- " To test Julienne's command_line_t type, append the following to your fpm command:" // &
65- new_line(" " ) // &
66- " -- --test command_line_t --type" &
67- )
52+ call assert_test% report(passes, tests, skips)
53+ call bin_test% report(passes, tests, skips)
54+ call formats_test% report(passes, tests, skips)
55+ call string_test% report(passes, tests, skips)
56+ call test_result_test% report(passes, tests, skips)
57+ call test_description_test% report(passes, tests, skips)
58+ call test_diagnosis_test% report(passes, tests, skips)
59+
60+ if (.not. GitHub_CI()) then
61+ if (command_line% argument_present([" --test" ])) then
62+ call command_line_test% report(passes, tests, skips)
63+ else
64+ if (me== 1 ) print ' (a)' , &
65+ new_line(" " ) // &
66+ " To test Julienne's command_line_t type, append the following to your fpm command:" // &
67+ new_line(" " ) // &
68+ " -- --test command_line_t --type"
69+ end if
6870 end if
69- end if
7071
71- if (this_image()==1 ) then
72- call one_image_prints( &
73- " _____ In total, " // string_t(passes) // " of " // string_t(tests) // " tests pass. " // &
74- string_t(skips) // " tests were skipped. _____" &
75- )
72+ if (me== 1 ) print ' (*(a,:,i0))' , " _____ In total, " , passes, " of " , tests, " tests pass. " , skips, " tests were skipped. _____"
73+ sync all
7674 if (passes + skips /= tests) error stop " Some executed tests failed."
77- end if
75+ end associate
7876
7977#endif
8078#endif
0 commit comments