changeset 18167:441121728230

tweak format of per-file info lines in __run_test_suite__ output * __run_test_suite__.m: Increase width of test file name display. Display FAIL, SKIP, and XFAIL counts on separate lines.
author John W. Eaton <jwe@octave.org>
date Tue, 24 Dec 2013 01:30:27 -0500
parents c9b4d3177de3
children 8d332da6694f
files scripts/testfun/__run_test_suite__.m
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/testfun/__run_test_suite__.m	Mon Dec 23 18:38:53 2013 +0100
+++ b/scripts/testfun/__run_test_suite__.m	Tue Dec 24 01:30:27 2013 -0500
@@ -116,22 +116,22 @@
 endfunction
 
 function print_test_file_name (nm)
-  filler = repmat (".", 1, 52-length (nm));
+  filler = repmat (".", 1, 60-length (nm));
   printf ("  %s %s", nm, filler);
 endfunction
 
 function print_pass_fail (p, n, xf, sk)
   if ((n + sk) > 0)
-    printf (" PASS %4d/%-4d", p, n);
+    printf (" PASS   %4d/%-4d", p, n);
     nfail = n - p - xf;
     if (nfail > 0)
-      printf (" FAIL  %-4d", nfail);
+      printf ("\n%71s %3d", "FAIL ", nfail);
     endif    
     if (sk > 0)
-      printf (" (SKIP  %-4d)", sk);
+      printf ("\n%71s %3d", "SKIP ", sk);
     endif
     if (xf > 0)
-      printf (" (XFAIL %-4d)", xf);
+      printf ("\n%71s %3d", "XFAIL", xf);
     endif
   endif
   puts ("\n");