73 Commits

Author SHA1 Message Date
Vasiliy Fofanov
7372e83edf Remove redundant "with" of parent unit
This fixes a warning raised by recent GNAT toolchains.

TN: UC13-054
2021-12-14 14:06:45 +04:00
Vassiliy Fofanov
c2bf9432d7 Do not try to guess GPR_PROJECT_PATH value, this is unnecessary and
doesn't work anymore.
For P122-027.
2016-01-28 17:19:00 +00:00
Vassiliy Fofanov
aafe568080 Clean up and simplify, to make use of the new install scheme.
NB17-019 NB24-008
2014-11-24 14:15:39 +00:00
Olivier Hainque
b614cea7b5 Part of fix for MA27-001 (aunit_test failures on lmp):
* 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.
2013-10-29 11:19:45 +00:00
Geert Bosch
ad8f626fbf (Makefile): tighten filtering of test output
Fixes M722-032.
2013-10-15 20:12:51 +00:00
Ramon Fernandez
c800e4b232 full runtime's name in lynxos178 is pthread; part of M208-042 2013-09-16 15:22:31 +00:00
Ed Falis
c0be322e3f Add capability to suppress reporting of passed assertions.
[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.
2013-04-10 20:17:27 +00:00
Nicolas Roche
adc9387cf6 * tests/Makefile
Don't try to use zfp_support when runtime is called default (use for ppc-vxw)
Part of KB19-003
2011-12-08 16:54:58 +00:00
Jerome Lambourg
d258c806f6 Correction to my previously incorrect patch to make AUnit work with our
testing infrastructure.
For KC06-008
2011-12-08 11:29:47 +00:00
Jerome Lambourg
355302476c Do not use a relative path for the AUnit dependency in the test project, as
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
2011-12-06 11:31:50 +00:00
Jerome Lambourg
14134d79cf Reorganize the AUnit sources to allow easier custom installations.
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
2011-12-05 10:30:20 +00:00
Tristan Gingold
c56fe9c6d0 NO_ZFP_SUPPORT variable will disable the use of zfp_support.
Part of K706-022.
2011-11-04 11:13:18 +00:00
Pascal Obry
afa29d48ef fix some file permissions. 2010-12-21 19:43:40 +00:00
Jerome Lambourg
470da98536 Correct test issues with powerpc-wrs-vxworks. 2010-10-12 09:52:57 +00:00
Olivier Ramonat
822586c182 Do not use zfp_support with xenomai run-time 2010-08-18 14:14:47 +00:00
Jerome Lambourg
0156690675 * aunit-assertions.adb:
(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.
2010-08-16 14:43:31 +00:00
Jerome Lambourg
8a7fd31f7e Correct makefile causing regressions on some platforms. 2010-06-10 07:52:31 +00:00
Jerome Lambourg
3d56e0f12a Remove zfp-support from AUnit test suite, use the pre-installed zfp_support
library instead.
For J120-010
2010-06-08 15:11:17 +00:00
Ed Falis
c10e6e8547 (Tear_Down): add missing pragma Unreferenced
[J308-015]
2010-03-08 15:15:45 +00:00
Joel Brobecker
e067424404 Set the correct exeext for all VxWorks targets.
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.
2010-01-21 06:48:37 +00:00
Ed Falis
2d7bff9706 expected.out: fix previous checkin 2010-01-12 19:22:11 +00:00
Ed Falis
beb1777e63 aunit/framework/certexception/aunit-simple_test_cases-run_routine.adb: make
compatible with changes of Jan 8 2010
test/src/aunit-test_suites-tests.adb: remove assertion that is incompatible
 with certexceptions
2010-01-12 19:10:42 +00:00
Ed Falis
50c46ce594 expected.out: restore file 2010-01-12 19:10:37 +00:00
Jerome Lambourg
7519b97109 * Makefile:
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.
2010-01-08 14:40:34 +00:00
Emmanuel Briot
b5decefe5a More compact output for the text_reporter.
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
2009-12-22 19:37:59 +00:00