Skip to content
Snippets Groups Projects
Commit 0930984e authored by Ralf Wildenhues's avatar Ralf Wildenhues Committed by Ralf Wildenhues
Browse files

Let test_summary invoke, not parse config.status contents.

contrib/*
	PR testsuite/41166
	* test_summary: Invoke config.status, rather than trying to
	parse it.  Adjust awk script.

From-SVN: r151145
parent 20d1cba1
No related branches found
No related tags found
No related merge requests found
2009-08-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR testsuite/41166
* test_summary: Invoke config.status, rather than trying to
parse it. Adjust awk script.
2009-08-18 Alexandre Oliva <aoliva@redhat.com> 2009-08-18 Alexandre Oliva <aoliva@redhat.com>
* compare-debug: Drop .eh_frame relocations too. * compare-debug: Drop .eh_frame relocations too.
......
...@@ -91,7 +91,7 @@ if $forcemail || $anychange; then :; else mailto=nobody; fi && ...@@ -91,7 +91,7 @@ if $forcemail || $anychange; then :; else mailto=nobody; fi &&
# We use cat instead of listing the files as arguments to AWK because # We use cat instead of listing the files as arguments to AWK because
# GNU awk 3.0.0 would break if any of the filenames contained `=' and # GNU awk 3.0.0 would break if any of the filenames contained `=' and
# was preceded by an invalid ``variable'' name. # was preceded by an invalid ``variable'' name.
cat ./config.status $files | ( echo @TOPLEVEL_CONFIGURE_ARGUMENTS@ | ./config.status --file=-; cat $files ) |
$AWK ' $AWK '
BEGIN { BEGIN {
lang=""; configflags = ""; lang=""; configflags = "";
...@@ -100,11 +100,8 @@ BEGIN { ...@@ -100,11 +100,8 @@ BEGIN {
print "cat <<'"'"'EOF'"'"' |"; print "cat <<'"'"'EOF'"'"' |";
'${prepend_logs+" system(\"cat $prepend_logs\"); "}' '${prepend_logs+" system(\"cat $prepend_logs\"); "}'
} }
($0 ~ /^[^ ]*\/configure / || $0 ~ /^# [^ ]*\/configure /) && NR == 1 {
configflags == "" {
configflags = $0 " "; configflags = $0 " ";
sub(/^# /, "", configflags);
sub(/^s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,/, "", configflags);
srcdir = configflags; srcdir = configflags;
sub(/\/configure .*/, "", srcdir); sub(/\/configure .*/, "", srcdir);
if ( system("test -f " srcdir "/LAST_UPDATED") == 0 ) { if ( system("test -f " srcdir "/LAST_UPDATED") == 0 ) {
......
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