comparison scripts/testfun/runtests.m @ 19865:e9f89866074c

maint: Cleanup some .m files to follow Octave coding conventions. * accumarray.m, validateattributes.m, iscolormap.m, __imread__.m, __imwrite__.m, imwrite_filename.m, strread.m, getappdata.m, appearance/annotation.m, shrinkfaces.m, rundemos.m, runtests.m, datenum.m, datestr.m: Break long lines before && and ||.
author John W. Eaton <jwe@octave.org>
date Thu, 26 Feb 2015 13:13:40 -0500
parents 4197fc428c7d
children 2645f9ef8c88
comparison
equal deleted inserted replaced
19864:17d647821d61 19865:e9f89866074c
67 no_tests = {}; 67 no_tests = {};
68 printf ("Processing files in %s:\n\n", directory); 68 printf ("Processing files in %s:\n\n", directory);
69 fflush (stdout); 69 fflush (stdout);
70 for i = 1:numel (flist) 70 for i = 1:numel (flist)
71 f = flist{i}; 71 f = flist{i};
72 if ((length (f) > 2 && strcmpi (f((end-1):end), ".m")) || 72 if ((length (f) > 2 && strcmpi (f((end-1):end), ".m"))
73 (length (f) > 3 && strcmpi (f((end-2):end), ".cc"))) 73 || (length (f) > 3 && strcmpi (f((end-2):end), ".cc")))
74 ff = fullfile (directory, f); 74 ff = fullfile (directory, f);
75 if (has_tests (ff)) 75 if (has_tests (ff))
76 print_test_file_name (f); 76 print_test_file_name (f);
77 [p, n, xf, sk] = test (ff, "quiet"); 77 [p, n, xf, sk] = test (ff, "quiet");
78 print_pass_fail (n, p); 78 print_pass_fail (n, p);