aboutsummaryrefslogtreecommitdiff
path: root/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2022-12-20Add support for reporting errors and warnings in dejagnu.hJacob Bachmeyer4-0/+18
2022-12-20Add support for errors and warnings in the unit test protocolJacob Bachmeyer3-3/+28
2022-12-20Add tests for result conversion after errorsJacob Bachmeyer2-22/+46
2022-11-30Rename libdejagnu test driverJacob Bachmeyer1-0/+0
The previous name was confusingly similar to the test programs.
2022-11-29Add tests for mixed C/C++ unit test library usageJacob Bachmeyer2-0/+84
2022-11-29Add comment in libdejagnu test driver that the framework tests are elsewhereJacob Bachmeyer1-0/+6
2022-11-29Remove old unit test programJacob Bachmeyer2-163/+0
2022-11-29Add tests for C++ unit test libraryJacob Bachmeyer2-2/+61
2022-11-28Update DejaGnu internal testsuite for changes to unit test protocolJacob Bachmeyer2-0/+5
2022-11-28Add UNSUPPORTED test result to DejaGnu unit test protocolJacob Bachmeyer2-9/+12
2022-11-28Add test for NOTE message typeJacob Bachmeyer1-1/+2
2022-11-26Add tests for C unit test libraryJacob Bachmeyer2-0/+187
2022-10-04Add regression test for PR58065Jacob Bachmeyer1-1/+7
2022-10-04Add lib/dg.exp unit tests for skipping files by callbackJacob Bachmeyer1-1/+31
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 Bachmeyer1-4/+53
2022-10-01Avoid needless errors in internal unit test infrastructureJacob Bachmeyer1-4/+6
2022-10-01Add unit tests with explicit line numbers for lib/dg.expJacob Bachmeyer1-0/+12
2022-09-30Add initial unit tests for lib/dg.expJacob Bachmeyer2-1/+183
2022-09-29Add initial mockvfs support for internal unit testsJacob Bachmeyer1-0/+261
2022-09-26Allow internal unit test names to contain forward slashJacob Bachmeyer1-1/+1
2022-01-21Add regression test for PR53427Jacob Bachmeyer3-0/+112
2021-06-16Merge fixes from 1.6.3 release branchJacob Bachmeyer12-18/+170
Conflicts: ChangeLog configure configure.ac doc/version.texi runtest.exp
2021-05-22Add test mode for "dejagnu help" commandJacob Bachmeyer1-6/+2
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-04-14Add initial infrastructure for DejaGnu "specs" stringsJacob Bachmeyer1-0/+162
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>