41 Commits

Author SHA1 Message Date
Nicolas Boulenguez
8aa31671be Clean files left by doc build system 2022-04-05 20:29:53 +02:00
Cedric Landet
1625e40663 Setting large code model for kernel RTS on 64 bits architectures.
The large code model which is now the default for kernel RTS
(not triggered by the large multilib anymore) on 64 bits
architectures.

TN: UB03-045
Tested-with: $ anod test cross-testsuite \
   --target=x86_64-vx7r2,7.2,vxsim-64 \
   --qualifier=rts=kernel
   $ anod test cross-testsuite \
   --target=aarch64-vx7r2,7.2,vxsim-64 \
   --qualifier=rts=kernel
   $ anod test cross-testsuite \
   --target=ppc64-vx7r2,7.2,vxsim-64 \
   --qualifier=rts=kernel
2022-01-16 22:25:51 +03:00
Fabien Chouteau
91f1b43f1a Add AUNIT_ prefix to gpr external variables
In the context of integrating AdaCore libs in Alire index.

The aunit project files use some very common tech words such as TARGET,
RUNTIME or MODE for its externals which are likely to cause problems
with environment variables.

Part of T724-017.
2020-07-24 16:18:09 +02:00
Pascal Obry
5a4c3255af Move installed aunit.gpr into share/gpr.
Continued work for Q710-013.
2017-12-20 16:28:37 +00:00
Vassiliy Fofanov
d80de77912 Finalize doc transition to new format (O819-023) 2016-06-17 10:07:17 +00:00
Vassiliy Fofanov
820914faaa Make aunit doc target .phony to fix the build failure. P115-008 2016-01-19 16:18:43 +00:00
Nicolas Roche
057ef791cf Add separate target that clean only the lib and not the doc 2015-04-23 15:08:58 +00:00
Pascal Obry
66e99c37a6 Do not create a build variable for installing AUnit.
This avoids a scenario variable which is not needed for AUnit.

Continued work for NB21-033.
2014-12-10 13:04:47 +00:00
Pascal Obry
c9513a2ace Make sure the --target/--RTS options are passed to gprinstall.
Should fix install failure on cross platforms.

Continued work for NB07-023.
2014-11-21 10:54:05 +00:00
Pascal Obry
c30b282272 Migrate AUnit to gprinstall for installation process.
The examples are now directly under the examples directory. It was put
in a directory structure corresponding to the install structure. This
is not needed anymore.

Part of NB07-023.
2014-11-20 16:39:23 +00:00
Ramon Fernandez
36fc629488 Remove the use of tar for the installer. Part of L319-017.
Using tar forces us to distribute gnu tar w/ AUnit, but good-old cp works
just as well and is part of all systems.
2012-04-23 18:07:45 +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
13c5a0a505 Use an object dir that is not in the library directory by default.
This can be overriden by the user.
For KC02-011
2011-12-05 11:34:35 +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
Jerome Lambourg
84e604eff0 Remove the target enumerate that was finally useless, and complexifies the
installation procedures.
Preparation for KC02-011
2011-12-02 14:19:51 +00:00
Jerome Lambourg
a6734a35df Better default calculation of the default installation directory, in particular
taking into account cases where 'which' does not send the errors to the
 standard error output.
Correction of K706-037
2011-07-07 15:31:33 +00:00
Jerome Lambourg
4a152ab9fc * aunit_build.gpr:
Force -fno-strict-aliasing for the aunit.adb unit, as pragma No_Strict_Aliasing
 do not work for the kind of conversion involved.

* aunit-memory-utils.ads:
Add documentation.
Use pragma No_Strict_Aliasing for Name.

* aunit-test_caller.ads:
Add No_Strict_Aliasing pragma for Fixture_Access type.
Minor improvements in documentation part (docgen compatibility)

* aunit-test_results.ads:
Remove unused Result_Access type definition.
Use No_Strict_Aliasing for Test_Failure_Access and Test_Error_Access.

* aunit-test_suites.adb:
(New_Suite): Use No_Strict_Aliasing for Access_Type.
(Run): Minor reformatting.

* Makefile:
Support the new "Mode" scenario variable.

Nicer support for optimized compilation in Install mode, in particular handling
 the Strict Aliasing support.
For JB07-004
2010-11-08 13:27:08 +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
Jerome Lambourg
6ffeb33ef2 * Makefile:
Better clean target.

* aunit-test_results.adb:
(Add_Error): Modify API to use the new Test_Error structure.

* aunit-test_results.ads:
(Test_Error): Introduce a new structure to better describe unexpected
 exceptions.
Use this structure for Exception reporting.

* aunit-simple_test_cases-run_routine.adb:
(Run_Routine): Report errors using the new Test_Error structure, allowing
 Traceback reporting.

* aunit-last_chance_handler.adb:
(To_Ada): Modify the computed Exception Message to make sure that it includes
 the exception line.

* aunit-last_chance_handler.ads:
(Get_Last_Msg, Get_Source, Get_Line): Remove, and replace by Get_Exception_Name
 and Get_Exception_Message, closer to the regular Ada Exceptions.

* aunit-simple_test_cases-run_routine.adb:
(Run_Routine): Report errors using the new Test_Error structure.

* aunit-reporter-text.adb:
(Dump_Result_List): Revert as discussed under IA08-009
(Report): Insert ANSI color sequences when requested.
(Report_Test): Take into account the new Test_Error type for reporting
 exceptions.

* aunit-reporter-text.ads:
Partially revert as discussed under IA08-009.
(Set_Use_ANSI_Colors): New.

* aunit-reporter-xml.adb:
(Report_Test): Take into account the new Test_Error type for reporting
 exceptions.

* aunit_tests.gpr.in:
Remove the obsolete separate.

* expected.out:
New, used to verify the AUnit test suite automatically.

* makefile:
Add exe extension on Windows.
Move the old target 'test' as 'run', not default anymore
New target 'test' just outputing a OK message when the test is successful.
Better clean target.

* aunit_harness.adb:
Use new colored output for the AUnit test suite.

* test_test_case-test_exceptions_with_exception.adb:
Remove obsolete

* test_test_case-test_exceptions_without_exception.adb:
Remove obsolete.

* test_test_case.adb:
(Test_Exceptions): Do not use a separate, as we always test with exception.

Improvements performed for IA08-009:
* Implementation of ANSI color output
* Implementation of better exception reporting
2009-10-09 14:54:52 +00:00
Olivier Ramonat
17e557189d Fix AUnit testsuite on ia64-hpux
Avoid using cut to strip the leading separator
Part of I811-010
2009-08-12 09:59:43 +00:00
Jerome Lambourg
4734cf8d4c Replace use of sed by cut, compatible with Solaris.
Correction of I803-020
2009-08-04 09:10:17 +00:00
Jerome Lambourg
d7f3047e8a Replace "echo -n" by printf, supported on all platforms.
Correction of build failure on Solaris, caused by changes done for HC10-006
2008-12-18 14:03:24 +00:00
Jerome Lambourg
907fbb5c69 Better correction of HC10-006, now that we can use correctly
the config files. This allow the AUnit not to interfere
 with the global .cgpr files.
2008-12-16 16:03:48 +00:00
Jerome Lambourg
3fcb0d2d01 Implement a more general handling of the different platforms, only
depending on the RTS used. This allows addition of new platforms
 without script modifications.
Add support for all current runtimes.
Part of HA24-014
2008-12-15 17:23:48 +00:00
Jerome Lambourg
09e2e4015e remove incorrect tools definition, used for testing.
Part of HC10-006
2008-12-10 16:19:20 +00:00