per_run_hook
-BP=ibm_checker_parse.out
-BC=ibm_checker.out
+global_lock
-rm -f $BP $BC
+export CC=checker
+export CHECK_FLAGS="-Wall --beam::source=/home/tridge/beam/config.tcl --beam::parser_file=ibm_checker_parse.out --beam::complaint_file=ibm_checker.out"
-export PATH=$PATH:/home/tridge/beam-3.1.1/bin
-export LD_LIBRARY_PATH=/home/tridge/beam-3.1.1/dll
+# allow make cc_checker to take up to 8 hours
+export MAXTIME=28800
-export CFLAGS="-Wall"
-export CC_CHECKER="/home/tridge/beam-3.1.1/bin/beam_compile --beam::source=/home/tridge/beam/samba4/config.tcl -c --beam::parser_file=$BP --beam::complaint_file=$BC"
+for d in samba_3_current samba_3_next samba_3_master; do
+ export CFLAGS="$CHECK_FLAGS --beam::data=/home/tridge/beam/$d"
+ mkdir -p /home/tridge/beam/$d
+ test_tree $d source checker configure config_log config_header build cc_checker install test
+done
-test_tree samba4 source gcc configure build cc_checker install test
+for d in ldb tdb talloc libreplace lorikeet-heimdal ccache rsync; do
+ export CFLAGS="$CHECK_FLAGS --beam::data=/home/tridge/beam/$d"
+ mkdir -p /home/tridge/beam/$d
+ test_tree $d . checker configure config_log config_header build cc_checker install test
+done
-export CC_CHECKER="/home/tridge/beam-3.1.1/bin/beam_compile --beam::source=/home/tridge/beam/samba3/config.tcl -c --beam::parser_file=$BP --beam::complaint_file=$BC"
-
-test_tree samba source gcc configure build cc_checker install test
+global_unlock