/usr/share/sumo/tools/build/dailyUpdateMakeGCC is in sumo-tools 0.15.0~dfsg-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | #!/bin/bash
PREFIX=$1
export FILEPREFIX=$2
export SMTP_SERVER=$3
REMOTEDIR=$4
MAKELOG=$PREFIX/${FILEPREFIX}make.log
MAKEALLLOG=$PREFIX/${FILEPREFIX}makealloptions.log
STATUSLOG=$PREFIX/${FILEPREFIX}status.log
TESTLOG=$PREFIX/${FILEPREFIX}test.log
export SUMO_BATCH_RESULT=$PREFIX/${FILEPREFIX}batch_result
export SUMO_REPORT=$PREFIX/${FILEPREFIX}report
export SUMO_BINDIR=$PREFIX/sumo/bin
if test $# -ge 5; then
NIGHTDIR=$5
fi
rm -f $STATUSLOG
echo -n "$FILEPREFIX, " > $STATUSLOG
date >> $STATUSLOG
echo "--" >> $STATUSLOG
cd $PREFIX/sumo
make distclean &> /dev/null
make -f Makefile.cvs clean &> /dev/null
basename $MAKELOG >> $STATUSLOG
svn up &> $MAKELOG || (echo "svn up failed" | tee -a $STATUSLOG; tail -10 $MAKELOG)
if test `wc -l < $MAKELOG` -le 13; then # this number needs an extra +4 for every external reference
# echo "no changes since last run, skipping build and test"
exit
fi
tools/build/checkSvnProps.py
make -f Makefile.cvs >> $MAKELOG 2>&1 || (echo "autoreconf failed" | tee -a $STATUSLOG; tail -10 $MAKELOG)
./configure --prefix=$PREFIX/sumo \
--with-gtest=$PREFIX/gtest >> $MAKELOG 2>&1 || (echo "configure failed" | tee -a $STATUSLOG; tail -10 $MAKELOG)
if make >> $MAKELOG 2>&1; then
$PREFIX/sumo/unittest/src/sumo-unittest >> $MAKELOG 2>&1 || (echo "unit tests failed" | tee -a $STATUSLOG; tail -10 $MAKELOG)
if make install >> $MAKELOG 2>&1; then
if test -d "$NIGHTDIR"; then
make distcheck >> $MAKELOG 2>&1 || (echo "make distcheck failed" | tee -a $STATUSLOG; tail -10 $MAKELOG)
if make dist-complete >> $MAKELOG 2>&1; then
for f in $PREFIX/sumo/sumo-*.tar.* $PREFIX/sumo/sumo-*.zip; do
if test $f -nt $PREFIX/sumo/configure; then
cp $f $NIGHTDIR
scp -q $f $REMOTEDIR
fi
done
rsync -r $PREFIX/sumo/docs/wiki/docs $REMOTEDIR
rsync -r $PREFIX/sumo/docs/pydoc $PREFIX/sumo/docs/doxygen $REMOTEDIR/docs
else
echo "make dist-complete failed" | tee -a $STATUSLOG; tail -10 $MAKELOG
fi
fi
else
echo "make install failed" | tee -a $STATUSLOG; tail -10 $MAKELOG
fi
else
echo "make failed" | tee -a $STATUSLOG; tail -20 $MAKELOG
fi
echo `grep -c '[Ww]arn[iu]ng:' $MAKELOG` warnings >> $STATUSLOG
scp -q $MAKELOG $REMOTEDIR
echo "--" >> $STATUSLOG
if test -e $SUMO_BINDIR/sumo -a $SUMO_BINDIR/sumo -nt $PREFIX/sumo/configure; then
# run tests
export PATH=$PREFIX/texttest/bin:$PATH
export TEXTTEST_TMP=$PREFIX/texttesttmp
find $SUMO_BATCH_RESULT -mtime +20 -type f | xargs -r rm
rm -rf $SUMO_REPORT/* $TEXTTEST_TMP/*
tests/runTests.sh -b $FILEPREFIX &> $TESTLOG
if which Xvfb &>/dev/null; then
tests/runTests.sh -a sumo.gui -b $FILEPREFIX >> $TESTLOG 2>&1
fi
tests/runTests.sh -b $FILEPREFIX -coll >> $TESTLOG 2>&1
find $TEXTTEST_TMP -name batchreport."*" -exec echo -n '{} ' \; -exec head -1 '{}' \; | sort >> $STATUSLOG
rsync -r $SUMO_REPORT $REMOTEDIR
fi
echo "--" >> $STATUSLOG
basename $MAKEALLLOG >> $STATUSLOG
export CXXFLAGS="-Wall -W -pedantic -Wno-long-long"
./configure --program-suffix=D --prefix=$PREFIX/sumo \
--disable-double-precision --disable-subsecond --disable-internal-lanes \
--enable-debug --enable-memcheck --enable-messages &> $MAKEALLLOG || (echo "configure with all options failed" | tee -a $STATUSLOG; tail -10 $MAKEALLLOG)
if make >> $MAKEALLLOG 2>&1; then
make install >> $MAKEALLLOG 2>&1 || (echo "make install with all options failed" | tee -a $STATUSLOG; tail -10 $MAKEALLLOG)
else
echo "make with all options failed" | tee -a $STATUSLOG; tail -20 $MAKEALLLOG
fi
echo `grep -c '[Ww]arn[iu]ng:' $MAKEALLLOG` warnings >> $STATUSLOG
scp -q $MAKEALLLOG $REMOTEDIR
echo "--" >> $STATUSLOG
scp -q $STATUSLOG $REMOTEDIR
|