Age | Commit message (Collapse) | Author | Files | Lines |
|
priority of Expect patterns, complete with example.
* testsuite/runtest.all/libs.exp (process_test): Fix bug that
caused test results other than "PASS" to be skipped if a "PASS" is
further along in the input buffer. Describe problem in manual.
(process_test): Ensure that the log file shows each test case run.
(process_test): Directly run the test cases instead of using
temporary files and "cat". All output is always available in the
log file, which is no longer overwritten by other tests.
(process_test): Expect END markers from test case scripts.
* testsuite/runtest.all/clone_output.test: Emit END markers.
* testsuite/runtest.all/config.test: Likewise.
* testsuite/runtest.all/remote.test: Likewise.
* testsuite/runtest.all/target.test: Likewise.
* testsuite/runtest.all/testsuite_file.test: Likewise.
* testsuite/runtest.all/utils.test: Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
|
|
|
|
and catching the "no files matched glob pattern" error
message. Catching the error message was the wrong thing to do
because the foreach loop then iterates over each word in the error
message as if they were matches.
|
|
non-existent directory case.
|
|
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.
|
|
|
|
baseboards/i386-sid.exp, baseboards/mt-sid.exp,
baseboards/sh-sid.exp, config/adb.exp, config/gdb-comm.exp,
config/gdb_stub.exp, config/sim.exp, config/unix.exp,
config/vxworks.exp, lib/dejagnu.exp, lib/dg.exp,
lib/framework.exp, lib/kermit.exp, lib/libgloss.exp,
lib/remote.exp, lib/rsh.exp, lib/target.exp, lib/tip.exp,
lib/utils.exp, testsuite/lib/libsup.exp,
testsuite/runtest.all/options.exp,: Remove unnecessary braces
around variable expansions.
|
|
|
|
lib/kermit.exp, lib/libgloss.exp, lib/remote.exp, lib/rlogin.exp,
lib/target.exp, lib/tip.exp, lib/utils.exp, runtest.exp: Remove
unnecessary quotes and braces around variable expansions.
|
|
* config/gdb_stub.exp: Likewise.
* config/vxworks.exp: Likewise.
* config/unix.exp: Likewise.
* config/sim.exp: Likewise.
|
|
variable expansions.
* testsuite/lib/util-defs.exp: Likewise.
|
|
around variable expansions.
* baseboards/basic-sid.exp: Likewise.
* baseboards/cris-sim.exp: Likewise.
* baseboards/generic-sim.exp: Likewise.
* baseboards/mcore-moto-sim.exp: Likewise.
* baseboards/multi-sim.exp: Likewise.
|
|
|
|
variable expansions.
* testsuite/runtest.all/clone_output.test: Likewise.
* testsuite/runtest.all/target.test: Likewise.
* testsuite/runtest.all/stats.exp: Likewise.
* testsuite/runtest.all/remote.test: Likewise.
* testsuite/runtest.all/config.test: Likewise.
* testsuite/runtest.all/default_procs.tcl: Likewise.
* testsuite/runtest.all/libs.exp: Likewise.
* testsuite/runtest.all/options.exp: 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>
|
|
|
|
expressions.
* testsuite/lib/util-defs.exp (util_test): Likewise.
* testsuite/runtest.all/stats.exp: Likewise.
* testsuite/runtest.all/libs.exp: Likewise.
|
|
(lib_errpat_test, lib_errregexp_test, lib_err_test): New.
(lib_regexp_test): Fix copy-paste-edit error.
(lib_pat_test, lib_regexp_test, lib_ret_test, lib_bool_test):
Fix handling of errors raised by tested procedure. Also ensure
proper quoting of argument lists passed to eval and simplify
the logic for producing return values.
|
|
|
|
|
|
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'.
|
|
(lib_regexp_test): New.
(lib_pat_test): Brace "if" conditions.
(lib_pat_test): Remove spurious quotes in debugging output.
(run_tests): Add support for comments in lists of procedure tests.
* testsuite/runtest.all/config.test: Adjust to use run_tests
procedure. Fixes issue cited in FIXME comment.
* testsuite/runtest.all/utils.test (getdirs tests): Fix these.
The old tests had the sense of the return value from lib_pat_test
inverted and were failing but reported PASS.
(find tests, relative_filename tests, runtest_file_p tests):
Adjust to use run_tests procedure.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
|
|
* testsuite/runtest.all/default_procs.tcl (lib_ret_test): Tidy.
(run_tests): Replace implicit "eval" with explicit "eval". Tidy.
(verbose): Remove unnecessary quotes.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
(lib_pat_test): Handle an argument list instead of only a single
argument for the procedure under test.
(lib_ret_test): Likewise.
* testsuite/runtest.all/utils.test: Whitespace clean up. Adjust
to pass argument lists for improved lib_pat_test.
* testsuite/runtest.all/clone_output.test: Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
|
|
(lib_pat_test): Handle an argument list instead of only a single
argument for the procedure under test.
(lib_ret_test): Likewise.
* testsuite/runtest.all/utils.test: Whitespace clean up.
Adjust to pass argument lists for improved lib_pat_test.
* testsuite/runtest.all/clone_output.test: Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
* 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.
|
|
* testsuite/runtest.all/target.test: Likewise.
* testsuite/runtest.all/remote.test: Likewise.
* testsuite/runtest.all/config.test: Likewise.
* testsuite/runtest.all/clone_output.test: Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
|
|
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>
|
|
(archive Procedure): Likewise.
(ranlib Procedure): Likewise.
|
|
|
|
* doc/dejagnu.texi (Procedures For Remote Communication): Remove
mention of connectmode.
|
|
node.
|
|
|
|
|
|
(load_generic_config): Likewise.
(load_board_description): Likewise.
(load_base_board_description): Likewise.
Signed-off-by: Ben Elliston <bje@gnu.org>
|
|
* doc/dejagnu.texi (grep procedure): Document it.
* testsuite/runtest.all/utils.test: Add a test case.
* NEWS: Add an item.
|
|
|
|
|
|
don't pass in either case.
|
|
|
|
(Debugging Procedures): Likewise.
|