30 Commits

Author SHA1 Message Date
Anthony Leonardo Gracio
aab6877106 Remove GNATINSPECT variable from testsuite
No longer needed since gnatinspect has been removed
from ANCR's dev environment.

For eng/shared/anod#470
2024-09-05 15:31:42 +00:00
Anthony Leonardo Gracio
f600ec1472 Revert "Create temporary XDG_CACHE_HOME when running tests"
This reverts commit a11d935df2.
2024-08-06 13:17:47 +00:00
Anthony Leonardo Gracio
a11d935df2 Create temporary XDG_CACHE_HOME when running tests
To avoid spurious messages like:

  Fontconfig error: No writable cache directories

For eng/ide/gnatstudio#330
2024-07-22 15:12:26 +00:00
Vadim Godunko
02d0870812 Reformat testsuite by black. 2024-06-06 12:20:22 +00:00
Anthony Leonardo Gracio
4048cc6ea4 U330-031: Minor fixes for test driver
- find the "development" GS executable under Windows
- print out the error messages when launching run.sh

Change-Id: Idf25269dea96d04364ecd90283cab6badf98516b
2021-08-23 15:08:51 +01:00
Anthony Leonardo Gracio
8ec9aa35a7 Merge remote-tracking branch 'origin/master' into gtk-3.24
U308-025

Change-Id: I8ac1b77fed1a304e5b601aa4f18ccefd6ebc57b7
2021-04-02 15:11:52 +02:00
Anthony Leonardo Gracio
e13972e0e0 U330-031: Minor fixes for test driver
- find the "development" GS executable under Windows
- print out the error messages when launching run.sh

Change-Id: I62722cb928317ad0820b442fc9ebbc51baa054f2
2021-04-01 17:16:18 +02:00
Anthony Leonardo Gracio
232cc1646a Revert "U330-031 Minor fixes to the text driver"
This reverts commit b37429a471.

Reason for revert: <Makes gps_test to fail nightly>

Change-Id: I1bbd02f4def4686a913cba9a2fe9d355c494e3af
(cherry picked from commit b252097fad)
2021-04-01 16:01:58 +02:00
Anthony Leonardo Gracio
b252097fad Revert "U330-031 Minor fixes to the text driver"
This reverts commit b37429a471.

Reason for revert: <Makes gps_test to fail nightly>

Change-Id: I1bbd02f4def4686a913cba9a2fe9d355c494e3af
2021-04-01 15:50:56 +02:00
Nicolas Setton
b37429a471 U330-031 Minor fixes to the text driver
- find the "development" GS executable under Windows
  - print out the error messages when launching run.sh

Change-Id: I5a6849014bf0ad50c9185fa341bbd61ccc983e3a
2021-03-31 08:06:10 +02:00
Adrien Boulanger
b8581b399c TA14-030: Activate plugins for the coverage testsuite
Fix various Constraint_Error detected by the plugins activation:
- out of bound access when folding lines
- wrong test.yaml
- LSP_URI requires Normalized_Path
- fix autoformat.py plugin (special line edge case/context
issue/was trigger too soon)
- rename unicode.py to unicode_in_editor.py because of a name
collison with the default unicode function

(no-precommit-check)
Change-Id: I85b09ba3aea755522e012d698512fb1d1da84237
2020-12-10 15:27:57 +01:00
Nicolas Setton
6df6c4ea57 TA13-013 Fix launch of valgrind
Use the "GPS_WRAPPER" variable to allow valgrind to run on
gnatstudio_exe in the production environment.

Run black on basic.py


Change-Id: I278997e5d76d5809edfb5ff43311e04e7d5f7b50
2020-11-17 19:20:44 +01:00
Adrien Boulanger
172aaf4eaf TA14-030: Python coverage in GS
Monitor the new environment variable GNATSTUDIO_PYTHON_COV.
This variable must be set to the name of the directory being
tested.

Add --pycov switch in the testsuite CLI.

Create a pycov_data repository containing:
- preferences in the form of .coveragerc
- pycov_startup.xml: when put in $GNATSTUDIO_HOME\startup.xml
enabled all the plugins.
- all the generated file in the form of .coverage.${test_name}

