Skip to content

Commit

Permalink
Merge branch '11-multiple-gnatrefactor-regressions-on-windows' into '…
Browse files Browse the repository at this point in the history
…master'

Resolve "Multiple gnatrefactor regressions on Windows"

Closes #11

See merge request eng/ide/libadalang-tools!41
  • Loading branch information
joaopsazevedo committed Feb 8, 2023
2 parents b0ff915 + ac199f2 commit 477a463
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
usage: gnatrefactor(?:\.exe)? \[--help\|-h] \[--help\|-h] tool \[--verbose\|-v] \[--pipe\|-p]\s*
\s*\[--project\|-P PROJECT] \[--sources\|-S SOURCES \[SOURCES\.\.\.]]\s*
\s*\[-X nm=val \[nm=val\.\.\.]] \[--from-gnat-warnings\|-fgw\s*
\s*<file_with_gnat_warnings>]\s*
usage: gnatrefactor [--help|-h] [--help|-h] tool [--verbose|-v] [--pipe|-p]
[--project|-P PROJECT] [--sources|-S SOURCES [SOURCES...]]
[-X nm=val [nm=val...]] [--from-gnat-warnings|-fgw
<file_with_gnat_warnings>]

Refactor tools

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ description: Tests the output of the --help flag

driver: shell_script

baseline_regexp: True
control:
- ['SKIP', 'env.build.os.name != "linux"']
22 changes: 22 additions & 0 deletions testsuite/tests/lint/common/help_windows/test.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
usage: gnatrefactor.exe [--help|-h] [--help|-h] tool [--verbose|-v] [--pipe|-p]
[--project|-P PROJECT] [--sources|-S SOURCES
[SOURCES...]] [-X nm=val [nm=val...]]
[--from-gnat-warnings|-fgw <file_with_gnat_warnings>]

Refactor tools

positional arguments:
tool array_aggregates

optional arguments:
--help, -h Show this help message
--help, -h Help
--verbose, -v Print traces
--pipe, -p Print the result to stdout instead of editing the
files on disk
--project, -P Project
--sources, -S Source files to refactor
-X Specify an external reference for Project Files
--from-gnat-warnings, -fgw File with all obsolescent syntax GNAT warnings


1 change: 1 addition & 0 deletions testsuite/tests/lint/common/help_windows/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gnatrefactor --help
8 changes: 8 additions & 0 deletions testsuite/tests/lint/common/help_windows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: help

description: Tests the output of the --help flag

driver: shell_script

control:
- ['SKIP', 'env.build.os.name != "windows"']

0 comments on commit 477a463

Please sign in to comment.