aboutsummaryrefslogtreecommitdiff
path: root/lib/framework.exp
AgeCommit message (Collapse)AuthorFilesLines
2024-09-03Update most license notices to refer to WWW addressJacob Bachmeyer1-4/+3
The old GPL notice previously used in DejaGnu contained instructions to write to the FSF to request a copy of the GPL. Unfortunately, the FSF office has moved, and the FSF now recommends citing a URL as a more stable address from which users can obtain a copy of the GPL if needed. This patch was automated.
2020-12-27Remove noise word "api" from "testsuite can call api" entrypointJacob Bachmeyer1-3/+3
2020-07-06Merge branch 'PR41918'Jacob Bachmeyer1-12/+48
Conflicts: ChangeLog
2020-06-29Add separator lines when repeating error messagesJacob Bachmeyer1-1/+3
2020-06-26Record Tcl errors and dump them again at the end of a runJacob Bachmeyer1-0/+9
2020-06-18Use consistent behavior for Tcl errors in test scriptsJacob Bachmeyer1-20/+26
2020-06-17Merge branch 'pr41914' into 'PR41824'Jacob Bachmeyer1-0/+1
2020-06-17Allow testing to continue after an undefined command is calledJacob Bachmeyer1-3/+21
2020-06-17Propagate return value of auto-loaded commandRob Savoye1-0/+3
2020-06-06Add "testcase group" APIJacob Bachmeyer1-1/+109
2020-06-05Add "testsuite can call api" feature test APIJacob Bachmeyer1-0/+21
2020-05-15Update Copyright datesRob Savoye1-1/+1
2019-01-10 * testsuite/runtest.libs/clone_output.test: Use new test harnessJacob Bachmeyer1-1/+3
for verifying output of clone_output. * testsuite/runtest.libs/default_procs.tcl (send_error): Roll into template using store_test_output. (send_log): Likewise. (send_user): Likewise. (clear_test_output): New proc. (store_test_output): New proc. * lib/framework.exp (clone_output): Actually send errors to the error stream; bug found while improving testsuite. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-14 * lib/framework.exp (log_summary): Remove "testcnt" mechanism.Jacob Bachmeyer1-33/+0
* testsuite/lib/libsup.exp: Remove obsolete "testcnt" variable. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-10 * runtest.exp (setup_target_hook): Use 'ne' and not '!='.Ben Elliston1-3/+3
(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.
2018-12-09 * baseboards/basic-sid.exp, baseboards/basic-sim.exp,Ben Elliston1-5/+5
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.
2018-12-09 * lib/debugger.exp, lib/dg.exp, lib/framework.exp, lib/ftp.exp,Ben Elliston1-17/+17
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.
2018-12-08 * NEWS: Document 'testsuite' command.Jacob Bachmeyer1-0/+64
* 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>
2018-12-08 * runtest.exp, lib/utils.exp, lib/targetdb.exp, lib/target.exp,Ben Elliston1-3/+3
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'.
2018-12-08 * runtest.exp, lib/utils.exp, lib/target.exp, lib/ssh.exp,Ben Elliston1-7/+7
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'.
2018-12-06 * runtest.exp: Replace [string match] commands involving literalBen Elliston1-7/+4
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.
2018-12-06 * runtest.exp: Replace '==' with 'eq' for string compares.Ben Elliston1-2/+2
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.
2018-12-03 * lib/framework.exp (isremote): Add verbose message.Ben Elliston1-0/+1
2018-12-02 * lib/framework.exp (isremote): Pass $board to is_remote.Ben Elliston1-1/+1
2018-11-30 * lib/framework.exp (isremote): New.Ben Elliston1-0/+6
* doc/dejagnu.texi (isremote procedure): Document it. * NEWS: Mention isremote.
2018-11-30 * lib/framework.exp (istarget, ishost, istarget): Set the argumentBen Elliston1-3/+3
default value to the empty string. * doc/dejagnu.texi (find procedure): Remove reference to "NULL". (getenv procedure): Re-word this node. (isbuild procedure): Update. (ishost procedure): Likewise. (istarget procedure): Likewise. * testsuite/runtest.all/config.test: Add test cases.
2018-11-25 * lib/framework.exp: Clean up whitespace.Jacob Bachmeyer1-4/+4
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-10-29 * lib/framework.exp (record_test): Really fix message formatting.Jacob Bachmeyer1-1/+1
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-10-28 * lib/framework.exp (record_test): Fix message formatting.Jacob Bachmeyer1-1/+1
Signed-off-by: Ben Elliston <bje@gnu.org>
2017-09-13 * lib/framework.exp (open_logs): Set XML version to 1.1.Ben Elliston1-2/+6
(xml_tag): Skip valid whitespace chars (0x9, 0xA, 0xD). Include missing 'x' in escape sequence.
2017-08-19Fix another bug reported by Andrey ``Bass'' Shcheglov.Ben Elliston1-0/+6
* lib/framework.exp (xml_tag): Escape all of the non-printable control characters (ASCII codes 1 to 31 inclusive).
2017-08-15Fix another bug reported by Andrey ``Bass'' Shcheglov.Ben Elliston1-9/+15
* lib/framework.exp (xml_tag): New proc. (log_summary): Use it. (record_test): Likewise.
2017-08-15Fix bug reported by Andrey ``Bass'' Shcheglov.Ben Elliston1-5/+1
* 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.
2017-07-30* lib/framework.exp: Fix spelling mistake in a comment.Ben Elliston1-1/+1
2016-06-22 * baseboards/aarch64-sim.exp, baseboards/am33_2.0-libremote.exp,Bernhard Reutner-Fischer1-3/+1
baseboards/arm-ice.exp, baseboards/arm-sid.exp, baseboards/arm-sim.exp, baseboards/basic-sid.exp, baseboards/basic-sim.exp, baseboards/cris-sim.exp, baseboards/d30v-sim.exp, baseboards/fr30-sim.exp, baseboards/frv-sim.exp, baseboards/gdbserver-sample.exp, baseboards/generic-sim.exp, baseboards/i386-sid.exp, baseboards/iq2000-sim.exp, baseboards/jmr3904-sim.exp, baseboards/linux-gdbserver.exp, baseboards/linux-libremote.exp, baseboards/m68k-sid.exp, baseboards/mcore-moto-sim.exp, baseboards/mcore-sim.exp, baseboards/mips-lnews-sim.exp, baseboards/mips-lsi-sim.exp, baseboards/mips-sim-idt32.exp, baseboards/mips-sim-idt64.exp, baseboards/mips-sim.exp, baseboards/mmixware-sim.exp, baseboards/mn10200-sim.exp, baseboards/mn10300-sim.exp, baseboards/mt-sid.exp, baseboards/powerpc-sim.exp, baseboards/powerpcle-sim.exp, baseboards/rx-sim.exp, baseboards/sh-sid.exp, baseboards/sh-sim.exp, baseboards/sparc-sim.exp, baseboards/sparc64-sim.exp, baseboards/sparclite-sim-le.exp, baseboards/sparclite-sim.exp, baseboards/tx39-sim.exp, baseboards/unix.exp, baseboards/v850-sim.exp, baseboards/vr4100-sim.exp, baseboards/vr4111-sim.exp, baseboards/vr4300-sim.exp, baseboards/xtensa-sim.exp, lib/debugger.exp, lib/dejagnu.exp, lib/dg.exp, lib/framework.exp, lib/ftp.exp, lib/kermit.exp, lib/libgloss.exp, lib/remote.exp, lib/rlogin.exp, lib/rsh.exp, lib/standard.exp, lib/target.exp, lib/targetdb.exp, lib/telnet.exp, lib/tip.exp, lib/utils.exp, testsuite/config/default.exp, testsuite/lib/libsup.exp, testsuite/lib/util-defs.exp, testsuite/libdejagnu/tunit.exp, testsuite/libdejagnu/unit.cc, testsuite/runtest.all/libs.exp, testsuite/runtest.all/options.exp, testsuite/runtest.all/stats-sub.exp, testsuite/runtest.all/stats.exp, config/default.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/sid.exp, config/sim.exp, config/unix.exp, config/vxworks.exp, configure.ac, dejagnu.h, runtest, runtest.exp: Use condensed years in copyright statement. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-03-30 * baseboards/mcore-moto-sim.exp, lib/dejagnu.exp, lib/dg.exp,Ben Elliston1-2/+2
lib/dmucs.exp, lib/framework.exp, lib/remote.exp, lib/target.exp, runtest.exp: Fix spelling errors in comments.
2016-03-28This proc is never used. --xml sets $xml, and that's it.Ben Elliston1-11/+3
* lib/framework.exp (check_xml): Remove unused proc.
2016-03-28 * runtest.exp: Fixes identified by the Frink static analyser:Ben Elliston1-4/+4
(1) use -- in switch commands for safety, (2) remove unreachable return commands after error commands, (3) replace abbreviated "info proc" with "info procs", (4) use -- in unset commands for safety where the variable name is itself a variable. * lib/dg.exp: Likewise. * lib/debugger.exp: Likewise. * lib/framework.exp: Likewise. * lib/remote.exp: Likewise. * lib/target.exp: Likewise. * lib/targetdb.exp: Likewise. * lib/telnet.exp: Likewise. * lib/utils.exp: Likewise.
2016-03-28 * lib/framework.exp (exp_continue): Remove old compatibilityBen Elliston1-10/+0
wrapper. Expect deprecated 'continue -expect' in August 1997.
2016-02-17 * runtest.exp: Enable --status by default.Ben Elliston1-1/+1
(runtest): Set exit status to 2 if there is any error sourcing the Tcl scripts. * lib/framework.exp (unknown): Likewise, set exit status to 2. * doc/runtest.1: Clarify exit status codes. * NEWS: Update.
2016-02-15 * lib/framework.exp (cleanup): Remove do-nothing proc.Ben Elliston1-13/+0
(log_and_exit): Remove call to cleanup. * doc/ref.xml: Remove documentation for cleanup. * doc/dejagnu.texi: Regenerate.
2015-11-12 * lib/framework.exp (note): Remove old commented-out code.Ben Elliston1-7/+0
2015-02-18 * lib/framework.exp (log_and_exit): Set tool to "testrun" ifStephen Tridgell1-0/+3
unset. Signed-off-by: Ben Elliston <bje@gnu.org>
2012-06-15 * lib/framework.exp (clone_output): Protect from leading dash inAndreas Schwab1-4/+4
$message. * runtest.exp (verbose): Likewise. Signed-off-by: Ben Elliston <bje@gnu.org>
2012-06-12 * doc/runtest.1: Update.Tom Tromey1-2/+6
* runtest.exp (xml_file_name): New global. (usage): Update. Handle optional argument to --xml. * lib/framework.exp (open_logs): Respect xml_file_name. Signed-off-by: Ben Elliston <bje@gnu.org>
2011-04-12 * config/vxworks.exp (vxworks_file): Use "file delete", not "execBen Elliston1-3/+3
rm", for better portability. * config/netware.exp (${board}_load): Likewise. * lib/dg.exp (dg-test): Likewise. * lib/framework.exp (open_logs): Likewise. * lib/remote.exp (standard_file): Likewise. * runtest.exp: Likewise. * testsuite/runtest.all/options.exp: Likewise.
2011-03-15 * runtest.exp: Whitespace cleanups.Ben Elliston1-25/+25
* lib/dejagnu.exp, lib/dg.exp, lib/framework.exp, lib/libgloss.exp, lib/remote.exp, lib/rsh.exp, lib/target.exp, lib/telnet.exp, lib/tip.exp, lib/utils.exp: Likewise.
2011-03-03Upgrade to GPL version 3.Ben Elliston1-1/+1
2011-03-03 * lib/framework.exp (unknown): Rename the native Tcl ::unknownBen Elliston1-13/+18
proc to ::tcl_unknown. If ::tcl_unknown returns a failure result, then fall back to the conventional DejaGnu handling. Report from David Byron <dbyron@dbyron.com>.
2010-01-01update copyright date for 2010.Rob Savoye1-2/+2