How to adequately test 'sim' changes?

Frank Ch. Eigler fche@redhat.com
Fri Dec 1 13:08:00 GMT 2000


Hi -

On Fri, Dec 01, 2000 at 12:59:58PM -0800, Chris G. Demetriou wrote:
: [...]
: Are there any details on how to configure and run those tests against
: the simulator?  I've not had much luck in that regard, to be honest,
: so most of my runs of 'make check' don't actually do much...

The key is to get dejagnu to identify the correct target for the tests.
Look for the most appropriate "*-sim.exp" in $srcdir/dejagnu/baseboards,
then run tests thusly:

	cd $build/gdb
	make check RUNTESTFLAGS="--target_board=foo-sim"

: Also, should i be building everything from a single tree, from a
: single tree for binutils + debugger & separate tree for gcc, or is all
: independent trees OK?  [...]

Separately installed tools are probably fine.  In a standard Cygnus toolchain
build tree, all the various programs (gcc, binutils, etc.) are built together
as siblings.  Perhaps such a combined source tree will exist in the public
GNU repositories too before long.


- FChE
-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6KBNQVZbdDOm/ZT0RArZbAJsHlUJLeW2clXX2dWTNYtsErLC3HgCdEq62
leQRzkqnulRhJpRYpwxcncs=
=6KRo
-----END PGP SIGNATURE-----


More information about the Gdb mailing list