Commit Graph

73 Commits

Author SHA1 Message Date
Pierre-Marie de Rodat
6f5c94eb02 Merge branch 'pmderodat/23.1' into '23.1'
Testsuite: add a couple of Windows-specific XFAILs

See merge request eng/ide/adareducer!40
2023-01-10 10:50:49 +00:00
Pierre-Marie de Rodat
e2e60765a8 Testsuite: add a couple of Windows-specific XFAILs
These failures still need to be investigated: XFAIL them in the
meantime.

TN: VA24-041
(cherry picked from commit 0d504c8c59)
2023-01-10 11:46:24 +01:00
Rowan Walshe
e9d0995bb9 Merge branch 'topic/add_ci' into 'master'
Initial revision of an anod-based CI

Closes #38

See merge request eng/ide/adareducer!37
2022-08-09 14:50:21 +00:00
Nicolas Setton
c94869e04f Initial revision of an anod-based CI 2022-08-09 10:56:03 +01:00
Pierre-Marie de Rodat
7e72532dfe Update after a Libadalang API change
For eng/libadalang/libadalang#932
2022-07-27 16:50:00 +02:00
Pierre-Marie de Rodat
45b5c1d43b Remove the dependency on "click"
The subset of click that is actually used matches what the standard
argparse module provides. Not depending on click simplifies the
packaging of adareducer.

TN: V317-010
2022-07-06 17:03:03 +02: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
Pierre-Marie de Rodat
298f0986c5 ada_reducer.gui: protect against ImportError exceptions for curses
On some platforms, importing the "curses" module raises an ImportError
because the system cannot find libncursesw.so.5 (recent systems only
provide libncursesw.so.6).

TN: V317-010
2022-07-05 09:43:18 +02:00
Pierre-Marie de Rodat
f97d5acfb7 setup.py: replace distutils with setuptools
distutils has been depredacated for some time now (see PEP 632), so use
setuptools, which seems to be the recomended replacement, now.

TN: V317-010
2022-07-05 09:43:18 +02:00
Ghjuvan Lacambre
eafd76dec3 main.py: explain --single-file and --follow-closure 2022-03-02 11:25:08 +01: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
edbb6ce1e0 Merge pull request #29 from AdaCore/topic/fix_deletion_leftover
Fix issue with brute force removals
2022-02-09 12:52:01 +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
34a8ebca8f Merge pull request #26 from AdaCore/topic/stop_at_externally_built
Prevent reduction of sources in "externally built" projects
2022-02-08 15:27:46 +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
f690aa879b Merge pull request #19 from AdaCore/topic/18
Add a basic CI
2022-02-07 15:07:54 +00:00
Nicolas Setton
797009b77d Add a basic CI 2022-02-07 16:04:14 +01:00
Nicolas Setton
a2659fb154 Merge pull request #23 from AdaCore/topic/add_driver_script
Add an "adareducer" script at the toplevel
2022-02-02 17:20:25 +00: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
633d948c13 Merge pull request #22 from pmderodat/master
Rename ada_reduce.py to adareducer after installation
2022-02-02 09:22:22 +00:00
Nicolas Setton
9294118425 Merge pull request #21 from AdaCore/topic/11
Add a strategy to attempt removal of aspects
2022-02-02 09:21:28 +00:00
Boris Yakobowski
737747e068 minor "typo" 2022-02-01 22:34:36 +01:00
Pierre-Marie de Rodat
03b4a0dd6e Rename ada_reduce.py to adareducer after installation 2022-02-01 20:36:25 +00:00