emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/realgud-lldb c8f80dd 15/56: Add check-short filter


From: Rocky Bernstein
Subject: [elpa] externals/realgud-lldb c8f80dd 15/56: Add check-short filter
Date: Thu, 23 May 2019 02:11:38 -0400 (EDT)

branch: externals/realgud-lldb
commit c8f80dd987940845c2efe48250496abf43bc1daf
Author: rocky <address@hidden>
Commit: rocky <address@hidden>

    Add check-short filter
---
 test/make-check-filter.rb | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/test/make-check-filter.rb b/test/make-check-filter.rb
new file mode 100644
index 0000000..508c8f6
--- /dev/null
+++ b/test/make-check-filter.rb
@@ -0,0 +1,24 @@
+#!/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",
+        '(re)?make\[',
+        "Making check in",
+        '\(cd \.\.',
+        "make -C",
+        "Test-Unit",
+        "Fontifying",
+        "`flet'",
+        '\s*$',
+        '##[<>]+$'
+       ].join('|') + ')'
+# puts pats
+skip_re = /#{pats}/
+
+while gets()
+  next if $_.encode!('UTF-8', 'binary',
+                     invalid: :replace, undef: :replace, replace: '') =~ 
skip_re
+  puts $_
+end



reply via email to

[Prev in Thread] Current Thread [Next in Thread]