This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb/testsuite ChangeLog lib/cell.exp lib/g ...
- From: tromey at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Tue, 13 Aug 2013 15:55:52 +0000
- Subject: src/gdb/testsuite ChangeLog lib/cell.exp lib/g ...
CVSROOT: /cvs/src
Module name: src
Changes by: tromey@sourceware.org 2013-08-13 15:55:52
Modified files:
gdb/testsuite : ChangeLog
gdb/testsuite/lib: cell.exp gdb.exp opencl.exp
Added files:
gdb/testsuite/lib: cache.exp
Log message:
add caching procs to test suite
In the fully parallel mode, each .exp file can be run in parallel (at
least conceptually -- the actual split may not be so severe). This
means that procs that compute a result and cache it are not going to
function very well. The test they run will be invoked over and over.
This patch introduces a generic caching mechanism and changes various
result-caching procs to use it. This is a cleanup to introduce the
basic change; the results aren't written to disk yet.
A caching proc is defined using gdb_caching_proc, which works like
"proc", except that it caches the result of the body.
* lib/cache.exp: New file.
* lib/cell.exp (skip_cell_tests): Use gdb_caching_proc.
* lib/gdb.exp: Load cache.exp.
(support_complex_tests, is_ilp32_target, is_lp64_target)
(is_amd64_regs_target, skip_altivec_tests, skip_vsx_tests)
(gdb_skip_xml_test): Use gdb_caching_proc.
* lib/opencl.exp (skip_opencl_tests): Use gdb_caching_proc.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3768&r2=1.3769
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/lib/cache.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/lib/cell.exp.diff?cvsroot=src&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/lib/gdb.exp.diff?cvsroot=src&r1=1.237&r2=1.238
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/lib/opencl.exp.diff?cvsroot=src&r1=1.6&r2=1.7