Skip to content
Snippets Groups Projects
Commit 386c7605 authored by Christian Engwer's avatar Christian Engwer
Browse files

improved error detection

[[Imported from SVN: r2174]]
parent b523a6e6
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ check-log-libs-am:
$(LOG_SET_OPTIONS); \
for target in $(LTLIBRARIES); do \
$(MAKE) $$i >& $(LOG_FILE); \
$(LOG_STORE) "build" "$$target" "$$path" $(LOG_FILE) >& /dev/null; \
$(LOG_STORE) "lib" "$$target" "$$path" $(LOG_FILE) >& /dev/null; \
done;
check-log-build-am:
......@@ -48,7 +48,7 @@ check-log-build-am:
check-log-test-am:
@LOG () { \
( echo "$$1"; echo ) > $(LOG_FILE).2; \
echo "$$1" > $(LOG_FILE).2; \
cat $(LOG_FILE) >> $(LOG_FILE).2; \
mv $(LOG_FILE).2 $(LOG_FILE); \
}; \
......
......@@ -47,16 +47,22 @@ if ($mode ne "dir")
{
## parse logfile and count errors and warnings
my $logfile=shift || die $USAGE;
my $makeerrors=0;
open LOG, $logfile || die "Error reading $logfile";
while(<LOG>)
{
$log = $log.$_;
$errors++ if (/error/i);
$warnings++ if (/warning/i);
$errors++ if (/error/i && ! /^make/);
$makeerrors++ if (/error/i && /^make/);
$errors++ if (/ld: cannot open/);
$warnings++ if (/warning/i && ! /^make/);
}
if ($makeerrors > $errors + $warnings) {
$errors = $makeerrors;
}
close LOG;
}
else
if ($mode eq "dir")
{
## sum all errors and warings in entries with this newpath as path
my $newpath = $path.'/'.$module;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment