summaryrefslogtreecommitdiff
path: root/contrib/test_summary
diff options
context:
space:
mode:
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-27 18:59:32 +0000
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-27 18:59:32 +0000
commite29ced4399c902a15d79fd183e2553c5165308d2 (patch)
tree10572916a891c4a0873a4912a510d21b0451b507 /contrib/test_summary
parent4aad2c8af8bcef4cf146827040a044b19a7f8540 (diff)
downloadgcc-e29ced4399c902a15d79fd183e2553c5165308d2.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151145 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/test_summary')
-rwxr-xr-xcontrib/test_summary7
1 files changed, 2 insertions, 5 deletions
diff --git a/contrib/test_summary b/contrib/test_summary
index f7cddf4af78..c4b3c2c9369 100755
--- a/contrib/test_summary
+++ b/contrib/test_summary
@@ -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
# GNU awk 3.0.0 would break if any of the filenames contained `=' and
# was preceded by an invalid ``variable'' name.
-cat ./config.status $files |
+( echo @TOPLEVEL_CONFIGURE_ARGUMENTS@ | ./config.status --file=-; cat $files ) |
$AWK '
BEGIN {
lang=""; configflags = "";
@@ -100,11 +100,8 @@ BEGIN {
print "cat <<'"'"'EOF'"'"' |";
'${prepend_logs+" system(\"cat $prepend_logs\"); "}'
}
-($0 ~ /^[^ ]*\/configure / || $0 ~ /^# [^ ]*\/configure /) &&
-configflags == "" {
+NR == 1 {
configflags = $0 " ";
- sub(/^# /, "", configflags);
- sub(/^s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,/, "", configflags);
srcdir = configflags;
sub(/\/configure .*/, "", srcdir);
if ( system("test -f " srcdir "/LAST_UPDATED") == 0 ) {