tree=$1
case "$tree" in
- samba* | rsync | libreplace | talloc | tdb* | ldb | pidl | ccache* | waf*)
+ samba* | rsync | libreplace | talloc | tdb | ntdb | ldb | pidl | ccache* | waf*)
echo "git"
return 0
;;
MMTIME=$MAXTIME
# some trees don't need as much time
case "$tree" in
- rsync | tdb* | talloc | libreplace | ccache* | waf*)
+ rsync | tdb | ntdb | talloc | libreplace | ccache* | waf*)
if [ "$compiler" != "checker" ]; then
MMTIME=`expr $MMTIME / 5`
fi
lorikeet-heimdal*)
lcov --directory $builddir --capture --output-file $builddir/$tree.lcov.info
;;
- samba_3_master*)
- lcov --base-directory $builddir --directory $builddir/.. --capture --output-file $builddir/$tree.lcov.info
- ;;
- samba_4*|tdb*|talloc|ldb|libreplace)
+ samba_4*|tdb|ntdb|talloc|ldb|libreplace)
lcov --base-directory $builddir/bin --directory $builddir/bin --capture --output-file $builddir/$tree.lcov.info
;;
waf)
action_callcatcherreport() {
if [ "$CALLCATCHER_REPORT" = "yes" ]; then
case "$tree" in
- tdb*|talloc|ldb)
+ tdb|ntdb|talloc|ldb)
callanalyse `find $builddir/bin -name \*.so*` $builddir/bin/* > $builddir/coverage/unused-fns.txt
;;
- samba_3_master|samba_4*)
+ samba_4*)
callanalyse `find $builddir/bin -name \*.so*` $builddir/bin/* > $builddir/coverage/all-unused-fns.txt
grep -v -f $srcdir/callcatcher-exceptions.grep $builddir/coverage/all-unused-fns.txt > $builddir/coverage/unused-fns.txt
;;
esac
}
+#############################
+# Do nothing (needed if we have nothing to do for extra_actions)
+#############################
+
+action_none() {
+ return 0;
+}
+
###########################
# do a test build of a particular tree
# This is the master function called by generic.fns or
# darn, this affects sparse files too! disable it
# ulimit -f 100000 2> /dev/null
- # try and limit the number of open files to 250. That means we'll discover
- # fd leaks faster
- ulimit -n 250 2> /dev/null
+ # try and limit the number of open files to 500, up from 250. That means we'll discover
+ # fd leaks faster while allowing our very complex make test to run
+ ulimit -n 500 2> /dev/null
# Keep stuff private
umask 077
samba_4*)
sw_config="$config --enable-selftest"
;;
- samba_3_master)
- sw_config="$config --enable-selftest"
- ;;
samba_3*)
sw_config="$config --enable-socket-wrapper"
sw_config="$sw_config --enable-nss-wrapper"
#Action == what to do ie. configure config_log ...
actions="$*"
+ extra_actions="$EXTRA_ACTIONS"
if [ "$actions" = "" ]; then
- actions="configure config_log config_header build install test $EXTRA_ACTIONS"
+ actions="configure config_log config_header build install test"
+ fi
+
+ if [ "$extra_actions" = "" ]; then
+ extra_actions="none"
fi
# start the build
fi
done
+ for action in $extra_actions; do
+ if [ "x$action" = "x" ]; then
+ break;
+ fi
+
+ echo Running action $action
+
+ date
+
+ cd $builddir || exit 1
+ export srcdir
+ df .
+ mount
+ vmstat
+
+ if [ "x$PREHOOKS" != "x" ]; then
+ for hooks in $PREHOOKS; do
+ if [ "x$hooks" = "x$action" ]; then
+ ( prehook_$action )
+ fi
+ done
+ fi
+
+ ( action_$action )
+ action_status=$?
+
+ if [ "x$POSTHOOKS" != "x" ]; then
+ for hooks in $POSTHOOKS; do
+ if [ "x$hooks" = "x$action" ]; then
+ ( posthook_$action )
+ fi
+ done
+ fi
+
+ df .
+
+ if [ $action_status != 0 ]; then
+ echo "ACTION FAILED: $action";
+ echo " return code $action_status $action";
+ else
+ echo "ACTION PASSED: $action";
+ fi
+
+ if [ $action_status != 0 ]; then
+ break;
+ fi
+ done
+
if [ "$noclean" = "yes" ]; then
echo cleanup skipped!
old_trees="web popt distcc samba-gtk smb-build lorikeet-heimdal samba_3_2"
old_trees="$old_tree samba_3_2_test samba4 samba_4_0_waf samba_4_0_waf.metze"
- old_trees="$old_tree samba_3_X_test samba_3_X_devel samba_3_X_devel samba_3_waf"
+ old_trees="$old_tree samba_3_X_test samba_3_X_devel samba_3_X_devel samba_3_waf samba_3_master tdb2"
+ old_trees="$old_tree samba_3_current samba_3_next samba_4_0_test"
for d in $old_trees; do
delete_old_tree $d
done