-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from ansasaki/check
Add check subcommand Fixes #28
- Loading branch information
Showing
17 changed files
with
509 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Map without base release and without wildcard | ||
|
||
BASELESS_1_0_0 | ||
{ | ||
global: | ||
one_symbol; | ||
} ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
# Testing broken map files (some just give warnings) | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "nameless.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
exceptions: | ||
- "Invalid Release identifier" | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "duplicated.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
- "Duplicated Release identifier" | ||
exceptions: | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "opening.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
exceptions: | ||
- "Missing '{'" | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "invalid_element.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
exceptions: | ||
- "Invalid identifier" | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "missing_semicolon.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
exceptions: | ||
- "Missing ';' or ':' after" | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "missing_visibility.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
- "Missing visibility scope before" | ||
- "Symbols considered in 'global:'" | ||
exceptions: | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "invalid_previous.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
exceptions: | ||
- "Invalid identifier" | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "missing_previous_closer.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
exceptions: | ||
- "Missing ';'" | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "non_existing_previous.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
exceptions: | ||
- "Release 'LIBTC5_8_0_0' not found" | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "duplicated_dependency.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
- "Duplicated Release identifier 'LIBTC5_9_0_0'" | ||
exceptions: | ||
- "defined more than 1 release 'LIBTC5_9_0_0'" | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "circular_dependency.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
exceptions: | ||
- "Circular dependency detected!" | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "wildcard_warnings.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
- "NOTBASE_1_1_0 should not contain the local wildcard because it is \ | ||
not the base version (it refers to version BASE_1_0_0 as its \ | ||
predecessor)" | ||
- "GLOBAL_WILDCARD_1_2_0 contains the '*' wildcard in global scope. \ | ||
It is probably exporting symbols it should not." | ||
- "SCOPES_1_3_0contains unknown scope named scope (different from \ | ||
'global' and 'local')" | ||
- "The '*' wildcard was found in more than one place:" | ||
- " NOTBASE_1_1_0: in 'local'" | ||
- " BASE_1_0_0: in 'local'" | ||
- " GLOBAL_WILDCARD_1_2_0: in 'global'" | ||
- " OTHER_BASE_1_0_0: in 'local'" | ||
- "More than one release seems the base version (contains the local \ | ||
wildcard and does not have a predecessor version):" | ||
- " BASE_1_0_0" | ||
- " OTHER_BASE_1_0_0" | ||
exceptions: | ||
- | ||
input: | ||
args: | ||
- "check" | ||
- "baseless.map" | ||
stdin: | ||
output: | ||
file: | ||
stdout: | ||
warnings: | ||
- "The '*' wildcard was not found" | ||
- "No base version release found" | ||
exceptions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Broken map with circular dependency | ||
|
||
LIBTC5_9_2_0 | ||
{ | ||
global: | ||
one_symbol; | ||
} LIBTC5_9_1_0; | ||
|
||
LIBTC5_9_1_0 | ||
{ | ||
global: | ||
two_symbol; | ||
} LIBTC5_9_0_0; | ||
|
||
LIBTC5_9_0_0 | ||
{ | ||
global: | ||
three_symbol; | ||
} LIBTC5_9_2_0; | ||
|
||
LIBBASE_1_0_0 | ||
{ | ||
global: | ||
zero_symbol; | ||
local: | ||
*; | ||
} ; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Broken map with duplicated releases | ||
# This is non-critical, only warning generated | ||
|
||
LIBTC5_1_0_0 | ||
{ | ||
global: | ||
other_symbol; | ||
local: | ||
*; | ||
} ; | ||
|
||
LIBTC5_1_0_0 | ||
{ | ||
global: | ||
some_symbol; | ||
local: | ||
*; | ||
} ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Broken map with duplicated dependency | ||
|
||
LIBTC5_9_1_0 | ||
{ | ||
global: | ||
other_symbol; | ||
} LIBTC5_9_0_0; | ||
|
||
LIBTC5_9_0_0 | ||
{ | ||
global: | ||
another_symbol; | ||
local: | ||
*; | ||
} ; | ||
|
||
LIBTC5_9_0_0 | ||
{ | ||
global: | ||
one_more_symbol; | ||
local: | ||
*; | ||
} ; |
Oops, something went wrong.