This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] Testsuite enhancements checked in
- To: Insight Maling List <insight at sources dot redhat dot com>
- Subject: [PATCH] Testsuite enhancements checked in
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Mon, 7 May 2001 13:48:57 -0700 (PDT)
I have checked in my massive testsuite enhancement and update. Sorry for
the huge patch, but I was beginning to waste too much time trying to do
this incrementally.
What all this does now:
- Can run testsuites for natives and crosses
- Will use Xvfb (if found) on unix
- Lots of testsuite fixes
- Runs on installed toolchains
- Runs on Cygwin
Executive summary: See testsuite/gdb.gdbtk/README, which documents how to
run and write tests.
(Short: set GDB_DISPLAY to a display to use if Xvfb not available. On
Cygwin, set GDB_DISPLAY to anything at all to run tests.)
Please give it a try. I've only tested on native linux/cygwin and a
simulator on both cygwin and linux. If you encounter any problems, please
let me know.
Keith
CVSROOT: /cvs/src
Module name: src
Changes by: kseitz@sources.redhat.com 2001-05-07 13:39:32
Modified files:
gdb/testsuite/gdb.gdbtk: ChangeLog Makefile.in browser.exp
browser.test c_variable.exp
c_variable.test configure configure.in
console.exp console.test
cpp_variable.exp cpp_variable.test defs
srcwin.exp srcwin.test srcwin2.test
srcwin3.test
Added files:
gdb/testsuite/gdb.gdbtk: README list0.c list0.h list1.c
Log message:
* README: New file.
* configure.in: Check for executable filename extension.
* Makefile.in: Add filename extensions.
* configure: Regenerated.
* defs: Fix typo setting _test(verbose).
(gdbtk_test_file): New proc to load executables into gdbtk.
(gdbtk_test_run): New proc to run executables on gdbtk.
* browser.exp: Don't check if DISPLAY is set: let
gdbtk_initialize_display do it all for us.
Call gdbtk_done when finished with tests.
* c_variable.exp: Ditto.
* console.exp: Ditto.
* cpp_variable.exp: Ditto.
Only run tests if c++ is supported in the configuration.
* srcwin.exp: Ditto the DISPLAY stuff.
Accumulate all test results for the end and report them then.
* browser.test: Use gdbtk_test_file and gdbtk_test_run
to load and run an executable.
* c_variable.test: Use gdbtk_test_file and gdbtk_test_run
to load and run an executable.
* srcwin.test: Ditto.
* srcwin1.test: Ditto.
* srcwin2.test: Ditto.
* browser.test: (set_search_mode): Use "configure
-value" not "entryset" to set the combobox's value. We need
to have the command fired.
(browser-3.5): Remove trailing whitespace which causes test to
fail.
(browser-4.4): Expect something rational. Regexp "\_1$" cannot
match "func_10"!
(browser-4.5): Ditto.
(browser-5.12): Select all files for search to make test
match description.
(browser-6.2): Renamed from another test also calledd 6.1.
(browser-7.1): Delete all breakpoints at once without from_tty.
Select all entries in the comobox before invoking BP set/delete
button.
(browser-7.2): Ditto.
* list0.c, list1.c, list0.h: New files. Grabbed from gdb.base.
* srcwin.exp: Use these local files instead of those in gdb.base.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/README.diff?cvsroot=src&r1=NONE&r2=1.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/list0.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/list0.h.diff?cvsroot=src&r1=NONE&r2=1.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/list1.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/ChangeLog.diff?cvsroot=src&r1=1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/Makefile.in.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/browser.exp.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/browser.test.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/c_variable.exp.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/c_variable.test.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/configure.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/configure.in.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/console.exp.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/console.test.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/cpp_variable.exp.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/cpp_variable.test.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/defs.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/srcwin.exp.diff?cvsroot=src&r1=1.1.1.1&r2=1.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/srcwin.test.diff?cvsroot=src&r1=1.2&r2=1.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/srcwin2.test.diff?cvsroot=src&r1=1.2&r2=1.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.gdbtk/srcwin3.test.diff?cvsroot=src&r1=1.2&r2=1.3