Commit 79bd9046 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Store the stderr output generated during the build in a separate file.

Introduce a final "Pack" task that will result in a warning if any
output to stderr exists.  Enable core files.  Recognize core files
even when the file name includes a pid.  Store the config.log file
from liboop.
parent 0a9dd55f
......@@ -51,7 +51,7 @@ done
rm -rf r
mkdir r
exec > r/shlog.txt 2>&1
exec > r/shlog.txt 2> r/sherr.txt
VERS=`echo lyskom-server*tar.gz|sed s/lyskom-server-//|sed s/.tar.gz//`
BASE=lyskom-server-$VERS
......@@ -171,6 +171,7 @@ pfx=`pwd`/pfx
status=good
echo 'FORMAT 2' > r/mainlog.txt
ulimit -c unlimited
dotask 1 "unzip" "" "gzip -d $BASE.tar.gz"
dotask 1 "unpack" "" "tar xf $BASE.tar"
......@@ -285,12 +286,6 @@ fi
dotask 1 "install" "" "cd $BASE && make install"
find pfx -type f -print | sort > r/installedfiles.txt
if test `wc -l < r/installedfiles.txt` -eq 0
then
rm r/installedfiles.txt
fi
# FIXME: run distcheck.
# FIXME: compare the contents of the distcheck-generated tar file
# with the one we distributed.
......@@ -298,10 +293,18 @@ fi
# Collect stuff.
timeecho Collecting results
logstart Pack
find pfx -type f -print | sort > r/installedfiles.txt
if test `wc -l < r/installedfiles.txt` -eq 0
then
rm r/installedfiles.txt
fi
mv $BASE/config.cache r/configcache.txt
mv $BASE/config.log r/configlog.txt
mv $BASE/src/libraries/libisc-new/config.log r/iscconfiglog.txt
mv $BASE/src/libraries/liboop/config.log r/oopconfiglog.txt
mv $BASE/config.h r/config-h.txt
for file in $BASE/src/server/testsuite/*.log
do
......@@ -310,10 +313,14 @@ do
mv $file r/`basename $file`.txt
fi
done
find $BASE -name core -print > r/corefiles.txt
find $BASE -name core\* -ls > r/corefiles.txt
if test `wc -l < r/corefiles.txt` -eq 0
then
rm r/corefiles.txt
else
# FIXME (bug 1066): Since the test suite produces a core file this
# is not a good thing to do.
: echo core files found >&2
fi
env > r/environ.txt
echo $PATH > r/path.txt
......@@ -322,6 +329,15 @@ type makeinfo >> r/makeinfo.txt 2>&1
mv buildid.txt r/buildid.txt
warnings=`wc -l < r/sherr.txt`
if test $warnings -gt 0
then
logwarn $warnings
else
rm r/sherr.txt
logpass
fi
echo END >> r/mainlog.txt
(cd r && tar cf - *) > xenofarm_result.tar
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment