c7a7a773d1590a718e7c808bea33ace8cecd5e83
[build-farm.git] / generic.fns
1 per_run_hook
2
3 for compiler in gcc cc icc; do
4
5   # arrgh, "which" gives no err code on solaris
6   path=`which $compiler`
7   if [ -x "$path" ]; then
8
9     if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
10        isgcc=1
11     else
12        isgcc=0
13     fi
14     if [ $compiler = gcc -o $isgcc = 0 ]; then
15       test_tree samba_3_0 source $compiler
16       test_tree rsync . $compiler
17       test_tree distcc . $compiler
18       test_tree ccache . $compiler
19       test_tree talloc . $compiler
20       test_tree tdb . $compiler
21       test_tree lorikeet-heimdal . $compiler
22
23       # only attempt samba4 if we have perl
24       if which perl > /dev/null; then
25         test_tree samba4 source $compiler
26         test_tree smb-build . $compiler
27       fi
28     fi
29   fi
30 done
31     
32
33 # by default build ppp only on SunOS or Linux systems
34 system=`uname`
35 if [ "$system" = Linux -o "$system" = SunOS ]; then
36    test_tree ppp . gcc
37 fi
38