Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 497776 | Differences between
and this patch

Collapse All | Expand All

(-)libcaca-0.99.beta18/test/Makefile.am (+2 lines)
Lines 1-3 Link Here
1
AM_TESTS_ENVIRONMENT = \
2
	top_srcdir="$(top_srcdir)"
1
3
2
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/caca -I../caca
4
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/caca -I../caca
3
5
(-)libcaca-0.99.beta18/test/check-copyright (-2 / +3 lines)
Lines 3-12 Link Here
3
#
3
#
4
# Check that the copyright information is valid
4
# Check that the copyright information is valid
5
#
5
#
6
echo "top srcdir: ${top_srcdir:=..}"
6
nfails=0
7
nfails=0
7
nfiles=0
8
nfiles=0
8
for dir in $(make -s echo-dirs -C ..); do
9
for dir in $(make -s echo-dirs -C ..); do
9
  if [ ! -d "../$dir" ]; then continue; fi
10
  if [ ! -d "$top_srcdir/$dir" ]; then continue; fi
10
  for x in $(make -s echo-sources -C ../$dir); do
11
  for x in $(make -s echo-sources -C ../$dir); do
11
    case "$x" in
12
    case "$x" in
12
      *.c|*.cpp|*.h|*.m|*.php|*.cs|*.java|.py|.pl)
13
      *.c|*.cpp|*.h|*.m|*.php|*.cs|*.java|.py|.pl)
Lines 14-20 Link Here
14
      *)
15
      *)
15
        continue ;;
16
        continue ;;
16
    esac
17
    esac
17
    if ! grep 'Copyright *([cC])' "../$dir/$x" >/dev/null 2>&1; then
18
    if ! grep 'Copyright *([cC])' "$top_srcdir/$dir/$x" >/dev/null 2>&1; then
18
      echo "error: $dir/$x lacks proper copyright information"
19
      echo "error: $dir/$x lacks proper copyright information"
19
      nfails=$(($nfails + 1))
20
      nfails=$(($nfails + 1))
20
    elif [ -d ../.git ]; then
21
    elif [ -d ../.git ]; then
(-)libcaca-0.99.beta18/test/check-source (-3 / +4 lines)
Lines 3-8 Link Here
3
#
3
#
4
# Check that we have no tabs or trailing spaces in the source code
4
# Check that we have no tabs or trailing spaces in the source code
5
#
5
#
6
echo "top srcdir: ${top_srcdir:=..}"
6
nfails=0
7
nfails=0
7
nfiles=0
8
nfiles=0
8
nlines=0
9
nlines=0
Lines 12-26 Link Here
12
    case "$x" in
13
    case "$x" in
13
      *.c|*.cpp|*.h|*.m|*.php|*.cs|*.java|*.py|*.pl)
14
      *.c|*.cpp|*.h|*.m|*.php|*.cs|*.java|*.py|*.pl)
14
        nfiles=$(($nfiles + 1));
15
        nfiles=$(($nfiles + 1));
15
        nlines=$(($nlines + `grep -c . "../$dir/$x"`)) ;;
16
        nlines=$(($nlines + `grep -c . "$top_srcdir/$dir/$x"`)) ;;
16
      *)
17
      *)
17
        continue ;;
18
        continue ;;
18
    esac
19
    esac
19
    if grep '[[:space:]]$' "../$dir/$x" >/dev/null 2>&1; then
20
    if grep '[[:space:]]$' "$top_srcdir/$dir/$x" >/dev/null 2>&1; then
20
      echo "error: $dir/$x contains trailing spaces"
21
      echo "error: $dir/$x contains trailing spaces"
21
      nfails=$(($nfails + 1))
22
      nfails=$(($nfails + 1))
22
    fi
23
    fi
23
    if grep '	' "../$dir/$x" >/dev/null 2>&1; then
24
    if grep '	' "$top_srcdir/$dir/$x" >/dev/null 2>&1; then
24
      echo "error: $dir/$x contains tabs"
25
      echo "error: $dir/$x contains tabs"
25
      nfails=$(($nfails + 1))
26
      nfails=$(($nfails + 1))
26
    fi
27
    fi

Return to bug 497776