]> code.delx.au - gnu-emacs-elpa/commitdiff
Add "make check-short" which reduces unuseful output from "make check".
authorrocky <rocky@gnu.org>
Fri, 15 Apr 2011 22:14:14 +0000 (18:14 -0400)
committerrocky <rocky@gnu.org>
Fri, 15 Apr 2011 22:14:14 +0000 (18:14 -0400)
Correct problem in trepan init.el: (format ...) doesn't work here.

Makefile.am
dbgr/debugger/trepan/init.el
make-check-filter.rb [new file with mode: 0644]
test/Makefile.am

index af172a09055207b8ead0355402b1fa90147aa933..291cfc1d597d6b6a4c5d5155868068f1faca1fc1 100644 (file)
@@ -17,6 +17,9 @@ endif
 
 test: check
 
+check-short:
+       $(MAKE) check 2>&1  | ruby make-check-filter.rb
+
 
 
 
index 7cb87f552a458b48154969fa7dcba0780c2a1348..517e18354838f2d694e07d8f0dc068677199c573 100644 (file)
@@ -104,7 +104,7 @@ backtrace listing.")
 (setf (gethash "font-lock-keywords" dbgr-trepan-pat-hash)
       '(
        ;; The frame number and first type name, if present.
-       (format ("^\\(%s\\|   \\)? #\\([0-9]+\\) \\([A-Z]+\\) *\\([A-Z_][a-zA-Z0-9_]*\\)[#]\\([a-zA-Z_][a-zA-Z_[0-9]]*\\)?" dbgr-trepan-selected-frame-arrow)
+       ("^\\(-->\\|   \\)? #\\([0-9]+\\) \\([A-Z]+\\) *\\([A-Z_][a-zA-Z0-9_]*\\)[#]\\([a-zA-Z_][a-zA-Z_[0-9]]*\\)?"
         (2 dbgr-backtrace-number-face)
         (3 font-lock-keyword-face)         ; e.g. METHOD, TOP
         (4 font-lock-constant-face)        ; e.g. Object
diff --git a/make-check-filter.rb b/make-check-filter.rb
new file mode 100644 (file)
index 0000000..daee7c9
--- /dev/null
@@ -0,0 +1,21 @@
+#!/usr/bin/env ruby
+# Use this to cut out the crud from make check.
+# Use like this:
+#   make check 2>&1  | ruby ../make-check-filter.rb
+# See Makefile.am
+pats = ["^(?:Loading",
+        'make\[',
+        "Making check in",
+        '\(cd \.\.',
+        "make -C",
+        "Test-Unit",
+        "Fontifying",
+        '\s*$'
+       ].join('|') + ')'
+# puts pats
+skip_re = /#{pats}/
+
+while gets()
+  next if $_ =~ skip_re
+  puts $_
+end
index e4de6554e6873126d7f9daa37fff0048a95f7dd9..38728b3ac1abf8db967eea3e7cc27a7d5d0d3369 100644 (file)
@@ -13,6 +13,9 @@ CHECK_FILES = $(notdir $(test_files:.el=.run))
 
 check: $(CHECK_FILES)
 
+check-short:
+       $(MAKE) check 2>&1  | ruby ../make-check-filter.rb
+
 test-%.run:
        (cd $(top_srcdir)/test && $(EMACS) -batch -Q -l $(@:.run=.el) )