aboutsummaryrefslogtreecommitdiff
path: root/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2021-05-20Change test for [which make] to [which sh]Jacob Bachmeyer1-4/+4
2021-05-20Ensure that PR42399 regression test produces resultsJacob Bachmeyer2-3/+10
2021-05-20Preserve nested runtest log messages when test fails in stats.expJacob Bachmeyer2-0/+8
2021-05-20Fix portability problem with /usr/bin/awk on Solaris 10 in stats testJacob Bachmeyer1-1/+3
The /usr/bin/awk on Solaris 10 is a pre-POSIX Awk that, among other limitations, does not recognize the ARGV array as special.
2021-05-20Search for POSIX Awk in dejagnu auxiliary launcherJacob Bachmeyer1-0/+13
2021-05-18Avoid Tcl error when report-card tool fails to produce output in testsJacob Bachmeyer1-4/+10
2021-05-18Avoid dependency on exit code from false(1) in PR48155 testJacob Bachmeyer1-2/+2
2021-05-05Add regression test for PR48155Jacob Bachmeyer2-0/+110
2021-03-26Address PR47386Jacob Bachmeyer2-4/+10
2021-03-26Remove automatic search for local Expect executable in DejaGnu testsuiteJacob Bachmeyer1-2/+6
This search supported the old Cygnus tree layout, which has been obsolete for a very long time. Anyone still wanting to use a newly-built Expect to run DejaGnu tests can do so by passing EXPECT explicitly on the runtest command line (to use the new Expect only for the library unit tests) or in the environment (which will also cause the runtest launcher script to use it to run the framework). Passing EXPECT in the environment can also be achieved by setting EXPECT on the "make check" command line. This remediates the test failures in PR47385 but does not address the underlying root causes, which will be fixed in the 1.6.4 development phase.
2021-03-15Clean up tree in preparation for release branchJacob Bachmeyer1-45/+0
2020-12-27Improve DejaGnu internal library testsJacob Bachmeyer1-2/+2
2020-12-27Remove noise word "api" from "testsuite can call api" entrypointJacob Bachmeyer1-6/+6
2020-11-10Avoid spurious errors if the launcher test symlinks already existJacob Bachmeyer1-0/+4
2020-11-10Fix bug with ambiguous relative link targets in launcher testsJacob Bachmeyer1-1/+1
2020-11-10Abstract linking test items in launcher testsuiteJacob Bachmeyer2-10/+14
2020-10-02Minor fixup to put Emacs headers above copyright noticesJacob Bachmeyer5-5/+10
2020-10-02Add copyright noticesRob Savoye6-0/+102
2020-08-18Add missing copyright and GPL notices to some testsuite filesJacob Bachmeyer3-0/+54
For these files, I can be certain of their status: I wrote them, copying only trivial pieces from other files in DejaGnu.
2020-08-02Move experimental Python unit test module to contrib/Jacob Bachmeyer1-88/+0
2020-08-02Merge branch 'PR42399'Rob Savoye15-83/+261
Branch surived testing.
2020-07-22Add tests for DejaGNU unit testing supportJacob Bachmeyer3-14/+86
2020-07-20Add regression test for PR42399Jacob Bachmeyer3-0/+120
2020-07-20Combine inner testsuites used for testing runtestJacob Bachmeyer10-70/+56
2020-07-13target: Wrap linker flags into `-largs'/`-margs' for AdaMaciej W. Rozycki1-16/+16
Unrecognized `gnatmake' switches are not implicitly passed on to the linker, so just pasting board `ldflags' and any other linker flags verbatim into `add_flags' to use for the invocation line of `gnatmake' will make them ignored at best. For example in a GCC test environment that has: set_board_info ldflags "-Wl,-dynamic-linker,.../sysroot/lib/ld-linux-riscv64-lp64d.so.1 -Wl,-rpath,.../sysroot/lib64/lp64d -Wl,-rpath,.../sysroot/usr/lib64/lp64d" so that sysroot paths are correctly embedded with the binaries linked for use with the dynamic loader and shared library dependencies, the setting will be ignored for the GNAT test suite making all the execution tests fail, e.g.: PASS: gnat.dg/abstract_with_anonymous_result.adb (test for excess errors) spawn qemu-riscv64 ./abstract_with_anonymous_result.exe /lib/ld-linux-riscv64-lp64d.so.1: No such file or directory FAIL: gnat.dg/abstract_with_anonymous_result.adb execution test For `gnatmake' to pass switches on to the linker the `-largs' switch has to be used, which affects all the switches that follow until a switch is seen that changes the selection, like `-margs', which resets to the initial state of the switch interpretation machine. Wrap linker flags into `-largs'/`-margs' for Ada then, carefully preserving the place these flags are placed at within `add_flags', as surely someone will have depended on that, correcting test failures like above: PASS: gnat.dg/abstract_with_anonymous_result.adb (test for excess errors) spawn qemu-riscv64 ./abstract_with_anonymous_result.exe PASS: gnat.dg/abstract_with_anonymous_result.adb execution test Pass multilib flags both to the compiler and to the linker as both build stages interpret them. Update the testsuite accordingly. * lib/target.exp (default_target_compile): Wrap linker flags into `-largs'/`-margs' for Ada. * testsuite/runtest.libs/target.test (compile_test): Update accordingly. Signed-off-by: Maciej W. Rozycki <macro@wdc.com>
2020-07-06Merge branch 'PR41918'Jacob Bachmeyer5-0/+194
Conflicts: ChangeLog
2020-07-06Merge branch 'new-api-for-1.6.3'Jacob Bachmeyer2-0/+90
Conflicts: ChangeLog NEWS doc/dejagnu.texi
2020-06-26Withdraw proposed --keep_going and --no_keep_going optionsJacob Bachmeyer6-104/+84
2020-06-24Add option to stop immediately at Tcl errors and continue by defaultJacob Bachmeyer1-8/+8
2020-06-22Add tests for new features in default_target_compileJacob Bachmeyer1-3/+316
2020-06-19Add tests for handling arithmetic errors in non-auto-loaded proceduresTom de Vries2-0/+40
2020-06-18Use consistent behavior for Tcl errors in test scriptsJacob Bachmeyer1-4/+5
2020-06-18Add tests for handling arithmetic errors in auto-loaded proceduresJacob Bachmeyer2-0/+49
2020-06-17Allow testing to continue after an undefined command is calledJacob Bachmeyer3-0/+124
2020-06-06Add "testcase group" APIJacob Bachmeyer1-0/+61
2020-06-05Add "testsuite can call api" feature test APIJacob Bachmeyer1-0/+29
2020-05-28Fix problems with relative srcdir in launcher and report-card testsuitesJacob Bachmeyer2-2/+4
2020-05-28Fix problems with relative srcdir in testsuite/runtest.main/options.expJacob Bachmeyer1-1/+1
2020-05-21Collect loading DejaGnu libraries into a single loop, Revise the mock ↵Jacob Bachmeyer1-33/+1279
board_info array.
2020-05-21New fileJacob Bachmeyer1-0/+246
2020-05-21DejaGnu unit testing API for PythonRob Savoye1-0/+88
2020-05-21Set sum_file to empty string instead of opening a temporary file named .tmp.Jacob Bachmeyer2-4/+1
2020-05-21Fix internal testsuite stubs to reflect previous changes.Jacob Bachmeyer2-38/+38
2020-05-21Use runtest_file_p to honor requests to run only some library tests.Jacob Bachmeyer1-2/+2
2019-01-10 * testsuite/runtest.libs/clone_output.test: Use new test harnessJacob Bachmeyer2-27/+124
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 Bachmeyer1-0/+1
lines from child process correctly. Signed-off-by: Ben Elliston <bje@gnu.org>
2019-01-02 * NEWS: Document report card.Jacob Bachmeyer4-0/+749
* 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>
2018-12-28 * testsuite/lib/util-defs.exp: Whitespace clean up.Jacob Bachmeyer1-5/+5
Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-21 PR 33817Jacob Bachmeyer1-0/+9
* dejagnu: Improve command parsing to fix bug. Previously, the documented equivalence between "multi word command" and "multi-word-command" did not hold if no arguments were given. * testsuite/launcher.all/command.exp: Add tests. Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-20 * Makefile.am (EXTRA_DIST): Add "dejagnu" launcher script andJacob Bachmeyer11-0/+485
contents of $(commands_DATA). (bin_SCRIPTS): Add "dejagnu" launcher script. (commandsdir): Installation directory for "dejagnu" subcommands is $(pkgdatadir)/commands. (commands_DATA): New, contains "commands/help.sh" as initial item. (TESTSUITE_FILES): Add testsuite for same. (DEJATOOL): Add "launcher" to list of tools to test. (dist_man_MANS): Add man pages for "dejagnu" and "dejagnu help". * doc/dejagnu.texi (Running other DejaGnu commands): New chapter. (Invoking dejagnu): New node for dejagnu(1) launcher script. (Invoking dejagnu help): New node. * doc/dejagnu.1: New man page. * doc/dejagnu-help.1: New man page. * dejagnu: New script. * commands/help.sh: New dejagnu subcommand for reading manpages. * testsuite/launcher.all/command.exp: New file. * testsuite/launcher.all/command/commands/bar-baz.awk: New file. * testsuite/launcher.all/command/commands/bar.awk: New file. * testsuite/launcher.all/command/commands/bar.sh: New file. * testsuite/launcher.all/command/commands/baz-quux.gawk: New file. * testsuite/launcher.all/command/commands/foo.sh: New file. * testsuite/launcher.all/command/commands/foo.tcl: New file. * testsuite/launcher.all/help.exp: New file. * testsuite/launcher.all/interp.exp: New file. * testsuite/launcher.all/verbose.exp: New file. * testsuite/lib/launcher.exp: New file. Signed-off-by: Ben Elliston <bje@gnu.org>