aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
12 daysRevise stty settings used in testsuiteHEADmasterPR71624Jacob Bachmeyer
2024-04-13Update web site addresses in manualJacob Bachmeyer
2023-12-13Update ChangeLog after installing patchesmwr-patch-20231212-1Jacob Bachmeyer
2023-12-13Harmonise test execution reporting across protocolsMaciej W. Rozycki
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. Rozycki
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. Rozycki
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. Rozycki
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 Bachmeyer
2023-11-07Fix tests that attempt to determine if target_alias has been setJacob Bachmeyer
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 Bachmeyer
2023-04-20Change argument lists in option tests to use braced list notationJacob Bachmeyer
2023-04-18Tighten --objdir option testJacob Bachmeyer
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 consistencytopic-improved-unit-testJacob Bachmeyer
2022-12-20Add support for reporting errors and warnings in dejagnu.hJacob Bachmeyer
2022-12-20Add support for errors and warnings in the unit test protocolJacob Bachmeyer
2022-12-20Add tests for result conversion after errorsJacob Bachmeyer
2022-11-30Rename libdejagnu test driverJacob Bachmeyer
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 Bachmeyer
2022-11-30Add global TestState object in dejagnu.hJacob Bachmeyer
2022-11-30Avoid spurious reinitialization in TestStateJacob Bachmeyer
2022-11-30Revise generation of "END" messages in dejagnu.hJacob Bachmeyer
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 Bachmeyer
Also tidy the TestState constructor.
2022-11-30Eliminate global buffer in dejagnu.hJacob Bachmeyer
2022-11-30Move unit test summary counters into global struct in dejagnu.hJacob Bachmeyer
2022-11-30Document use of "DG_" and "DG__" prefixes in dejagnu.hJacob Bachmeyer
2022-11-29Add tests for mixed C/C++ unit test library usageJacob Bachmeyer
2022-11-29Add comment in libdejagnu test driver that the framework tests are elsewhereJacob Bachmeyer
2022-11-29Remove old unit test programJacob Bachmeyer
2022-11-29Add tests for C++ unit test libraryJacob Bachmeyer
2022-11-29Align C++ TestState::totals() with C totals()Jacob Bachmeyer
2022-11-29Add NOTE function to C++ unit test APIJacob Bachmeyer
2022-11-29Fix incorrect documentationJacob Bachmeyer
2022-11-28Document the dejagnu.h functions for the UNSUPPORTED statusJacob Bachmeyer
2022-11-28Remove wait() function in dejagnu.h to resolve PR59586Jacob Bachmeyer
2022-11-28Update DejaGnu internal testsuite for changes to unit test protocolJacob Bachmeyer
2022-11-28Add UNSUPPORTED test result to DejaGnu unit test protocolJacob Bachmeyer
2022-11-28Add test for NOTE message typeJacob Bachmeyer
2022-11-26Add tests for C unit test libraryJacob Bachmeyer
2022-11-26Fix miscounting of expected failures in C unit test APIJacob Bachmeyer
2022-11-26Add explicit end-of-test marker to DejaGnu unit test protocolJacob Bachmeyer
2022-10-04Buffer test results in case the pruning callback aborts the testPR58065Jacob Bachmeyer
2022-10-04Add regression test for PR58065Jacob Bachmeyer
2022-10-04Add lib/dg.exp unit tests for skipping files by callbackJacob Bachmeyer
2022-10-01Add lib/dg.exp unit tests for xfail by targetJacob Bachmeyer
2022-10-01Add lib/dg.exp unit tests for skipping files by targetJacob Bachmeyer
2022-10-01Avoid needless errors in internal unit test infrastructureJacob Bachmeyer
2022-10-01Add unit tests with explicit line numbers for lib/dg.expJacob Bachmeyer
2022-09-30Add initial unit tests for lib/dg.expJacob Bachmeyer
2022-09-29Add initial mockvfs support for internal unit testsJacob Bachmeyer
2022-09-26Allow internal unit test names to contain forward slashJacob Bachmeyer