Age | Commit message (Collapse) | Author | Files | Lines |
|
The problem with using [info exists target_alias] is that target_alias
is unconditionally initialized to the empty string and therefore always
exists.
|
|
|
|
|
|
DejaGnu has always required testsuites to be rooted in a directory
named exactly "testsuite" but older versions happened to work even
if this requirement was violated. Special handling for this broken
case was included, but the conditional to invoke this handling was
too narrow and missed several cases in the GNU Automake testsuite.
|
|
Conflicts:
ChangeLog
configure
configure.ac
doc/version.texi
runtest.exp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This commit closes the window during which srcdir was controlled by the
testsuite local init file even if specified on the command line.
Allowing this override causes problems with Automake when the source
directory was set using a relative file name.
|
|
|
|
|
|
Previously, two procedures were defined between setting logname and
reporting its value if verbosity is selected. This does not change
program flow, but will make the code easier to examine in the future.
|
|
This was causing testsuite/runtest.main/stats.exp to fail unless the
DejaGnu sources were in a directory named dejagnu.
|
|
|
|
filename once using 'file join'.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
pass through command line arguments instead of delaying it.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
lib/dg.exp, lib/ftp.exp, lib/kermit.exp, lib/rlogin.exp,
lib/telnet.exp, runtest.exp, testsuite/lib/libsup.exp: Simplify
some regular expressions in constant strings by placing them
inside braces instead of quotes. This allows one level of
backslash quoting to be removed.
|
|
variable expansions.
|
|
(iterate_target_variants_two): Likewise.
* lib/remote.exp (standard_download): Use 'eq' not '=='.
(remote_upload): Likewise.
* lib/framework.exp (open_logs): Likewise.
(is_remote): Likewise.
|
|
* doc/dejagnu.texi (testsuite procedure): Document multiplex entry
point and "testsuite file" command.
* lib/framework.exp (testsuite): New proc for multiplex commands.
(testsuite_file): New proc implementing "testsuite file".
* testsuite/runtest.all/testsuite_file.test: New file.
* runtest.exp: Expect to find testsuite in ${srcdir}/testsuite,
but also search $srcdir itself.
(load_lib): Add explicit search for testsuite-local libraries.
(load_tool_init): Use $testsuitedir in search.
(load_config): Use $testsuitedir instead of $srcdir.
(load_tool_target_config): Likewise.
Add variable "testsuitedir" for testsuite root directory.
Add internal global variables "testbuilddir" and "testdir" for use
by "testsuite file".
Ensure that $testsuitedir, $testbuilddir, and $objdir also avoid
duplicated path delimiters.
Add warning if no tests are found and fallback method of searching
$srcdir is used.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
lib/remote.exp, lib/framework.exp, lib/dg.exp, config/vxworks.exp,
config/sim.exp, config/gdb_stub.exp, config/aarch64-fv8.exp,
baseboards/vr4300-sim.exp, baseboards/vr4111-sim.exp,
baseboards/vr4100-sim.exp, baseboards/sh-sid.exp,
baseboards/mt-sid.exp, baseboards/mips-sim.exp,
baseboards/mips-sim-idt64.exp, baseboards/mips-sim-idt32.exp,
baseboards/i386-sid.exp, baseboards/arm-sim.exp,
baseboards/arm-ice.exp, baseboards/androideabi.exp,
testsuite/runtest.all/utils.test,
testsuite/runtest.all/target.test: Replace string literal
comparisons using == and != with 'eq' and 'ne'.
|
|
lib/rsh.exp, lib/rlogin.exp, lib/remote.exp, lib/libgloss.exp,
lib/framework.exp, lib/dg.exp, lib/dejagnu.exp,
config/vxworks.exp, config/unix.exp, config/sim.exp,
config/gdb_stub.exp, config/gdb-comm.exp, config/adb.exp,
baseboards/multi-sim.exp, baseboards/cris-sim.exp,
baseboards/basic-sim.exp, baseboards/basic-sid.exp,
baseboards/androideabi.exp, testsuite/runtest.all/load_lib.exp,
testsuite/libdejagnu/tunit.exp: Replace empty string comparisons
using == and != with 'eq' and 'ne'.
|
|
* runtest.exp: Adjust expression to follow GNU conventions.
* lib/utils.exp (diff): Fix mistake in replacing [string compare]
with "eq" instead of "ne".
* testsuite/runtest.all/config.test: Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
strings and variables known to not be Tcl glob patterns with eq
and ne.
* config/unix.exp: Likewise.
* lib/debugger.exp: Likewise.
* lib/dg.exp: Likewise.
* lib/framework.exp: Likewise.
* lib/remote.exp: Likewise.
* lib/utils.exp: Likewise.
* baseboards/androideabi.exp: Likewise.
* baseboards/multi-sim.exp: Likewise.
* testsuite/lib/util-defs.exp: Likewise.
* testsuite/runtest.all/config.test: Likewise.
|
|
Likewise, replace '!=' with 'ne'. Replace a few instances of
[string length $str] == 0 with $str eq "".
* config/gdb-comm.exp: Likewise.
* lib/dg.exp: Likewise.
* lib/framework.exp: Likewise.
* lib/libgloss.exp: Likewise.
* lib/remote.exp: Likewise.
* lib/target.exp: Likewise.
* lib/utils.exp: Likewise.
|
|
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
(load_generic_config): Likewise.
(load_board_description): Likewise.
(load_base_board_description): Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
* runtest.exp: Use it.
* doc/dejagnu.texi (relative_filename procedure): Document it.
* testsuite/runtest.all/utils.test: Add tests for relative_filename.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
(decimal): Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
and --global_init command line options.
* doc/runtest.1: Likewise.
* runtest.exp: Remove useless tests before setting default values
for variables: all_flag, binpath, debug, options, outdir, reboot,
tracelevel, verbose, log_dialog. They are set before loading any
files or parsing the command line.
* runtest.exp: Add options --local_init and --global_init for
selecting alternate testsuite configuration files.
* runtest.exp: Split variable "configfile" into "local_init_file"
and "global_init_file" in preparation for adding command-line
options to specify these independently.
* runtest.exp (load_generic_config): Remove configfile global.
(load_board_description): Likewise.
(load_base_board_description): Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
* lib/target.exp: Likewise.
* lib/remote.exp: Likewise.
* lib/libgloss.exp: Likewise.
* config/unix.exp: Likewise.
* config/sim.exp: Likewise.
* config/gdb_stub.exp: Likewise.
* config/gdb-comm.exp: Likewise.
* baseboards/basic-sim.exp: Likewise.
* baseboards/androideabi.exp: Likewise.
|
|
* configure.ac: Update version number.
* configure: Regenerate.
* doc/dejagnu.texi: Update version number.
* runtest.exp: Update version number.
|
|
restored. Previously, they were only restored if the "Go digging
for tests" branch was taken near the end of runtest.exp.
This bug was found while splitting a new variable out of some uses of
$srcdir when Emacs paren highlighting did not look right. Sure
enough, the per-pass variables are set unconditionally, but are only
restored if the "Go digging for tests" branch was taken. This patch
moves that loop out of an 'else' block and into the same 'foreach'
that contains the loop that sets per-pass variables.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
of assuming exactly one location.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
|
|
expected location of the tool init file.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
* NEWS: Start a new section for the next release.
* configure.ac (AC_INIT): Update version number.
* configure: Regenerate.
* runtest.exp (frame_version): Update version number.
* doc/dejagnu.texi: Likewise.
* doc/runtest.1: Update datestamp.
|
|
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
* lib/framework.exp (open_logs): Set .xml filename correctly.
* runtest.exp: Remove xml_file_name var.
(usage): Update --xml option to not take an argument.
(load_tool_init): Likewise.
* doc/dejagnu.texi (Invoking runtest): Update documentation.
* doc/runtest.1: Likewise.
|