diff options
author | Doug Evans <xdje42@gmail.com> | 2015-07-25 12:07:28 -0700 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2015-07-25 12:07:28 -0700 |
commit | b8cc7b2e9afab37eb9a7cff0d3ae4ebbcf7d494f (patch) | |
tree | 5ba355c6b008935eb10bf9a3d219342550231a4d /gdb/testsuite/lib | |
parent | b558ff043d41ba8d17a82f5f9ae5f9dade66160e (diff) | |
download | gdb-b8cc7b2e9afab37eb9a7cff0d3ae4ebbcf7d494f.zip gdb-b8cc7b2e9afab37eb9a7cff0d3ae4ebbcf7d494f.tar.gz gdb-b8cc7b2e9afab37eb9a7cff0d3ae4ebbcf7d494f.tar.bz2 |
Revert: * Makefile.in (check/%.exp): Pass directory for GDB_PARALLEL.
Regressions, e.g.,
http://gdb-build.sergiodj.net/builders/Fedora-x86_64-m32/builds/1501
gdb/testsuite/ChangeLog:
Revert:
* Makefile.in (check/%.exp): Pass directory for GDB_PARALLEL.
(workers/%.worker, build-perf): New rule.
(GDB_PERFTEST_MODE): New variable.
(check-perf): Use it.
(clean): Clean up gdb.perf parallel build subdirs.
* lib/build-piece.exp: New file.
* lib/cache.exp (gdb_do_cache): Include $GDB_PARALLEL in path name.
* lib/gdb.exp (standard_output_file): Include $GDB_PARALLEL in path
name.
(standard_temp_file): Ditto.
(GDB_PARALLEL handling): Make outputs,temp,cache directories as subdirs
of $GDB_PARALLEL.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/build-piece.exp | 39 | ||||
-rw-r--r-- | gdb/testsuite/lib/cache.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 9 |
3 files changed, 4 insertions, 46 deletions
diff --git a/gdb/testsuite/lib/build-piece.exp b/gdb/testsuite/lib/build-piece.exp deleted file mode 100644 index a81530c..0000000 --- a/gdb/testsuite/lib/build-piece.exp +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright (C) 2014 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# Utility to bootstrap building a piece of a performance test in a -# parallel build. -# See testsuite/Makefile.in:workers/%.worker. -# WORKER is set by the makefile and is -# "{program_name}/{program_name}-{worker_nr}". - -regexp "^\(.+\)/\(.+\)-\(\[0-9\]+\)$" $WORKER entire_match PROGRAM_NAME pname2 WORKER_NR - -if { ![info exists entire_match] || $entire_match != $WORKER } { - error "Bad value for WORKER: $WORKER" -} -if { $PROGRAM_NAME != $pname2 } { - error "Bad value for WORKER: $WORKER" -} - -# $subdir is set to "lib", because that is where this file lives, -# which is not what tests expect. -set subdir "gdb.perf" - -# $gdb_test_file_name is set to this file, build-piece, which is not what -# tests expect. -set gdb_test_file_name $PROGRAM_NAME - -source $srcdir/$subdir/${gdb_test_file_name}.exp diff --git a/gdb/testsuite/lib/cache.exp b/gdb/testsuite/lib/cache.exp index 9565b39..8df04b9 100644 --- a/gdb/testsuite/lib/cache.exp +++ b/gdb/testsuite/lib/cache.exp @@ -35,7 +35,7 @@ proc gdb_do_cache {name} { } if {[info exists GDB_PARALLEL]} { - set cache_filename [file join $objdir $GDB_PARALLEL cache $cache_name] + set cache_filename [file join $objdir cache $cache_name] if {[file exists $cache_filename]} { set fd [open $cache_filename] set gdb_data_cache($cache_name) [read -nonewline $fd] diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 1f3f838..c5cfa4b 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3980,7 +3980,7 @@ proc standard_output_file {basename} { global objdir subdir gdb_test_file_name GDB_PARALLEL if {[info exists GDB_PARALLEL]} { - set dir [file join $objdir $GDB_PARALLEL outputs $subdir $gdb_test_file_name] + set dir [file join $objdir outputs $subdir $gdb_test_file_name] file mkdir $dir return [file join $dir $basename] } else { @@ -3994,7 +3994,7 @@ proc standard_temp_file {basename} { global objdir GDB_PARALLEL if {[info exists GDB_PARALLEL]} { - return [file join $objdir $GDB_PARALLEL temp $basename] + return [file join $objdir temp $basename] } else { return $basename } @@ -5119,10 +5119,7 @@ if {[info exists GDB_PARALLEL]} { if {[is_remote host]} { unset GDB_PARALLEL } else { - file mkdir \ - [file join $GDB_PARALLEL outputs] \ - [file join $GDB_PARALLEL temp] \ - [file join $GDB_PARALLEL cache] + file mkdir outputs temp cache } } |