b011b8ce18635ab7cbf0541fbd96e439d4aab0c1
[build-farm.git] / SerNet-solaris8.fns
1 per_run_hook
2
3 global_lock
4
5 MAXTIME=42200
6 TORTURE_MAXTIME=3600
7 SMBD_MAXTIME=42200
8 SAMBA_MAXTIME=42200
9
10 # this is needed because python depends on openssl for some modules like hashlib
11 # that in turn samba pretty much depends on
12 # We need also /usr/local/lib for gcc as it needs libgcc_s.(so|a)
13
14 LD_LIBRARY_PATH=/usr/local/ssl/lib:/usr/local/lib
15 export MAXTIME TORTURE_MAXTIME SMBD_MAXTIME SAMBA_MAXTIME LD_LIBRARY_PATH
16 PREHOOKS="configure"
17
18 prehook_configure()
19 {
20 case "$tree" in
21         samba_4*)
22                 (cd ${builddir}/..; gpatch -p 1 <$HOME/build_farm/patch)
23                 ;;
24         *)
25                 ;;
26 esac
27 }
28
29 CFLAGS="-g $CFLAGS"
30 export CFLAGS
31 compilers="cc gcc"
32
33 for compiler in $compilers; do
34         #export config="--with-included-popt"
35         . common.fns
36         TDB_NO_FSYNC=1
37         export TDB_NO_FSYNC
38         test_tree samba_4_0_test source4 $compiler
39         test_tree samba_3_current source $compiler
40         test_tree samba_3_next source $compiler
41         test_tree samba_3_master source $compiler
42         TDB_NO_FSYNC=0
43         export TDB_NO_FSYNC
44 done
45
46 global_unlock