Browse Source

Make the check-source test more generic.

tags/v0.99.beta18
Sam Hocevar sam 15 years ago
parent
commit
8c4ac14327
2 changed files with 5 additions and 2 deletions
  1. +2
    -0
      Makefile.am
  2. +3
    -2
      test/check-source

+ 2
- 0
Makefile.am View File

@@ -31,4 +31,6 @@ update-fonts: tools/makefont
tools/makefont mono9 "Monospace 9" 96 4 >| $(srcdir)/caca/mono9.data
tools/makefont monobold12 "Monospace Bold 12" 96 4 >| $(srcdir)/caca/monobold12.data

echo-dirs: ; echo caca kernel src cxx examples ruby tools

FORCE:

+ 3
- 2
test/check-source View File

@@ -6,10 +6,11 @@
nfails=0
nfiles=0
nlines=0
for dir in caca kernel src cxx examples ruby tools; do
for dir in $(make -s echo-dirs -C ..); do
if [ ! -d "../$dir" ]; then continue; fi
for x in $(make -s echo-sources -C ../$dir); do
case "$x" in
*.c|*.cpp|*.h|*.m)
*.c|*.cpp|*.h|*.m|*.php|*.cs|*.java|.py|.pl)
nfiles=$(($nfiles + 1));
nlines=$(($nlines + `grep -c . "../$dir/$x"`)) ;;
*)


Loading…
Cancel
Save