add caching procs to test suite
authorTom Tromey <tromey@redhat.com>
Tue, 13 Aug 2013 15:55:52 +0000 (15:55 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 13 Aug 2013 15:55:52 +0000 (15:55 +0000)
commit17e1c970ef41149e5eb6b5f908301e6a86a7f528
tree23b999d13e17d616ef89dcc37aab806ca63973d4
parent4e2348988f2e09ced290e012981de941c96bc70c
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.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/cache.exp [new file with mode: 0644]
gdb/testsuite/lib/cell.exp
gdb/testsuite/lib/gdb.exp
gdb/testsuite/lib/opencl.exp