-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more integration tests to libcnb-test (#717)
Improves the integration test coverage in preparation for fixing #666, so as to (a) reduce the size of that PR, (b) make it easier to see the before/after of the error output. GUS-W-14416222.
- Loading branch information
Showing
16 changed files
with
243 additions
and
44 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
libcnb-test/tests/fixtures/buildpacks/compile-error/Cargo.toml
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] | ||
name = "compile-error" | ||
version = "0.0.0" | ||
publish = false | ||
|
||
[workspace] |
8 changes: 8 additions & 0 deletions
8
libcnb-test/tests/fixtures/buildpacks/compile-error/buildpack.toml
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,8 @@ | ||
api = "0.8" | ||
|
||
[buildpack] | ||
id = "libcnb-test/compile-error" | ||
version = "0.0.0" | ||
|
||
[[stacks]] | ||
id = "*" |
3 changes: 3 additions & 0 deletions
3
libcnb-test/tests/fixtures/buildpacks/compile-error/src/main.rs
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 @@ | ||
fn main() { | ||
compile_error!("Example compile error"); | ||
} |
3 changes: 2 additions & 1 deletion
3
...tures/buildpacks/libcnb-test-a/Cargo.toml → ...ixtures/buildpacks/component-a/Cargo.toml
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,5 +1,6 @@ | ||
[package] | ||
name = "one" | ||
name = "component-a" | ||
version = "0.0.0" | ||
publish = false | ||
|
||
[workspace] |
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...tures/buildpacks/libcnb-test-b/Cargo.toml → ...ixtures/buildpacks/component-b/Cargo.toml
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,5 +1,6 @@ | ||
[package] | ||
name = "two" | ||
name = "component-b" | ||
version = "0.0.0" | ||
publish = false | ||
|
||
[workspace] |
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
libcnb-test/tests/fixtures/buildpacks/composite-missing-package-toml/buildpack.toml
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,11 @@ | ||
api = "0.8" | ||
|
||
[buildpack] | ||
id = "libcnb-test/composite-missing-package-toml" | ||
version = "0.0.0" | ||
|
||
[[order]] | ||
|
||
[[order.group]] | ||
id = "libcnb-test/a" | ||
version = "0.0.0" |
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
11 changes: 11 additions & 0 deletions
11
libcnb-test/tests/fixtures/buildpacks/invalid-buildpack-toml/buildpack.toml
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,11 @@ | ||
api = "0.8" | ||
|
||
[buildpack] | ||
id = "libcnb-test/invalid-buildpack-toml" | ||
version = "0.0.0" | ||
|
||
[[order]] | ||
|
||
[[order.group]] | ||
id = "libcnb-test/a" | ||
# `version` is a required field, but is missing. |
4 changes: 4 additions & 0 deletions
4
libcnb-test/tests/fixtures/buildpacks/invalid-cargo-toml/Cargo.toml
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,4 @@ | ||
[package] | ||
# `name` and `version` are a required fields, but are missing. | ||
|
||
[workspace] |
8 changes: 8 additions & 0 deletions
8
libcnb-test/tests/fixtures/buildpacks/invalid-cargo-toml/buildpack.toml
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,8 @@ | ||
api = "0.8" | ||
|
||
[buildpack] | ||
id = "libcnb-test/invalid-cargo-toml" | ||
version = "0.0.0" | ||
|
||
[[stacks]] | ||
id = "*" |
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