]> code.delx.au - gnu-emacs-elpa/blob - packages/test-simple/make-check-filter.rb
Merge commit '0cda39255827f283e7578cd469ae42daad9556a2' from js2-mode
[gnu-emacs-elpa] / packages / test-simple / 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 'make\[',
8 "Making check in",
9 '\(cd \.\.',
10 "make -C",
11 "Test-Unit",
12 "Fontifying",
13 '\s*$'
14 ].join('|') + ')'
15 # puts pats
16 skip_re = /#{pats}/
17
18 while gets()
19 next if $_ =~ skip_re
20 puts $_
21 end