* test/Makefile: split sections setting RUN and VARIANT to facilitate
adjustments on the responsibility distribution between this Makefile and
aunit.anod regarding who should set what. Then set VARIANT for lmp-elf.
[M409-014] [M410-029]
AUnit.Options.AUnit_Options gets a new field Report_Successes, defaulted to
True to match current behavior. An AUnit_Options parameter is added to all
versions of AUnit_Reporter.Report to control processing of the Successes
list, and through AUnit.Run to get there.
we want to use the installed AUnit binary in our nightly scripts, so refer
the installed aunit project instead of the one in the source package.
For KC06-008
In particuler, AUnit_Build is now installed as part of AUnit and allows
building AUnit with a customized library directory, so that Users can build
their own AUnit library with their own run-time.
Part of KC02-011
(Assert): Remove new profiles, and set back the original methods as only Assert
methods, to avoid disruptive API changes.
* aunit-assertions.ads:
(Assert): Remove new profiles, and set back the original methods as only Assert
methods, to avoid disruptive API changes.
* aunit-assertions-assert_exception.adb:
Revert to 3.x profile
* aunit-assertions-assert_exception.adb:
Revert to 3.x profile
* aunit-assertions-assert_exception.adb:
Revert to 3.x profile.
* test/*.ad[bs]:
Use the original Assert methods.
As discussed in J816-005.
This extension is used when running the program. In particular,
on VxWorks targets, we use an external tool (rlimit_cross) which
currently expects us to provide the entire program name, including
the program extension.
For J120-021.
Simplify the make procedure by using gprbuild only (no more configuration step
via gprconfig)
* aunit-assertions.ads:
(Test, Assert): Add a new type that allows inheritance of the Assert methods.
This allows sharing those methods between the Test_Fixtures and the various
Test_Cases types.
(Assert): Keep the old assert procedures, but mark them Obsolete as they will
no longer be useable once we implement a multitasked runner for the suites.
* aunit-options.ads:
New package: move the AUnit options to a separate package, more appropriate.
* aunit-run.adb:
(Run, Test_Runner*): Change profile according to the new locations of the
AUnit_Options package.
* aunit-run.ads:
(Test_Runner*): Change profile according to the new locations of the
AUnit_Options package.
* aunit-simple_test_cases.ads:
(Assert): Remove, now inherited via AUnit.Assertions.Test.
(Register_Failure, Failure_Lists): Remove the handling of the failures list
from this object, now handled in AUnit.Assertions.
* aunit-test_caller.adb:
Make sure that the same Fixture object is used for each created test.
* aunit-test_cases.ads:
(Run): Change profile according to the new AUnit_Options location.
* aunit-test_filters.ads:
Move the declaration of the root Test_Filter type here, more appropriate.
* aunit-test_fixtures.ads:
Make Test_Fixture inherit from AUnit.Assertions.Test to also inherit the
Assert procedures.
* aunit-test_suites.ads:
Code reorganisation makes test cases and test suites not sharing the same Run
procedure: we now need to differentiate those objects when adding them and
when running them.
* aunit-tests.ads:
(Run): Remove, now unused, and depending on Options and Filters that made a
cyclic elaboration.
* aunit-time_measure.adb:
(Gen_Put_Measure): Correct issues with previous implementation, and provide
a clearer output.
* aunit-assertions-assert_exception.adb:
(Assert_Exception): New profile, and use Assert procedure instead of directly
inserting failures.
* aunit-simple_test_cases-run_routine.adb:
(Run_Routine): Use the new failures handling interface, as failures internal
handling is moved from simple_test_case to assertions.
* aunit-reporter-text.adb:
(Report_Test): Minor adjustment, as time is reported directly with the units
used.
* aunit_tests.gpr.in:
Use 'exe/target-rts' as executable directory, allowing easier clean operations.
* makefile:
Simplify the make procedure by using gprbuild only (no more configuration step
via gprconfig)
Reorganise the code after changes for both IC16-035 (time reporting) and
IA08-009 (test filters).
Changes also the way assert procedures are called to prepare AUnit for futur
improvements, such as multitasking.
Change/Improve/Complete the AUnit test suite.
The elapsed time is displayed at the end of the line, rather than on a
separate line
OK and Failed tests are printed without extra newlines between them.
The summary of the run is printed at the end so that the user can see
it more immediately than when it is intermixed with the actual output
IC22-014