[Pkg-octave-commit] [octave-ltfat] 03/03: d/check.m: Avoid verbose output of unit tests

Rafael Laboissière rlaboiss-guest at moszumanska.debian.org
Sun May 3 21:38:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

rlaboiss-guest pushed a commit to branch master
in repository octave-ltfat.

commit bff2188f4ab72b4f039cdace9226db4644bd4a2a
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Sun May 3 18:37:43 2015 -0300

    d/check.m: Avoid verbose output of unit tests
---
 debian/check.m | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/debian/check.m b/debian/check.m
index a75bb3e..f018efa 100644
--- a/debian/check.m
+++ b/debian/check.m
@@ -1,2 +1,20 @@
 disp ("[running test_all_ltfat]");
+
+### Print only the banners of the unit tests
+function disp (s)
+    if ! isempty (regexp (s, "^( ?[=-]+ *TEST.*|.* TESTS (PASSED|FAILED).*|.*failed tests.*|   )"))
+        printf (s);
+        printf ("\n");
+    endif
+endfunction
+
+function which (x)
+endfunction
+
+function s = fprintf (varargin)
+    if nargout == 1
+        s = [];
+    endif
+endfunction
+
 test_all_ltfat ();

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-ltfat.git



More information about the Pkg-octave-commit mailing list