add per_run_hook and global_lock to coverage.fns
[build-farm.git] / SerNet-solaris8.fns
index ada9acb79c759ae7639213558f2757aa868d64dc..66464f4c25a1633b53b8f24e907f17e6bc8cf334 100644 (file)
@@ -2,22 +2,44 @@ per_run_hook
 
 global_lock
 
-MAXTIME=36000
+MAXTIME=42200
 TORTURE_MAXTIME=3600
-SMBD_MAXTIME=18000
-SAMBA_MAXTIME=18000
-export MAXTIME TORTURE_MAXTIME SMBD_MAXTIME SAMBA_MAXTIME
+SMBD_MAXTIME=42200
+SAMBA_MAXTIME=42200
 
-for compiler in cc gcc; do
-       #export config="--with-included-popt"
-       . common.fns
+# this is needed because python depends on openssl for some modules like hashlib
+# that in turn samba pretty much depends on
+# We need also /usr/local/lib for gcc as it needs libgcc_s.(so|a)
+
+LD_LIBRARY_PATH=/usr/local/ssl/lib:/usr/local/lib
+export MAXTIME TORTURE_MAXTIME SMBD_MAXTIME SAMBA_MAXTIME LD_LIBRARY_PATH
+PREHOOKS="configure"
 
-       test_tree samba_4_0_waf source4 $compiler
+prehook_configure()
+{
+case "$tree" in
+       samba_4*)
+               ;;
+       *)
+               ;;
+esac
+}
 
-       test_tree samba_3_current source $compiler
-       test_tree samba_3_next source $compiler
-       test_tree samba_3_master source $compiler
+CFLAGS="-g $CFLAGS"
+export CFLAGS
+compilers="cc gcc"
 
+for compiler in $compilers; do
+       #export config="--with-included-popt"
+       . common.fns
+       TDB_NO_FSYNC=1
+       export TDB_NO_FSYNC
+       test_tree samba_4_0_test . $compiler
+       test_tree samba_3_current source3 $compiler
+       test_tree samba_3_next source3 $compiler
+       test_tree samba_3_master source3 $compiler
+       TDB_NO_FSYNC=0
+       export TDB_NO_FSYNC
 done
 
 global_unlock