* Group warnings in html report for the farm
This commit is contained in:
parent
a832ca0555
commit
1eb35861a7
|
@ -12,7 +12,7 @@ fi
|
|||
|
||||
# build
|
||||
if [ -f config-user.mk ]; then
|
||||
make mrproper
|
||||
make mrproper > /dev/null 2>&1
|
||||
fi
|
||||
./configure --prefix=/usr && \
|
||||
make -j 4
|
||||
|
|
|
@ -12,7 +12,16 @@ for a in log/*.log ; do
|
|||
echo "<h2>warnings: $warnings</h2>" >> $b
|
||||
echo "<h2>errors: $errors</h2>" >> $b
|
||||
echo "<h2>return: "`cat $r`"</h2>" >> $b
|
||||
echo "<h2>warnings:</h2>" >> $b
|
||||
echo "<pre>" >> $b
|
||||
grep warning: $a | awk '{
|
||||
gsub(/warning\: (.*)$/,"<b style=color:yellow>warning: &</b>");
|
||||
print}' >> $b
|
||||
echo "<h2>errors:</h2>" >> $b
|
||||
grep error: $a | awk '{
|
||||
gsub(/error\: (.*)$/,"<b style=color:red>error: &</b>");
|
||||
print}' >> $b
|
||||
echo "<h2>build:</h2>" >> $b
|
||||
cat $a | awk '{
|
||||
gsub(/warning\: (.*)$/,"<b style=color:yellow>warning: &</b>");
|
||||
gsub(/error\: (.*)$/,"<b style=color:red>error: &</b>");
|
||||
|
@ -30,10 +39,11 @@ EOF
|
|||
|
||||
for a in log/*.html ; do
|
||||
[ $a = log/index.html ] && continue
|
||||
warnings=$(cat $a|grep warning: |wc -l)
|
||||
errors=$(cat $a|grep error: |wc -l)
|
||||
f=$(echo $a | sed -e 's,log/,,')
|
||||
l=log/$(echo $f | sed -e 's,.html,.log,')
|
||||
n=$(echo $f | sed -e 's,.html,,' | sed -e 's,-, ,g')
|
||||
warnings=$(cat $l|grep warning: |wc -l)
|
||||
errors=$(cat $l|grep error: |wc -l)
|
||||
echo "<h2><a href=$f>$n</a></h2>" >> log/index.html
|
||||
echo "<h3> warnings: $warnings</h3>" >> log/index.html
|
||||
echo "<h3> errors: $errors</h3>" >> log/index.html
|
||||
|
|
Loading…
Reference in New Issue