aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-06-19Revise stty settings used in testsuiteHEADmasterJacob Bachmeyer4-5/+20
2024-04-13Update web site addresses in manualJacob Bachmeyer2-3/+10
2023-12-13Update ChangeLog after installing patchesJacob Bachmeyer1-0/+26
2023-12-13Harmonise test execution reporting across protocolsMaciej W. Rozycki5-1/+10
Report both the full command and the timeout value consistently across various communication protocols, and always always output the report to the log file, so that procedures do not have to be locally overridden to extract this data where needed to reproduce an issue by hand. * baseboards/qemu.exp (qemu_load): Add execution reporting. * config/gdb-comm.exp (gdb_comm_load): Likewise. * config/gdb_stub.exp (gdb_stub_load): Likewise. * config/sim.exp (sim_load): Likewise. * config/unix.exp (unix_load): Report full command in addition to timeout value.
2023-12-12Use `test_timeout' consistently across protocolsMaciej W. Rozycki6-7/+25
The `test_timeout' global parameter was added with commit 73db65f53795, however for the `unix' protocol only and then only in the local case. Update the remote case of the `unix' protocol, other protocols that use various timeout sources, and the `qemu' board to take any `test_timeout' setting into account as appropriate. Amend the manual accordingly. * baseboards/qemu.exp (qemu_load): Respect global `test_timeout' setting. * config/gdb-comm.exp (gdb_comm_load): Likewise. * config/gdb_stub.exp (gdb_stub_load): Likewise. * config/sim.exp (sim_load): Likewise. * config/unix.exp (unix_load): Likewise, in the remote case. * doc/dejagnu.texi (Local configuration file): Update accordingly.
2023-12-12Set `testcase_timeout' earlier on in `gdb_comm_load'Maciej W. Rozycki1-6/+7
Move the setting of `testcase_timeout' earlier on in `gdb_comm_load'. It will be needed for reporting later on. No semantics change. * config/gdb-comm.exp (gdb_comm_load): Set `testcase_timeout' earlier on.
2023-12-12Do not set `test_timeout' in `unix_load'Maciej W. Rozycki1-4/+5
The `test_timeout' global parameter is expected to be optionally set by a board description file and then taken into account by `unix_load' to override the default of 300. However not only the procedure checks for the override but it sets the global parameter to the default as well if not present. This might make a minuscule TCL interpreter execution time reduction, but seems rather awkward from the programming style's point of view, and may cause undesired effects if the parameter is referred elsewhere. Remove the setting of the global parameter then, while retaining its semantics. * config/unix.exp (unix_load): Don't ever set `test_timeout', just use it locally.
2023-11-22Document the grand totals reported by report-card toolJacob Bachmeyer2-1/+14
2023-11-07Fix tests that attempt to determine if target_alias has been setJacob Bachmeyer2-2/+16
The problem with using [info exists target_alias] is that target_alias is unconditionally initialized to the empty string and therefore always exists.
2023-04-20Fix handling of lists given as command-line parametersJacob Bachmeyer3-4/+20
2023-04-20Change argument lists in option tests to use braced list notationJacob Bachmeyer2-21/+26
2023-04-18Tighten --objdir option testJacob Bachmeyer2-2/+8
Previously, this test did not ensure that the command-line value for --objdir was in force immediately after loading the local init file. This allowed ::dejagnu::command_line::restore_cmd_vars to do nothing, yet the test would still pass.
2022-12-20Change summary totals emitted by dejagnu.h for consistencyJacob Bachmeyer3-3/+8
2022-12-20Add support for reporting errors and warnings in dejagnu.hJacob Bachmeyer7-1/+101
2022-12-20Add support for errors and warnings in the unit test protocolJacob Bachmeyer6-3/+51
2022-12-20Add tests for result conversion after errorsJacob Bachmeyer3-22/+53
2022-11-30Rename libdejagnu test driverJacob Bachmeyer2-0/+3
The previous name was confusingly similar to the test programs.
2022-11-30Document the recent C++ API improvements and the rest of the C++ APIJacob Bachmeyer2-13/+62
2022-11-30Add global TestState object in dejagnu.hJacob Bachmeyer2-0/+3
2022-11-30Avoid spurious reinitialization in TestStateJacob Bachmeyer2-1/+9
2022-11-30Revise generation of "END" messages in dejagnu.hJacob Bachmeyer2-4/+53
The "END" message is now produced upon normal exit, without requiring that the totals() function or method be called. The C++ API now emits totals only when the last TestState object in the program is destroyed, instead of every time a TestState object is destroyed. This required adding code to track the number of live TestState objects.
2022-11-30Move C++ internals to prefixed names in dejagnu.hJacob Bachmeyer2-19/+28
Also tidy the TestState constructor.
2022-11-30Eliminate global buffer in dejagnu.hJacob Bachmeyer2-34/+52
2022-11-30Move unit test summary counters into global struct in dejagnu.hJacob Bachmeyer2-53/+69
2022-11-30Document use of "DG_" and "DG__" prefixes in dejagnu.hJacob Bachmeyer2-9/+24
2022-11-29Add tests for mixed C/C++ unit test library usageJacob Bachmeyer5-3/+111
2022-11-29Add comment in libdejagnu test driver that the framework tests are elsewhereJacob Bachmeyer2-0/+11
2022-11-29Remove old unit test programJacob Bachmeyer5-197/+14
2022-11-29Add tests for C++ unit test libraryJacob Bachmeyer5-7/+107
2022-11-29Align C++ TestState::totals() with C totals()Jacob Bachmeyer2-0/+3
2022-11-29Add NOTE function to C++ unit test APIJacob Bachmeyer3-0/+16
2022-11-29Fix incorrect documentationJacob Bachmeyer2-4/+12
2022-11-28Document the dejagnu.h functions for the UNSUPPORTED statusJacob Bachmeyer2-0/+19
2022-11-28Remove wait() function in dejagnu.h to resolve PR59586Jacob Bachmeyer2-32/+10
2022-11-28Update DejaGnu internal testsuite for changes to unit test protocolJacob Bachmeyer3-0/+11
2022-11-28Add UNSUPPORTED test result to DejaGnu unit test protocolJacob Bachmeyer6-11/+61
2022-11-28Add test for NOTE message typeJacob Bachmeyer2-1/+6
2022-11-26Add tests for C unit test libraryJacob Bachmeyer5-9/+251
2022-11-26Fix miscounting of expected failures in C unit test APIJacob Bachmeyer2-2/+8
2022-11-26Add explicit end-of-test marker to DejaGnu unit test protocolJacob Bachmeyer4-8/+29
2022-10-04Buffer test results in case the pruning callback aborts the testJacob Bachmeyer2-8/+27
2022-10-04Add regression test for PR58065Jacob Bachmeyer1-1/+7
2022-10-04Add lib/dg.exp unit tests for skipping files by callbackJacob Bachmeyer2-1/+41
2022-10-01Add lib/dg.exp unit tests for xfail by targetJacob Bachmeyer1-5/+35
2022-10-01Add lib/dg.exp unit tests for skipping files by targetJacob Bachmeyer2-4/+55
2022-10-01Avoid needless errors in internal unit test infrastructureJacob Bachmeyer2-4/+9
2022-10-01Add unit tests with explicit line numbers for lib/dg.expJacob Bachmeyer2-0/+18
2022-09-30Add initial unit tests for lib/dg.expJacob Bachmeyer3-1/+193
2022-09-29Add initial mockvfs support for internal unit testsJacob Bachmeyer2-0/+267
2022-09-26Allow internal unit test names to contain forward slashJacob Bachmeyer2-1/+6