-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/machu/234-filter-subprograms' into 'master'
TGen: Add subprogram selection feature Closes #234 See merge request eng/ide/libadalang-tools!291
- Loading branch information
Showing
10 changed files
with
185 additions
and
26 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
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,3 @@ | ||
project Build is | ||
for Source_Dirs use ("src"); | ||
end Build; |
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,6 @@ | ||
package Pkg is | ||
function Inc (A : Integer) return Integer is (A + 1); | ||
function Dec (A : Integer) return Integer is (A - 1); | ||
function Mul (A : Integer; B : Integer) return Integer is (A * B); | ||
function Div (A : Integer; B : Integer) return Integer is (A / B); | ||
end Pkg; |
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,17 @@ | ||
<ExprFunction ["Mul"] pkg.ads:4:4-4:70>: subprogram skipped | ||
<ExprFunction ["Div"] pkg.ads:5:4-5:70>: subprogram skipped | ||
pkg.ads:3:4: info: corresponding test PASSED | ||
pkg.ads:3:4: info: corresponding test PASSED | ||
pkg.ads:3:4: info: corresponding test PASSED | ||
pkg.ads:3:4: info: corresponding test PASSED | ||
pkg.ads:3:4: info: corresponding test PASSED | ||
pkg.ads:2:4: info: corresponding test PASSED | ||
pkg.ads:2:4: info: corresponding test PASSED | ||
pkg.ads:2:4: info: corresponding test PASSED | ||
pkg.ads:2:4: info: corresponding test PASSED | ||
pkg.ads:2:4: info: corresponding test PASSED | ||
pkg.ads:2:4: error: corresponding test FAILED: Test not implemented. (pkg-test_data-tests.adb:45) | ||
pkg.ads:3:4: error: corresponding test FAILED: Test not implemented. (pkg-test_data-tests.adb:66) | ||
pkg.ads:4:4: error: corresponding test FAILED: Test not implemented. (pkg-test_data-tests.adb:87) | ||
pkg.ads:5:4: error: corresponding test FAILED: Test not implemented. (pkg-test_data-tests.adb:108) | ||
14 tests run: 10 passed; 4 failed; 0 crashed. |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
gnattest -P build.gpr \ | ||
--gen-test-vectors \ | ||
--gen-test-subprograms=pkg.ads:2,pkg.ads:3 | ||
gprbuild -q -P ./gnattest/harness/test_driver.gpr | ||
./gnattest/harness/test_runner |
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,5 @@ | ||
description: | | ||
Check that test case generation for explicit subprograms via | ||
`--gen-test-subprograms`. | ||
driver: shell_script |