Mercurial > hg > octave-nkf
annotate test/fntests.m @ 11033:d9c8916bb9dd
Untabify a few remaining .m scripts.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 28 Sep 2010 13:24:21 -0700 |
parents | c9b0a75b02e8 |
children | 3b8817c91e31 |
rev | line source |
---|---|
8920 | 1 ## Copyright (C) 2005, 2006, 2007, 2008, 2009 David Bateman |
7016 | 2 ## |
3 ## This file is part of Octave. | |
4 ## | |
5 ## Octave is free software; you can redistribute it and/or modify it | |
6 ## under the terms of the GNU General Public License as published by | |
7 ## the Free Software Foundation; either version 3 of the License, or (at | |
8 ## your option) any later version. | |
9 ## | |
10 ## Octave is distributed in the hope that it will be useful, but | |
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 ## General Public License for more details. | |
14 ## | |
15 ## You should have received a copy of the GNU General Public License | |
16 ## along with Octave; see the file COPYING. If not, see | |
17 ## <http://www.gnu.org/licenses/>. | |
18 | |
5590 | 19 clear all; |
20 | |
5840 | 21 global files_with_no_tests = {}; |
5845 | 22 global files_with_tests = {}; |
5590 | 23 global topsrcdir; |
6257 | 24 global topbuilddir; |
5590 | 25 |
26 currdir = canonicalize_file_name ("."); | |
27 | |
28 if (nargin == 1) | |
5781 | 29 xdir = argv(){1}; |
5590 | 30 else |
31 xdir = "."; | |
32 endif | |
33 | |
34 srcdir = canonicalize_file_name (xdir); | |
35 topsrcdir = canonicalize_file_name (fullfile (xdir, "..")); | |
6257 | 36 topbuilddir = canonicalize_file_name (fullfile (currdir, "..")); |
5590 | 37 |
38 if (strcmp (currdir, srcdir)) | |
39 testdirs = {srcdir}; | |
40 else | |
41 testdirs = {currdir, srcdir}; | |
42 endif | |
43 | |
44 src_tree = canonicalize_file_name (fullfile (topsrcdir, "src")); | |
6257 | 45 liboctave_tree = canonicalize_file_name (fullfile (topsrcdir, "liboctave")); |
5590 | 46 script_tree = canonicalize_file_name (fullfile (topsrcdir, "scripts")); |
6257 | 47 local_script_tree = canonicalize_file_name (fullfile (currdir, "../scripts")); |
48 | |
6162 | 49 fundirs = {src_tree, liboctave_tree, script_tree}; |
5590 | 50 |
6257 | 51 if (! strcmp (currdir, srcdir)) |
52 fundirs{end+1} = local_script_tree; | |
53 endif | |
54 | |
5836 | 55 function print_test_file_name (nm) |
56 filler = repmat (".", 1, 55-length (nm)); | |
57 printf (" %s %s", nm, filler); | |
58 endfunction | |
59 | |
60 function print_pass_fail (n, p) | |
61 if (n > 0) | |
62 printf (" PASS %4d/%-4d", p, n); | |
63 nfail = n - p; | |
64 if (nfail > 0) | |
65 printf (" FAIL %d", nfail); | |
66 endif | |
67 endif | |
7762 | 68 puts ("\n"); |
5836 | 69 endfunction |
70 | |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
71 function retval = has_functions (f) |
10220
04f2b4d68eba
test/fntests.m (hasfunctions): assume .m files have functions
John W. Eaton <jwe@octave.org>
parents:
10112
diff
changeset
|
72 n = length (f); |
04f2b4d68eba
test/fntests.m (hasfunctions): assume .m files have functions
John W. Eaton <jwe@octave.org>
parents:
10112
diff
changeset
|
73 if (n > 3 && strcmp (f((end-2):end), ".cc")) |
04f2b4d68eba
test/fntests.m (hasfunctions): assume .m files have functions
John W. Eaton <jwe@octave.org>
parents:
10112
diff
changeset
|
74 fid = fopen (f); |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
75 if (fid >= 0) |
10220
04f2b4d68eba
test/fntests.m (hasfunctions): assume .m files have functions
John W. Eaton <jwe@octave.org>
parents:
10112
diff
changeset
|
76 str = fread (fid, "*char")'; |
04f2b4d68eba
test/fntests.m (hasfunctions): assume .m files have functions
John W. Eaton <jwe@octave.org>
parents:
10112
diff
changeset
|
77 fclose (fid); |
11032
c9b0a75b02e8
Make all regexp in Octave compatible with both POSIX and PCRE.
Rik <octave@nomad.inbox5.com>
parents:
11024
diff
changeset
|
78 retval = ! isempty (regexp (str,"[\r\n](DEFUN|DEFUN_DLD)\\b", "once")); |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
79 else |
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
80 error ("fopen failed: %s", f); |
10220
04f2b4d68eba
test/fntests.m (hasfunctions): assume .m files have functions
John W. Eaton <jwe@octave.org>
parents:
10112
diff
changeset
|
81 endif |
04f2b4d68eba
test/fntests.m (hasfunctions): assume .m files have functions
John W. Eaton <jwe@octave.org>
parents:
10112
diff
changeset
|
82 elseif (n > 2 && strcmp (f((end-1):end), ".m")) |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
83 retval = true; |
9742
9f8ff01abc65
.cc files are now included in the list of files requiring
Rik <rdrider0-list@yahoo.com>
parents:
9741
diff
changeset
|
84 else |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
85 retval = false; |
9742
9f8ff01abc65
.cc files are now included in the list of files requiring
Rik <rdrider0-list@yahoo.com>
parents:
9741
diff
changeset
|
86 endif |
9f8ff01abc65
.cc files are now included in the list of files requiring
Rik <rdrider0-list@yahoo.com>
parents:
9741
diff
changeset
|
87 endfunction |
9f8ff01abc65
.cc files are now included in the list of files requiring
Rik <rdrider0-list@yahoo.com>
parents:
9741
diff
changeset
|
88 |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
89 function retval = has_tests (f) |
5840 | 90 fid = fopen (f); |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
91 if (fid >= 0) |
8699
6e764b7317bd
test/fntests.m, scripts/test/demo.m: error on fopen failures
John W. Eaton <jwe@octave.org>
parents:
8423
diff
changeset
|
92 str = fread (fid, "*char")'; |
6e764b7317bd
test/fntests.m, scripts/test/demo.m: error on fopen failures
John W. Eaton <jwe@octave.org>
parents:
8423
diff
changeset
|
93 fclose (fid); |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
94 ## Avoid PCRE 'lineanchors' by searching for newline followed by PTN. |
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
95 ## Equivalent to regexp ('^PTN','lineanchors') |
11032
c9b0a75b02e8
Make all regexp in Octave compatible with both POSIX and PCRE.
Rik <octave@nomad.inbox5.com>
parents:
11024
diff
changeset
|
96 retval = ! isempty (regexp (str, "[\r\n]\\s*%!(test|assert|error|warning)", "once")); |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
97 else |
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
98 error ("fopen failed: %s", f); |
8699
6e764b7317bd
test/fntests.m, scripts/test/demo.m: error on fopen failures
John W. Eaton <jwe@octave.org>
parents:
8423
diff
changeset
|
99 endif |
5840 | 100 endfunction |
101 | |
7243 | 102 function [dp, dn, dxf, dsk] = run_test_dir (fid, d); |
5845 | 103 global files_with_tests; |
5840 | 104 global files_with_no_tests; |
5836 | 105 lst = dir (d); |
7243 | 106 dp = dn = dxf = dsk = 0; |
5836 | 107 for i = 1:length (lst) |
5590 | 108 nm = lst(i).name; |
5836 | 109 if (length (nm) > 5 && strcmp (nm(1:5), "test_") |
11033
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
110 && strcmp (nm((end-1):end), ".m")) |
10026
9b3a100922a6
fntests.m: use regexp instead of findstr and only recognize tests that are the first thing on a line
John W. Eaton <jwe@octave.org>
parents:
9742
diff
changeset
|
111 p = n = xf = sk = 0; |
5845 | 112 ffnm = fullfile (d, nm); |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
113 if (has_tests (ffnm)) |
11033
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
114 print_test_file_name (nm); |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
115 [p, n, xf, sk] = test (nm(1:(end-2)), "quiet", fid); |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
116 print_pass_fail (n, p); |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
117 files_with_tests(end+1) = ffnm; |
5840 | 118 else |
11033
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
119 files_with_no_tests(end+1) = ffnm; |
5840 | 120 endif |
5836 | 121 dp += p; |
5590 | 122 dn += n; |
6730 | 123 dxf += xf; |
7243 | 124 dsk += sk; |
5590 | 125 endif |
126 endfor | |
127 endfunction | |
128 | |
7243 | 129 function [dp, dn, dxf, dsk] = run_test_script (fid, d); |
5845 | 130 global files_with_tests; |
5840 | 131 global files_with_no_tests; |
5781 | 132 global topsrcdir; |
6257 | 133 global topbuilddir; |
5836 | 134 lst = dir (d); |
7243 | 135 dp = dn = dxf = dsk = 0; |
5836 | 136 for i = 1:length (lst) |
5590 | 137 nm = lst(i).name; |
5836 | 138 if (lst(i).isdir && ! strcmp (nm, ".") && ! strcmp (nm, "..") |
11033
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
139 && ! strcmp (nm, "CVS") && ! strcmp (nm, "deprecated") ) |
7243 | 140 [p, n, xf, sk] = run_test_script (fid, [d, "/", nm]); |
5590 | 141 dp += p; |
142 dn += n; | |
6730 | 143 dxf += xf; |
7243 | 144 dsk += sk; |
5590 | 145 endif |
146 endfor | |
5836 | 147 for i = 1:length (lst) |
5590 | 148 nm = lst(i).name; |
10112
fddfebeeb33a
Run tests in all *.cc files.
David Grundberg <davidg@cs.umu.se>
parents:
10026
diff
changeset
|
149 ## Ignore hidden files |
fddfebeeb33a
Run tests in all *.cc files.
David Grundberg <davidg@cs.umu.se>
parents:
10026
diff
changeset
|
150 if (nm(1) == '.') |
fddfebeeb33a
Run tests in all *.cc files.
David Grundberg <davidg@cs.umu.se>
parents:
10026
diff
changeset
|
151 continue |
fddfebeeb33a
Run tests in all *.cc files.
David Grundberg <davidg@cs.umu.se>
parents:
10026
diff
changeset
|
152 endif |
9742
9f8ff01abc65
.cc files are now included in the list of files requiring
Rik <rdrider0-list@yahoo.com>
parents:
9741
diff
changeset
|
153 f = fullfile (d, nm); |
9f8ff01abc65
.cc files are now included in the list of files requiring
Rik <rdrider0-list@yahoo.com>
parents:
9741
diff
changeset
|
154 if ((length (nm) > 2 && strcmp (nm((end-1):end), ".m")) || |
10112
fddfebeeb33a
Run tests in all *.cc files.
David Grundberg <davidg@cs.umu.se>
parents:
10026
diff
changeset
|
155 (length (nm) > 3 && strcmp (nm((end-2):end), ".cc"))) |
6730 | 156 p = n = xf = 0; |
5590 | 157 ## Only run if it contains %!test, %!assert %!error or %!warning |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
158 if (has_tests (f)) |
11033
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
159 tmp = strrep (f, [topsrcdir, "/"], ""); |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
160 tmp = strrep (tmp, [topbuilddir, "/"], "../"); |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
161 print_test_file_name (tmp); |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
162 [p, n, xf, sk] = test (f, "quiet", fid); |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
163 print_pass_fail (n, p); |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
164 dp += p; |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
165 dn += n; |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
166 dxf += xf; |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
167 dsk += sk; |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
168 files_with_tests(end+1) = f; |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
169 elseif (has_functions (f)) |
11033
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
170 ## To reduce the list length, only mark .cc files that contain |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
171 ## DEFUN definitions. |
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
172 files_with_no_tests(end+1) = f; |
5590 | 173 endif |
174 endif | |
175 endfor | |
5667 | 176 ## printf("%s%s -> passes %d of %d tests\n", ident, d, dp, dn); |
5590 | 177 endfunction |
178 | |
5836 | 179 function printf_assert (varargin) |
5590 | 180 global _assert_printf; |
5836 | 181 _assert_printf = cat (2, _assert_printf, sprintf (varargin{:})); |
5590 | 182 endfunction |
183 | |
5836 | 184 function ret = prog_output_assert (str) |
5590 | 185 global _assert_printf; |
5836 | 186 if (isempty (_assert_printf)) |
187 ret = isempty (str); | |
5590 | 188 elseif (_assert_printf(end) == "\n") |
5836 | 189 ret = strcmp (_assert_printf(1:(end-1)), str); |
5590 | 190 else |
5836 | 191 ret = strcmp (_assert_printf, str); |
5590 | 192 endif |
193 _assert_printf = ""; | |
194 endfunction | |
195 | |
7645
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
196 function n = num_elts_matching_pattern (lst, pat) |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
197 n = 0; |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
198 for i = 1:length (lst) |
11024
fa56fd98c0c5
Remove requirement for PCRE in Octave. (Bug #31025)
Rik <octave@nomad.inbox5.com>
parents:
11019
diff
changeset
|
199 if (! isempty (regexp (lst{i}, pat, "once"))) |
7645
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
200 n++; |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
201 endif |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
202 endfor |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
203 endfunction |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
204 |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
205 function report_files_with_no_tests (with, without, typ) |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
206 pat = cstrcat ("\\", typ, "$"); |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
207 n_with = num_elts_matching_pattern (with, pat); |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
208 n_without = num_elts_matching_pattern (without, pat); |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
209 n_tot = n_with + n_without; |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
210 printf ("\n%d (of %d) %s files have no tests.\n", n_without, n_tot, typ); |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
211 endfunction |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
212 |
5836 | 213 pso = page_screen_output (); |
214 warn_state = warning ("query", "quiet"); | |
215 warning ("on", "quiet"); | |
5590 | 216 try |
5836 | 217 page_screen_output (0); |
218 fid = fopen ("fntests.log", "wt"); | |
5590 | 219 if (fid < 0) |
5836 | 220 error ("could not open fntests.log for writing"); |
5590 | 221 endif |
5836 | 222 test ("", "explain", fid); |
7243 | 223 dp = dn = dxf = dsk = 0; |
7762 | 224 puts ("\nIntegrated test scripts:\n\n"); |
5836 | 225 for i = 1:length (fundirs) |
7243 | 226 [p, n, xf, sk] = run_test_script (fid, fundirs{i}); |
5836 | 227 dp += p; |
228 dn += n; | |
6730 | 229 dxf += xf; |
7243 | 230 dsk += sk; |
5590 | 231 endfor |
7762 | 232 puts ("\nFixed test scripts:\n\n"); |
5836 | 233 for i = 1:length (testdirs) |
7243 | 234 [p, n, xf, sk] = run_test_dir (fid, testdirs{i}); |
5836 | 235 dp += p; |
236 dn += n; | |
6730 | 237 dxf += xf; |
7243 | 238 dsk += sk; |
5590 | 239 endfor |
5836 | 240 printf ("\nSummary:\n\n PASS %6d\n", dp); |
5667 | 241 nfail = dn - dp; |
242 printf (" FAIL %6d\n", nfail); | |
6730 | 243 if (dxf > 0) |
7291 | 244 if (dxf > 1) |
7300 | 245 t1 = "were"; |
246 t2 = "failures"; | |
7291 | 247 else |
248 t1 = "was"; | |
249 t2 = "failure"; | |
250 endif | |
251 printf ("\nThere %s %d expected %s (see fntests.log for details).\n", | |
11033
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
252 t1, dxf, t2); |
7762 | 253 puts ("\nExpected failures are known bugs. Please help improve\n"); |
254 puts ("Octave by contributing fixes for them.\n"); | |
6730 | 255 endif |
7243 | 256 if (dsk > 0) |
9696
01a1fd9167e0
Fix typo directing users to the wrong log file
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
257 printf ("\nThere were %d skipped tests (see fntests.log for details).\n", dsk); |
7762 | 258 puts ("Skipped tests are features that are disabled in this version\n"); |
11019
630dc1933fe6
Rephrase output from 'make check' for clarity.
Rik <octave@nomad.inbox5.com>
parents:
10899
diff
changeset
|
259 puts ("of Octave because the needed libraries were not present when Octave\n"); |
630dc1933fe6
Rephrase output from 'make check' for clarity.
Rik <octave@nomad.inbox5.com>
parents:
10899
diff
changeset
|
260 puts ("was built.\n"); |
7243 | 261 endif |
262 | |
7645
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
263 report_files_with_no_tests (files_with_tests, files_with_no_tests, ".m"); |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
264 report_files_with_no_tests (files_with_tests, files_with_no_tests, ".cc"); |
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
265 |
9710
519e164dde1e
Fix typo of an extra space in instructions to user
Rik <rdrider0-list@yahoo.com>
parents:
9696
diff
changeset
|
266 puts ("\nPlease help improve Octave by contributing tests for\n"); |
10899
686e3bc432a2
fntests.m: Add extra newline for more readable output during make.
Rik <octave@nomad.inbox5.com>
parents:
10220
diff
changeset
|
267 puts ("these files (see the list in the file fntests.log).\n\n"); |
7645
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
268 |
5840 | 269 fprintf (fid, "\nFiles with no tests:\n\n%s", |
11033
d9c8916bb9dd
Untabify a few remaining .m scripts.
Rik <octave@nomad.inbox5.com>
parents:
11032
diff
changeset
|
270 list_in_columns (files_with_no_tests, 80)); |
5836 | 271 fclose (fid); |
7645
734854f21c94
fntests.m: report number .m and .cc files without tests separately
John W. Eaton <jwe@octave.org>
parents:
7300
diff
changeset
|
272 |
5836 | 273 page_screen_output (pso); |
274 warning (warn_state.state, "quiet"); | |
5590 | 275 catch |
5836 | 276 page_screen_output (pso); |
277 warning (warn_state.state, "quiet"); | |
278 disp (lasterr ()); | |
5590 | 279 end_try_catch |