-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ballerina-cli tests for new diagnostics
- Loading branch information
Showing
19 changed files
with
38 additions
and
19 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
2 changes: 1 addition & 1 deletion
2
...c/test/resources/test-resources/command-outputs/unix/build-bal-with-absolute-jar-path.txt
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Compiling source | ||
hello_world.bal | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files (BCE5401) | ||
|
||
Generating executable | ||
<ABSOLUTE_JAR_PATH> |
2 changes: 1 addition & 1 deletion
2
cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-bar-bal.txt
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Compiling source | ||
hello_world.bal | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files (BCE5401) | ||
|
||
Generating executable | ||
bar.jar |
2 changes: 1 addition & 1 deletion
2
cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/build-foo-bal.txt
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Compiling source | ||
hello_world.bal | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files (BCE5401) | ||
|
||
Generating executable | ||
foo.jar |
2 changes: 1 addition & 1 deletion
2
...esources/test-resources/command-outputs/unix/build-hello-world-bal-with-build-options.txt
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Compiling source | ||
hello_world.bal | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files (BCE5401) | ||
|
||
Generating executable | ||
hello_world.jar |
2 changes: 1 addition & 1 deletion
2
...rina-cli/src/test/resources/test-resources/command-outputs/unix/build-hello-world-bal.txt
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Compiling source | ||
hello_world.bal | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files (BCE5401) | ||
|
||
Generating executable | ||
hello_world.jar |
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
8 changes: 6 additions & 2 deletions
8
...erina-cli/src/test/resources/test-resources/command-outputs/unix/build-syntax-err-bal.txt
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
Compiling source | ||
hello_world.bal | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files | ||
ERROR [hello_world.bal:(2:3,2:4)] invalid token ';' | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files (BCE5401) | ||
ERROR [hello_world.bal:(2:3,2:4)] invalid token ';' (BCE0600) | ||
| | ||
2 | };; | ||
| ^ | ||
|
6 changes: 5 additions & 1 deletion
6
...a-cli/src/test/resources/test-resources/command-outputs/unix/build-syntax-err-package.txt
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
Compiling source | ||
foo/winery:0.1.0 | ||
ERROR [hello_world.bal:(2:3,2:4)] invalid token ';' | ||
ERROR [hello_world.bal:(2:3,2:4)] invalid token ';' (BCE0600) | ||
| | ||
2 | };; | ||
| ^ | ||
|
2 changes: 1 addition & 1 deletion
2
...cli/src/test/resources/test-resources/command-outputs/unix/dump-build-time-standalone.txt
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
2 changes: 1 addition & 1 deletion
2
...est/resources/test-resources/command-outputs/windows/build-bal-with-absolute-jar-path.txt
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Compiling source | ||
hello_world.bal | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files (BCE5401) | ||
|
||
Generating executable | ||
<ABSOLUTE_JAR_PATH> |
2 changes: 1 addition & 1 deletion
2
...ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-bar-bal.txt
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Compiling source | ||
hello_world.bal | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files (BCE5401) | ||
|
||
Generating executable | ||
bar.jar |
2 changes: 1 addition & 1 deletion
2
...ballerina-cli/src/test/resources/test-resources/command-outputs/windows/build-foo-bal.txt
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Compiling source | ||
hello_world.bal | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files (BCE5401) | ||
|
||
Generating executable | ||
foo.jar |
2 changes: 1 addition & 1 deletion
2
...urces/test-resources/command-outputs/windows/build-hello-world-bal-with-build-options.txt
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Compiling source | ||
hello_world.bal | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files (BCE5401) | ||
|
||
Generating executable | ||
hello_world.jar |
2 changes: 1 addition & 1 deletion
2
...a-cli/src/test/resources/test-resources/command-outputs/windows/build-hello-world-bal.txt
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Compiling source | ||
hello_world.bal | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files (BCE5401) | ||
|
||
Generating executable | ||
hello_world.jar |
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
8 changes: 6 additions & 2 deletions
8
...na-cli/src/test/resources/test-resources/command-outputs/windows/build-syntax-err-bal.txt
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
Compiling source | ||
hello_world.bal | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files | ||
ERROR [hello_world.bal:(2:3,2:4)] invalid token ';' | ||
WARNING [:(1:1,1:1)] Skipped adding the generated source file with prefix "dummyfunc". Source file generation is not supported with standalone bal files (BCE5401) | ||
ERROR [hello_world.bal:(2:3,2:4)] invalid token ';' (BCE0600) | ||
| | ||
2 | };; | ||
| ^ | ||
|
6 changes: 5 additions & 1 deletion
6
...li/src/test/resources/test-resources/command-outputs/windows/build-syntax-err-package.txt
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
Compiling source | ||
foo/winery:0.1.0 | ||
ERROR [hello_world.bal:(2:3,2:4)] invalid token ';' | ||
ERROR [hello_world.bal:(2:3,2:4)] invalid token ';' (BCE0600) | ||
| | ||
2 | };; | ||
| ^ | ||
|
2 changes: 1 addition & 1 deletion
2
.../src/test/resources/test-resources/command-outputs/windows/dump-build-time-standalone.txt
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