aboutsummaryrefslogtreecommitdiff
path: root/lib/utils.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-05-15Update Copyright datesRob Savoye1-1/+1
2018-12-10 * lib/utils.exp (grep): Use a proper Tcl list for options.Ben Elliston1-5/+5
2018-12-10 * lib/utils.exp (getdirs): Use glob -nocomplain rather than globBen Elliston1-31/+22
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.
2018-12-09 * baseboards/basic-sid.exp, baseboards/basic-sim.exp,Ben Elliston1-25/+25
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-2/+2
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 * runtest.exp, lib/utils.exp, lib/targetdb.exp, lib/target.exp,Ben Elliston1-4/+4
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-1/+1
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 * lib/remote.exp (standard_load): Fix typo on empty string.Jacob Bachmeyer1-1/+1
* 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>
2018-12-06 * runtest.exp: Replace [string match] commands involving literalBen Elliston1-3/+3
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-1/+1
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-05 * lib/utils.exp (grep): Handle -n.Ben Elliston1-13/+16
* doc/dejagnu.texi (grep procedure): Document it. * testsuite/runtest.all/utils.test: Add a test case. * NEWS: Add an item.
2018-12-04 * lib/utils.exp (relative_filename): New proc.Jacob Bachmeyer1-0/+38
* 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>
2018-11-30 * lib/utils.exp (grep): Remove reference to "NULL" in comment.Ben Elliston1-1/+1
* testsuite/lib/util-defs.exp (util_start): Likewise.
2018-11-23 * doc/dejagnu.texi (getdirs procedure): Improve documentationBen Elliston1-5/+3
including documenting the -all option. (find procedure): Fix a typo. * lib/utils.exp (getdirs): Improve comments.
2017-08-29 Revert these changes:Ben Elliston1-0/+8
2016-04-25 Ben Elliston <bje@gnu.org> * testsuite/runtest.all/utils.test: Remove unsetenv test. 2016-04-24 Ben Elliston <bje@gnu.org> * lib/utils.exp (unsetenv): Remove proc. * doc/dejagnu.texi: Update documentation. * NEWS: Update.
2016-06-22 * configure.ac, dejagnu.h, runtest, runtest.exp,Bernhard Reutner-Fischer1-1/+1
baseboards/am33_2.0-libremote.exp, baseboards/androideabi.exp, 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/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-mti32.exp, baseboards/mips-sim-mti64.exp, baseboards/mips-sim-mti64_64.exp, baseboards/mips-sim-mti64_n32.exp, baseboards/mips-sim-sde32.exp, baseboards/mips-sim-sde64.exp, baseboards/mips-sim.exp, baseboards/mmixware-sim.exp, baseboards/mn10200-sim.exp, baseboards/mn10300-sim.exp, baseboards/moxie-sim.exp, baseboards/mt-sid.exp, baseboards/multi-sim.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/visium-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/ftp.exp, lib/kermit.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/stats-sub.exp, testsuite/runtest.all/stats.exp, config/adb.exp, config/default.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/sid.exp, config/sim.exp, config/unix.exp, config/vxworks.exp: Update copyright date for 2016. Signed-off-by: Ben Elliston <bje@gnu.org>
2016-06-22 * baseboards/aarch64-sim.exp, baseboards/am33_2.0-libremote.exp,Bernhard Reutner-Fischer1-2/+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-04-24 * lib/utils.exp (unsetenv): Remove proc.Ben Elliston1-8/+0
* doc/dejagnu.texi: Update documentation. * NEWS: Update.
2016-03-28 * lib/utils.exp (which): Don't exclude symbolic links--Debian'sBen Elliston1-8/+7
/bin/which doesn't. Modern systems rely too heavily on symbolic links (eg. alternatives).
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/utils.exp (which): Reimplement to more closely mimic theBen Elliston1-10/+20
behaviour of the UNIX which utility. * testsuite/runtest.all/utils.test: Test proc which.
2016-03-21 * runtest.exp: Whitespace, comment and typo fixes.Ben Elliston1-6/+12
* lib/dejagnu.exp: Likewise. * lib/remote.exp: Likewise. * lib/utils.exp: Likewise.
2016-03-16This reverts commit 4d344f712298364c836038b641625b3407db2fc3. The GCCBen Elliston1-0/+69
testsuite still uses diff. 2016-03-15 Ben Elliston <bje@gnu.org> * lib/utils.exp (diff): Remove proc. * doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate. * NEWS: Update.
2016-03-15 * lib/utils.exp (diff): Remove proc.Ben Elliston1-69/+0
* doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate. * NEWS: Update.
2016-03-13 * lib/utils.exp: Whitespace fixes.Ben Elliston1-4/+0
2016-02-24 * lib/utils.exp (prune): Restore this proc.Ben Elliston1-0/+19
* doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate. * NEWS: Update. This reverts commit 992fbc3a8f03c3cd5e554eea5361f1a531e9e71f.
2016-02-20 * lib/utils.exp (diff): Replace calls to verbose followed byBen Elliston1-11/+4
send_log with a single call to verbose -log. Remove additional newlines from the log messages.
2016-02-20 * lib/utils.exp (getdirs): Ignore .git and .svn directories.Ben Elliston1-0/+2
2016-02-20 * lib/utils.exp: Improve comments.Ben Elliston1-10/+1
* NEWS: Update.
2016-02-20 * lib/utils.exp (prune): Remove proc.Ben Elliston1-19/+0
* doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate.
2016-02-20 * lib/utils.exp (slay): Remove proc.Ben Elliston1-17/+0
* doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate.
2016-02-20 * lib/utils.exp (absolute): Remove proc.Ben Elliston1-15/+0
* doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate.
2016-02-20 * lib/utils.exp (psource): Remove proc.Ben Elliston1-20/+0
* doc/ref.xml: Update documentation. * doc/dejagnu.texi: Regenerate.
2011-03-15 * runtest.exp: Whitespace cleanups.Ben Elliston1-32/+31
* 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
2010-01-01update copyright date for 2010.Rob Savoye1-2/+2
2008-04-07* lib/utils.exp (diff): Open both files as binary.Ben Elliston1-0/+2
2006-05-22 * runtest.exp, baseboards/basic-sim.exp, baseboards/cf.exp,Ben Elliston1-26/+26
baseboards/cris-sim.exp, baseboards/i960-cyclone.exp, baseboards/mcore-moto-sim.exp, baseboards/mips64vr4100-sim.exp, baseboards/mmixware-sim.exp, baseboards/op50n.exp, baseboards/rom68k-idp.exp, baseboards/sparclite-sim-le.exp, baseboards/usparc-cygmon.exp, config/base-config.exp, config/base68k.exp, config/ddb-ether.exp, config/ddb.exp, config/dos.exp, config/gdb-comm.exp, config/gdb_stub.exp, config/i386-bozo.exp, config/i960.exp, config/m68k-emc.exp, config/netware.exp, config/sid.exp, config/sim.exp, config/tic80.exp, config/unix.exp, config/vxworks.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/target.exp, lib/targetdb.exp, lib/telnet.exp, lib/tip.exp, lib/utils.exp: Put braces around if expressions throughout.
2006-05-22 * lib/framework.exp (open_logs): Use file join where applicable.Ben Elliston1-4/+4
* lib/libgloss.exp (libgloss_link_flags, newlib_link_flags, newlib_include_flags, g++_link_flags, libstdc++_link_flags, get_multilibs, winsup_include_flags, winsup_link_flags): Likewise. * lib/utils.exp (which): Likewise. * runtest.exp (search_and_load_file, lookfor_file, load_tool_init): Likewise.
2006-05-22 * runtest.exp: Use switch, not case.Ben Elliston1-2/+2
* lib/framework.exp (clone_output): Likewise. (clear_xfail): Likewise. (clear_kfail): Likewise. (set_warning_threshold): Make warning_threshold global. (get_warning_threshold): Likewise. * lib/libgloss.exp (process_multilib_options): Use switch, not case. * lib/remote.exp (local_exec): Only run global errorInfo once. (standard_upload): Fix error in variable use ($file -> $srcfile). * lib/utils.exp (grep): Use switch, not case. (slay): Fix mismatched bracket.
2005-12-23 * lib/remote.exp: Tidy.Ben Elliston1-15/+10
* lib/targetdb.exp: Likewise. * lib/target.exp (prune_warnings): Improve comments. * lib/dejagnu.exp: Likewise. * lib/utils.exp: Likewise.
2005-06-24 * Update the FSF's physical address throughout.Ben Elliston1-1/+1
2003-08-23Use a consistent GNU copyright header throughout.Ben Elliston1-13/+13
2003-08-19Re-indent with Emacs' tcl-mode.Ben Elliston1-2/+2
2003-08-16Whitespace fixes.Ben Elliston1-23/+23
2003-07-282003-07-25 Jim Dein <jdein@deinji5.apple.com>Rob Savoye1-41/+20
* lib/utils.exp: fix double recursion bug in proc find. 2002-02-25 Jackie Smith Cashion <jsmith@redhat.com> * baseboards/am33_2.0-libremote.exp: New file. 2000-11-21 Drew Moseley <dmoseley@redhat.com> * baseboards/mn10300-cygmon.exp: Use the am33-2 flag for the ASB2303 board. 2000-08-10 Drew Moseley <dmoseley@cygnus.com> * baseboards/mn10300-cygmon.exp: Added support for Cygmon based ASB2303 board. 2003-06-13 Phil Edwards <pme@devphil.com> * baseboards/mips64-sim.exp, baseboards/mips-sim.exp, baseboards/mips-sim-idt32.exp, baseboards/mips-sim-idt64.exp: Use only -T[linker] instead of -Wl,-T[linker]. 2003-06-13 Jason Thorpe <thorpej@wasabisystems.com> * lib/target.exp (prune_warnings): Add two more linker warning patterns for warnings generated by modern verions of NetBSD. 2003-05-12 H.J. Lu <hongjiu.lu@intel.com> * lib/libgloss.exp (build_wrapper): Add -Wl,-wrap,_exit. 2003-05-09 H.J. Lu <hongjiu.lu@intel.com> * runtest: Fix a typo. 2003-05-03 Nitin Dhavale <nitinpdhavale@indiatimes.com> * doc/user.sgml: Clarify how to set the verbose option. 2003-03-28 Chris Demetriou <cgd@broadcom.com> * lib/framework.exp (check_conditional_xfail): Adjust so that an empty 'includes' list matches all sets of flags. * doc/dejagnu.texi: Document the above. * doc/ref.sgml: Likewise. 2003-03-27 David Heine <dlheine@tensilica.com> * baseboards/xtensa-sim.exp: Fix a syntax error. 2003-03-16 Rob Savoye <rob@direwolf.welcomehome.org> * lib/unix.exp: Preserve the value of LD_LIBRARY_PATH, rather than stomp on it. This is based on a patch from Brendan Conoboy <blc@redhat.com>. * Most files: Update copyright dates.
2003-03-172003-03-16 Rob Savoye <rob@direwolf.welcomehome.org>Rob Savoye1-1/+1
* lib/unix.exp: Preservce the value of LD_LIBRARY_PATH, rather than stomp on it. This is based on a patch from Brendan Conoboy <blc@redhat.com>. * Most files: Update copyright dates. 2003-03-13 Mike Stump <mrs@apple.com> * lib/dg.exp(dg-test): Add compiler flags to testcase name, to help ensure uniqueness. 2003-03-05 Alexandre Oliva <aoliva@redhat.com> * lib/remote.exp (standard_download, standard_upload): Support nfsdir and nfsroot_server. 2001-11-12 Andrew Cagney <ac131313@redhat.com> * lib/remote.exp (local_exec, standard_close): Use SHELL background instead of tcl background to background the kill processes. Work around problem found by Nick Duffek in older CYGWINs. (migrated from Redhat's sources kind late, sorry)
2002-08-31Minor Updates before release.Rob Savoye1-1/+1
2001-11-022001-11-02 Philip A. Wilsey <philip.wilsey@cliftonlabs.com>Rob Savoye1-1/+1
* lib/utils.exp: Need to pass -all to getdirs, so it descends through all the subdirectories.