tree=$1
case "$tree" in
- samba* | rsync | libreplace | talloc | tdb | ldb | pidl | ccache* | waf*)
+ samba* | rsync | libreplace | talloc | tdb* | ldb | pidl | ccache* | waf*)
echo "git"
return 0
;;
return 0
fi
- if test -f "$lckf"; then
+ # We need to assert that the file is > 0 size, as otherwise we never
+ # recover from disk full situations
+ if test -f "$lckf" && test -s "$lckf"; then
test x$machine = x$host || {
echo "lock file $lckf is valid for other machine $machine"
return 1
MMTIME=$MAXTIME
# some trees don't need as much time
case "$tree" in
- rsync | tdb | talloc | libreplace | ccache* | waf*)
+ rsync | tdb* | talloc | libreplace | ccache* | waf*)
if [ "$compiler" != "checker" ]; then
MMTIME=`expr $MMTIME / 5`
fi
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*|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
- samba_3_master*)
- callanalyse `find $builddir/bin -name \*.so*` $builddir/bin/* | grep -v -f $srcdir/callcatcher-exceptions.grep > $builddir/coverage/unused-fns.txt
+ tdb*|talloc|ldb)
+ callanalyse `find $builddir/bin -name \*.so*` $builddir/bin/* > $builddir/coverage/unused-fns.txt
;;
- samba_4*)
- callanalyse `find $builddir/bin -name \*.so*` $builddir/bin/* | grep -v -f $srcdir/callcatcher-exceptions.grep > $builddir/coverage/unused-fns.txt
+ samba_3_master|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
rc=$?