binutils-gdb/gdb/testsuite
Tom Tromey 5e92f71a86 introduce parallel mode
This introduces parallel mode for the test suite.

It doesn't fully work yet in the sense that if you do a fully parallel
run, you will encounter some file-name clashes, but this has to start
somewhere, and it seemed best to add some infrastructure now, so that
you can follow along and test subsequent patches if you care to.

This patch has two parts.

First, it checks for the GDB_PARALLEL variable.  If this is set (say,
on the runtest command line), then the test suite assumes "parallel
mode".  In this mode, files are put into a subdirectory named after
the test.  That is, for DIR/TEST.exp, the outputs are put into
./outputs/DIR/TEST/.

This first part has various follow-on changes coming in subsequent
patches.  This is why the code in this patch also makes "temp" and
"cache" directories.

Second, this adds an "inotify" mode.  If you have the inotifywait
command (part of inotify-tools), you can set the GDB_INOTIFY variable.
This will tell the test suite to watch for changes outside of the
allowed output directories.

This mode is useful for debugging the test suite, as it issues a
report whenever a possibly parallel-unsafe file open is done.

2013-08-13  Tom Tromey  <tromey@redhat.com>
	    Yao Qi  <yao@codesourcery.com>

	* lib/cache.exp (gdb_do_cache): Handle GDB_PARALLEL.
	* lib/gdb.exp: Handle GDB_PARALLEL.
	(default_gdb_version): Kill inotify_pid if it exists.
	(default_gdb_exit): Emit warning if the inotify log is not
	empty.
	(standard_output_file): Respect GDB_PARALLEL.
	(standard_temp_file): Likewise.
	(gdb_init): Start inotifywait if requested.

	* gdbint.texinfo (Testsuite): Use @table, not @itemize.
	Document GDB_PARALLEL and GDB_INOTIFY.
2013-08-13 16:12:04 +00:00
..
boards * boards/native-stdio-gdbserver.exp (${board}_build_remote_cmd): Pass 2013-07-24 21:59:30 +00:00
config Remove superfluous semicolons from testsuite throughout. 2013-06-07 17:31:09 +00:00
gdb.ada simple test suite fix in gdb.ada 2013-07-16 18:52:18 +00:00
gdb.arch gdb: clean up x86 cpuid implementations 2013-06-19 22:29:36 +00:00
gdb.asm Remove superfluous semicolons from testsuite throughout. 2013-06-07 17:31:09 +00:00
gdb.base Handle '#' flag for printf of pointer types. 2013-08-13 16:05:23 +00:00
gdb.btrace record-btrace: fix assertion when enabling recording after re-run 2013-03-26 07:15:09 +00:00
gdb.cell Update years in copyright notice for the GDB files. 2013-01-01 06:33:28 +00:00
gdb.cp Remove superfluous semicolons from testsuite throughout. 2013-06-07 17:31:09 +00:00
gdb.disasm Remove superfluous semicolons from testsuite throughout. 2013-06-07 17:31:09 +00:00
gdb.dwarf2 fix recursively_compute_inclusions and add dwz test case 2013-08-07 19:57:51 +00:00
gdb.fortran Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
gdb.gdb fix python-selftest.exp failure with gdbserver 2013-06-18 14:12:09 +00:00
gdb.go Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
gdb.hp Remove superfluous semicolons from testsuite throughout. 2013-06-07 17:31:09 +00:00
gdb.java Fix formating in copyright headers. 2013-06-07 14:39:33 +00:00
gdb.linespec gdb/ 2013-05-07 17:04:29 +00:00
gdb.mi * gdb.mi/mi-var-child-f.exp: Pass f90 to gdb_compile instead 2013-07-26 18:15:07 +00:00
gdb.modula2 Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
gdb.multi Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
gdb.objc Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
gdb.opencl Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
gdb.opt Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
gdb.pascal Remove superfluous semicolons from testsuite throughout. 2013-06-07 17:31:09 +00:00
gdb.python * gdb.python/py-value-cc.cc: Renamed from py-value.cc. 2013-08-07 23:51:45 +00:00
gdb.reverse * gdb.reverse/shr.h: New file. 2013-05-06 22:07:13 +00:00
gdb.server Upload tsv earlier in remote_start_remote 2013-06-25 13:01:28 +00:00
gdb.stabs Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
gdb.threads gdb/testsuite/gdb.threads: Ensure TLS tests link against pthreads. 2013-07-18 15:49:22 +00:00
gdb.trace gdb/ 2013-08-09 00:35:40 +00:00
gdb.xml 2013-05-06 Sandra Loosemore <sandra@codesourcery.com> 2013-05-07 01:12:41 +00:00
lib introduce parallel mode 2013-08-13 16:12:04 +00:00
ChangeLog introduce parallel mode 2013-08-13 16:12:04 +00:00
Makefile.in * Makefile.in (ALL_SUBDIRS): Add gdb.go. 2013-08-12 20:54:06 +00:00
TODO
aclocal.m4
configure Add tests for the new record-btrace target. 2013-03-11 08:59:00 +00:00
configure.ac Add tests for the new record-btrace target. 2013-03-11 08:59:00 +00:00
dg-extract-results.sh Merge dg-extract-results.sh from gcc upstream (svn 195224). 2013-01-17 14:31:11 +00:00