test v4-0-test tree in the build-farm instead of the svn tree
[amitay/build-farm.git] / berks.fns
1 MAXTIME=9000
2
3 per_run_hook
4
5 for compiler in gcc cc icc; do
6
7   # arrgh, "which" gives no err code on solaris
8   path=`which $compiler`
9   if [ -x "$path" ]; then
10
11     if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
12        isgcc=1
13        CFLAGS="-Wall"
14        export CFLAGS
15     else
16        CFLAGS=""
17        export CFLAGS
18        isgcc=0
19     fi
20     if [ $compiler = gcc -o $isgcc = 0 ]; then
21       . common.fns
22
23       # only attempt samba_4_0_test if we have perl
24       if which perl > /dev/null; then
25         test_tree samba_4_0_test source $compiler
26       fi
27
28       test_tree samba_3_2_test source $compiler
29
30       test_tree lorikeet-heimdal . $compiler
31     fi
32   fi
33 done
34     
35
36 # by default build ppp only on SunOS or Linux systems
37 system=`uname`
38 if [ "$system" = Linux -o "$system" = SunOS ]; then
39    test_tree ppp . gcc
40 fi
41