File: testall

package info (click to toggle)
ccmalloc 0.4.0-9
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 488 kB
  • ctags: 446
  • sloc: ansic: 4,493; sh: 523; makefile: 105; cpp: 89
file content (36 lines) | stat: -rwxr-xr-x 793 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh

cd `dirname $0`

if [ ! -f test_C_02.c ]; then ln -s test_C_01.c test_C_02.c; fi
if [ ! -f test_C_03.c ]; then ln -s test_C_01.c test_C_03.c; fi
if [ ! -f test_C_13.c ]; then ln -s test_C_01.c test_C_13.c; fi
if [ ! -f test_C_14.c ]; then ln -s test_C_01.c test_C_14.c; fi

REMOVE_TEMPORARIES=1
export REMOVE_TEMPORARIES

os="`uname``uname -r`"
case x"$os" in
  xSunOS4*) CTEST="01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18";;
  x*) CTEST="01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19";;
esac

CPPTEST="01 02"

COMPILERS=`sed -e '/COMPILERS=/!d' -e 's,^COMPILERS=,,' ../Makefile`

for CC in $COMPILERS
do
  export CC

  for i in $CTEST
  do
    ./testone test_C_$i.c || exit 1
  done

  for i in $CPPTEST
  do
    ./testone test_C++_$i.cc || exit 1
  done
done