aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-06-22remote: Use `catch' in killing pending force-killsMaciej W. Rozycki1-1/+4
Address an execution race in `close_wait_program' and use `catch' in killing pending force-kills issued there in the recovery of a stuck test case, in case the force-kill sequence has completed before the command to kill the sequence had a chance to run, so that no error is thrown and a testsuite run does not get interrupted early like: PASS: gcc.c-torture/execute/postmod-1.c -O0 (test for excess errors) Executing on remote-localhost: .../gcc/testsuite/gcc/postmod-1.exe (timeout = 15) spawn [open ...] WARNING: program timed out ERROR: tcl error sourcing .../gcc/testsuite/gcc.c-torture/execute/execute.exp. ERROR: child process exited abnormally while executing "exec sh -c "exec > /dev/null 2>&1 && kill -9 $exec_pid"" (procedure "close_wait_program" line 57) invoked from within "close_wait_program $spawn_id $pid wres" (procedure "local_exec" line 104) [...] "uplevel #0 source .../gcc/testsuite/gcc.c-torture/execute/execute.exp" invoked from within "catch "uplevel #0 source $test_file_name"" testcase .../gcc/testsuite/gcc.c-torture/execute/execute.exp completed in 196 seconds === gcc Summary === # of expected passes 1 -- therefore not letting `execute.exp' continue (here with the GCC `c' testsuite invoked with `execute.exp=postmod-1.c' for 8 compilation and 8 execution tests). The completion of the force-kill sequence would have to happen in the window between the `wait' command has returned, which would at worst happen as a result of the final `kill -9' command in the sequence, and the `kill -9 $exec_pid' command issued here, and the `sleep 5' command issued at the end of the force-kill sequence makes the likelihood of such a scenario low, but this might still happen with a loaded host system and there is no drawback from using `catch' here, so let's do it. * lib/remote.exp (close_wait_program): Use `catch' in killing pending force-kills. Signed-off-by: Maciej W. Rozycki <macro@wdc.com>
2020-06-02Save and restore variables set by command argumentsJacob Bachmeyer3-6/+70
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.
2020-06-01Print initial working directory if verbose output is selectedJacob Bachmeyer2-0/+3
2020-06-01Add verbose output for testsuite searchJacob Bachmeyer2-0/+17
2020-05-28Fix problems with relative srcdir in launcher and report-card testsuitesJacob Bachmeyer3-2/+7
2020-05-28Fix problems with relative srcdir in testsuite/runtest.main/options.expJacob Bachmeyer2-1/+5
2020-05-28Show the user's login name shortly after finding itJacob Bachmeyer2-2/+5
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.
2020-05-28Tidy irregular indentation in ChangeLogJacob Bachmeyer1-32/+34
2020-05-28Fix default value of libdir globalJacob Bachmeyer2-1/+9
This was causing testsuite/runtest.main/stats.exp to fail unless the DejaGnu sources were in a directory named dejagnu.
2020-05-27Fix node duplicated by merge error in dejagnu.texiJacob Bachmeyer1-14/+0
The previous merge duplicated the "target_link procedure" node.
2020-05-26Merge branch 'patch-0002'Rob Savoye2-4/+179
2020-05-26Add documentation for target_compile procedure.Jacob Bachmeyer2-22/+197
2020-05-26 Document internal procedure, default_linkJacob Bachmeyer2-18/+32
2020-05-25Use board_info correctly.Jacob Bachmeyer1-10/+10
2020-05-25Cleanup whitespaceJacob Bachmeyer8-15/+18
2020-05-25Use host_info procedure to probe for a host configuration, instead of ↵Jacob Bachmeyer2-1/+7
checking a local empty target_info array due to lacking global target_info.
2020-05-25Fix Copyright dateRob Savoye30-31/+66
2020-05-25 Establish a default C compiler by evaluating [find_gcc] if no other ↵Jacob Bachmeyer44-125/+102
compiler is given.
2020-05-24add entryRob Savoye1-0/+5
2020-05-24Add baseboard to cross test to a Raspberry PIRob Savoye1-0/+24
2020-05-24This adds a .dir-locals.el for emacs to the repositoryTom Tromey1-0/+22
2020-05-24Ignore generated files.Tom Tromey2-0/+8
2020-05-21Collect loading DejaGnu libraries into a single loop, Revise the mock ↵Jacob Bachmeyer2-33/+1288
board_info array.
2020-05-21New fileJacob Bachmeyer1-0/+246
2020-05-21DejaGnu unit testing API for PythonRob Savoye1-0/+88
2020-05-21Explicitly list optional arguments instead of simply copying the Tcl ↵Jacob Bachmeyer2-11/+24
argument list for the remote_exec procedure.
2020-05-21Set sum_file to empty string instead of opening a temporary file named .tmp.Jacob Bachmeyer3-4/+7
2020-05-21Fix internal testsuite stubs to reflect previous changes.Jacob Bachmeyer3-38/+47
2020-05-21Use runtest_file_p to honor requests to run only some library tests.Jacob Bachmeyer2-5/+10
2020-05-18Add entry and FIXMERob Savoye2-0/+9
2020-05-18Add hook to put branch and evision in the version for development builds.Rob Savoye2-1/+8
2020-05-15add entryRob Savoye1-0/+4
2020-05-15Update Copyright datesRob Savoye18-18/+18
2020-05-15Update Copyright datesRob Savoye3-3/+6
2019-03-08 * runtest.exp (search_and_load_file): Join the directory andAndrew Burgess2-6/+12
filename once using 'file join'. Signed-off-by: Ben Elliston <bje@gnu.org>
2019-01-24 * doc/dejagnu.texi: Refill paragraphs and normalize inter-sentenceJacob Bachmeyer2-960/+992
spacing so the Emacs move-by-sentence commands work correctly. Signed-off-by: Ben Elliston <bje@gnu.org>
2019-01-23 * doc/dejagnu.texi: Replace "config file" with "configurationBen Elliston2-34/+39
file" throughout.
2019-01-23 * doc/dejagnu.texi (Command line option variables): Improve tableJacob Bachmeyer2-19/+13
formatting to fix overlapping columns and revise text slightly. Signed-off-by: Ben Elliston <bje@gnu.org>
2019-01-23 * doc/dejagnu.texi (Global config file): Change example to use theJacob Bachmeyer2-8/+13
Tcl "switch" command instead of the deprecated "case" command. Signed-off-by: Ben Elliston <bje@gnu.org>
2019-01-20Bump version.texi.Ben Elliston1-1/+1
2019-01-12 * doc/dejagnu.texi (runtest_file_p procedure): Fix description ofJacob Bachmeyer2-2/+7
the structure of the "runtests" argument. Signed-off-by: Ben Elliston <bje@gnu.org>
2019-01-12 * doc/dejagnu.texi: Various documentation fixes.Ben Elliston2-14/+19
2019-01-10 * testsuite/runtest.libs/clone_output.test: Use new test harnessJacob Bachmeyer4-28/+142
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>
2019-01-10 * testsuite/runtest.libs/libs.exp (process_test): Handle blankJacob Bachmeyer2-0/+6
lines from child process correctly. Signed-off-by: Ben Elliston <bje@gnu.org>
2019-01-02 * NEWS: Document report card.Jacob Bachmeyer12-33/+1262
* Makefile.am (clean-local): Add target. (clean-local-check): Add target; mark as PHONY. (commands_DATA): Add "report-card" scripts. (dist_man_MANS): Add dejagnu-report-card.1 and split. (DEJATOOL): Add "report-card" tool. (TESTSUITE_FILES): Add testsuite for "report-card" tool. * commands/report-card.awk: New command script. * doc/dejagnu.texi (Invoking dejagnu report card): New node. * doc/dejagnu-report-card.1: New man page. * testsuite/lib/bohman_ssd.exp: New file. * testsuite/lib/report-card.exp: New file. * testsuite/report-card.all/onetest.exp: New file. * testsuite/report-card.all/passes.exp: New file. Signed-off-by: Ben Elliston <bje@gnu.org>
2019-01-02 * Makefile.am (DISTCLEANFILES): Don't use this.Ben Elliston3-3/+9
(CLEANFILES): Use this instead. * Makefile.in: Regenerate.
2019-01-01 * configure.ac: Abort if AWK is not installed.Ben Elliston3-0/+13
* configure: Regenerate.
2019-01-01 * config.guess: Update to latest version.Ben Elliston3-20/+29
* config.sub: Likewise.
2019-01-01 * configure.ac: Add AC_PROG_AWK check.Ben Elliston3-0/+48
* configure: Regenerate.
2018-12-29 * dejagnu: Avoid use of semicolon as sed(1) command separator.Jacob Bachmeyer2-1/+6
POSIX does not clearly require sed(1) to support that feature. Signed-off-by: Ben Elliston <bje@gnu.org>