When all the file are generated, run:
$ coverage combine # ignore this if there is only one .coverage*
$ coverage report
$ coverage html    # optional

Change-Id: I4b45243924d939ede5b885ff86541a6d70571b0c
2020-11-04 14:42:43 +01:00
Nicolas Setton
c01815bf22 Add a small facility to run the testsuite without Xvfb
Allows setting an environment variable to bypass the
use of Xvfb, useful when launching tests through anod.

no-tn-check

Change-Id: I7b3f2db1a088ad71188a924270f3b47f97399e12
2020-09-30 20:48:41 +00:00
Nicolas Setton
b806e681bf T512-030 add support for running tests under valgrind
Change-Id: Ifdcf6c5105a8cc6fd9e0ccdaed0c1d3a3491d862
2020-09-28 11:31:19 +02:00
Nicolas Setton
8580f2756b T717-032 Switch testsuite driver to e3
One step further in the transition from gnatpython to e3 and
Python 2 to Python 3.

Move hooks.py to Python 3.

Make the testsuite driver able to run the internal testsuite.
Adjust the test baselines to the "common ground" between
both testsuites.

Create a "gnatstudio_home" for all tests that's shared
between the internal and public testsuite.

Launch one Xvfb per parallel track.

Change-Id: I27806b14e20d39c8fe11d455c51b9424df1289a9
2020-09-14 10:51:19 +02:00
Adrien Boulanger
a13d2e62ee SB04-025: Wrong value for GNATSTUDIO_HOME.
Some tests were using .gps
Another was using the wrong directory.

Change-Id: Ic125e4fc0212da9e5190cc39e3fd12c714f8ff91
2019-11-05 15:27:21 +01:00
Adrien Boulanger
00dae78137 S904-001: Fix migration issues
Fix icons repository
Fix themes repository
Fix gnatstudio used by the testsuite

Change-Id: Ib4f4b84d7ce8cc414d8878c1fb9384425785eb8f
2019-09-20 16:47:53 +02:00
Anthony Leonardo Gracio
b571ffe879 S904-003: Rename .gps directory and keys6.xml file
And add a mechanism to copy the old .gps directory to .gnatstudio
the first time. Rename keys6.xml to keys.xml when importing the old
.gpr directory.

Change-Id: I1e1ea2c123ae772a547561737e2309d4c081f239
2019-09-11 18:41:03 +02:00
Nicolas Setton
41095e2018 S910-007 Rename user-visible GPS_* environment variables
Change-Id: I66fef53673be7088d2dd833990812a4682262fa0
2019-09-10 16:24:50 +02:00
Anthony Leonardo Gracio
9bd0aab187 S903-024: Rename gps executable to gnatstudio
And do a first basic pass on the documentation
(the GNAT Programming Studio -> GNAT Studio).

Change-Id: I8bd03d5d66278741b0a4716fc41efbe435a7ecb4
2019-09-09 15:05:15 +02:00
Nicolas Setton
829a7951c9 S821-034 Enhancements to developer workflows
* Make the ALS log the full in/out by default when executed
by the testsuite.

* Add a mechanism for capturing the ALS log files when running
tests as a developer.

* Add an __str__ method to LanguageServerResponse, for better
investigation in tests.

Also slight edit to a test in an attempt to understand it better.

Change-Id: I409e4af154e97916ee8755cf718723fc2444ed9b
2019-08-22 17:06:05 +02:00
Nicolas Setton
db1ef5d02c S429-008 Add support for using test.cmd in the testsuite
And add a test exercising this.

Change-Id: I4b63e03aeaffb7c7d512d9c5b070ebcbbbdd3f41
2019-04-30 15:32:42 +02:00
Andry Ogorodnik
d31552b65f S103-034 Hide omnisearch popup when swithing to another application.
Change-Id: I336ff7b14fd42d939c8cfe873ec985a205dff4c0
2019-01-24 18:27:09 +01:00
Nicolas Setton
130e98903c Do not timeout if GPS_PREVENT_EXIT is set
Small improvement to the development mode for tests.

no-tn-check
Change-Id: I21d43c3104db88e683c50425673b25f7a7b38e33
2018-07-28 01:46:18 +02:00