15 Commits

Author SHA1 Message Date
Nicolas Setton
73bc31cbc7 Adjust test data to new gpr2 warning
For eng/shared/release#1150
2024-11-20 08:58:05 +00:00
Nicolas Setton
97318dfd33 Add support for powershell
And add a test.

For #40.
2024-01-23 14:21:18 +00:00
Pierre-Marie de Rodat
0d504c8c59 Testsuite: add a couple of Windows-specific XFAILs
These failures still need to be investigated: XFAIL them in the
meantime.

TN: VA24-041
2023-01-10 11:44:17 +01:00
Pierre-Marie de Rodat
84d51d571a Testsuite: add a --no-auto-path option
In the production environment, we want the testsuite to exercize the
adareducer that is being packaged (installed in the environment), not
the adareducer that is part of the testsuite source tree.

This new option prevents the testsuite from automatically adding the
adareducer part of the testsuite source tree to the environment.

TN: V317-010
2022-07-05 09:43:18 +02:00
Nicolas Setton
bfa51ef352 Merge pull request #30 from AdaCore/topic/tabs
Fix support for tabs
2022-02-09 13:05:33 +00:00
Nicolas Setton
c2fb9c188a Fix support for tabs
Do this by removing all tabs from files - if the issue disappears
after removal of tabs, give up and ask the user to remove tabs.

Fixes #5
2022-02-09 12:50:44 +00:00
Nicolas Setton
4475f5b086 Fix issue with brute force removals
There could be a case where the brute force removal is successful
in getting rid of a file, but the engine still tries to read this
file from disk later. Add defensive programming against this and
add a test.

Fixes #27
2022-02-09 11:55:15 +00:00
Nicolas Setton
bb3c8df5d8 Avoid eating sources in externally built projects
Add a method in ProjectResolver to query whether a source belongs
to the non-externally-built closure.

Use this to filter out files discovered when --follow-closure
is used to walk the closure.

Add a test.
2022-02-08 14:02:18 +00:00
Nicolas Setton
797009b77d Add a basic CI 2022-02-07 16:04:14 +01:00
Nicolas Setton
ec89ff0cc7 Add an "adareducer" script at the toplevel
For the benefit of the development environment, or any
users who only "git clone" this repository and work from it.

Fix the testsuite using this.

Rename the "adareducer" source dir to "ada_reducer"
2022-02-02 16:18:41 +00:00
Ghjuvan Lacambre
c51e0a8c97 engine.py: perform a first pass pretending to remove unnecessary files
This commit makes adareducer attempt to rename as many files as possible
before doing reduction.
2022-02-02 10:56:33 +01:00
Nicolas Setton
836715f10e Add a strategy to attempt removal of aspects
Do this before attempting to remove subprograms. When this
is successful, this allows more subprograms to be suppressed.

Add a test.

Fixes #11
2022-02-01 13:54:08 +00:00
Nicolas Setton
b88f945033 Add proper support for projects
Thanks to the Libadalang "SourceFiles" class.

Add a test.
2022-01-31 17:04:08 +00:00
Nicolas Setton
54553a364e Fix the name of the testsuite driver class
Fixes copypasta
2022-01-31 16:55:01 +00:00
Nicolas Setton
a24665c29d Add an e3 testsuite
Add a minimal test.
2022-01-31 15:06:32 +00:00