]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/load-relative/make-check-filter.rb
Add 'packages/load-relative/' from commit '064074d7dcc8d26d59ab9ceb099b43e6870c58d1'
[gnu-emacs-elpa] / packages / load-relative / make-check-filter.rb
diff --git a/packages/load-relative/make-check-filter.rb b/packages/load-relative/make-check-filter.rb
new file mode 100644 (file)
index 0000000..329bdf1
--- /dev/null
@@ -0,0 +1,23 @@
+#!/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",
+        "^Wrote",
+        '\(cd \.\.',
+        "make -C",
+        "Test-Unit",
+        "Fontifying",
+        '\s*$',
+        '##[<>]+$'
+       ].join('|') + ')'
+# puts pats
+skip_re = /#{pats}/
+
+while gets()
+  next if $_ =~ skip_re
+  puts $_
+end