]> code.delx.au - gnu-emacs-elpa/blob - packages/loc-changes/test/make-check-filter.rb
Merge commit '0cda39255827f283e7578cd469ae42daad9556a2' from js2-mode
[gnu-emacs-elpa] / packages / loc-changes / test / make-check-filter.rb
1 #!/usr/bin/env ruby
2 # Use this to cut out the crud from make check.
3 # Use like this:
4 # make check 2>&1 | ruby ../make-check-filter.rb
5 # See Makefile.am
6 pats = ["^(?:Loading",
7 '(re)?make\[',
8 "Making check in",
9 '\(cd \.\.',
10 "Column ignored",
11 "buffer \\*scratch\\*",
12 "\\*scratch\\*",
13 "make -C",
14 "Test-Unit",
15 "Fontifying",
16 '\s*$',
17 '##[<>]+$'
18 ].join('|') + ')'
19 # puts pats
20 skip_re = /#{pats}/
21
22 while gets()
23 next if $_ =~ skip_re
24 puts $_
25 end