63 Commits

Author SHA1 Message Date
Boulanger
02daf225c1 Change diff representation
"-" for the expected result
"+" for the test result

no-issue-check
2024-11-28 16:55:06 +00:00
Boulanger
9ee3443161 Improve testsuite
- Allow string as "id"

- Add PYTHON macro for local runs

Closes eng/ide/ada_language_server#1475
2024-10-15 13:52:26 +00:00
Boulanger
c406716d82 Tester-Runner: match request by ID before doing a diff
The waits can be polluted by indexing requests and we should
ignore them in the diff.

Closes eng/ide/ada_language_server#1361
2024-05-28 14:13:26 +00:00
Boulanger
62e1584d5b Fix missmatch option name in tester
For eng/ide/ada_language_server#1314
2024-03-29 15:22:26 +01:00
Maxim Reznik
129d9a1d70 Avoid constraint_error on comparing json values
of unmatched kinds.

(no-tn-check)
2024-03-06 11:01:50 +02:00
Philippe Gil
576dcb30c3 Fix ALS crashes on:
- with ""
- with "imported" -- when imported parsing generates an assert_error.
- with "A", "B" -- when both imported files have the same project name

add support for $FILE{path} in tester

Closes #1295
2024-02-28 15:08:55 +00:00
Boulanger
853e703956 Reduce ALS testsuite output
Print a diff in stdout and log the full output in out/new/*.log
Add a switch failed_out for dev usage, by default it's set to "diff"

eng/ide/ada_language_server#1161
2023-12-20 13:31:02 +00:00
Vadim Godunko
7de953f381 Update code to new Spawn API. 2023-04-26 15:38:45 +03:00
Maxim Reznik
bf95c5ef62 Make append_to_env prepend a new value
instead of append it to prioritize specified path over
existing one. This allow use fake `alr` even if there is original
`alr` in the `PATH` (as on GitHub CI). Rename `append_to_env` to
`prepend_to_env`.
2023-02-15 14:37:26 +02:00
Maxim Reznik
b80398d3b2 Increase test's timeout
to let gpr2 read the project.

W119-049
2023-02-08 23:12:22 +02:00
Maxim Reznik
fce7685afa Add append_to_env command to tester-run 2023-02-07 14:32:53 +00:00
Maxim Reznik
5ce5e86889 W119-049 Add --on-hang-script option to tester-run 2023-02-02 14:11:39 +00:00
Maxim Reznik
094f132ad7 W119-049 Use VSS.Command_Line to parse tester-run options 2023-02-02 14:11:39 +00:00
Maxim Reznik
579b5f9f66 Update ALS after changes in Spawn. 2022-12-26 15:26:14 +02:00
Maxim Reznik
409f4c4058 Try to avoid callbacks after process death
by closing stdin/stdout as a workaround.
2022-11-30 15:22:53 +02:00
Maxim Reznik
835653cda0 Ensure that a test has unique request ids.
This prevents test failures like this:
```
task server.input_task_0000000006F6B0B0 terminated by unhandled exception
raised CONSTRAINT_ERROR : LSP.Servers.Request_Maps.Delete: attempt to delete key not in map
[/home/runner/work/ada_language_server/ada_language_server/.obj/server/ada_language_server]
0x14420fd lsp__servers__request_maps__delete at ???
0x145d8c4 lsp__servers__input_task_typeTB at ???

```
2022-07-22 17:17:51 +03:00
Maxim Reznik
b93bd59506 Allow more complex sorting in LSP tests.
Extend `sortReply` to work with keys nested in objects
inside JSON array. With this sort complex reply JSON to have
more stable tests.

For instance

```json
"sortReply": {"result": {"range": {"start": "line"}}}
```

will sort `result` JSON array using `X.range.start.line` as
a sorting key, where `X` is an array item.

Allow integer JSON values as sorting keys also.
2022-06-07 19:11:28 +03:00
Anthony Leonardo Gracio
fab0e3e718 V103-022: Fix warning on edge 2022-01-11 08:43:00 +00:00
Joao Azevedo
da351126b3 UA28-007 Fixed regressions on Windows and MacOS
Skipped two tests on windows due to UC10-027
2021-12-13 09:08:00 +00:00
Nicolas Setton
131864a56b Add support of square brackets
Do this under the option "-gnatX", which works both on AdaCore compilers
and on recent community compilers.
2021-12-03 18:55:17 +00:00
Maxim Reznik
902651bc96 UB30-020 Hide no_root_types_ name from completion
results, because it's an internal LAL package.
Also add a fix for `tester-run --debug` command.
2021-11-30 16:07:38 +02:00
Joao Azevedo
343db62d38 Added <DOES_NOT_HAVE> pattern 2021-11-25 14:31:14 +01:00
Maxim Reznik
1a2868b1f6 U617-025 Make test suite more stable
by changing timeout logic. Reset timeout on each server message, so
while server sends messages within given timeout the tester
command keeps running.
2021-11-01 10:02:33 +02:00
Anthony Leonardo Gracio
fb0b53910a U617-025: Add flexibility to testsuite
. Parse the command line present in the JSON tests correctly,
  to take into account additional arguments that can be specified
  (e.g: specific tracefile for a given test).

. Add a 'waitFactor' field that allows to modify the wait factor
  (i.e: the timeout) for a specific command.
2021-09-06 17:04:00 +02:00
Vadim Godunko
44d7dd8828 U505-038 Reflect chnages in Process API. 2021-05-20 23:18:05 +03:00