-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test(ship): Add coverage for binstall
As part of #16. Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
- Loading branch information
Showing
3 changed files
with
171 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
tests/fixtures/ship/validate_ship_binstall_globalalways_isused.stderr
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,34 @@ | ||
INFO cargo_liner::cargo > Fetching latest package versions... | ||
Updating `dummy-registry` index | ||
note: to learn more about a package, run `cargo info <name>` | ||
INFO cargo_liner > Results: | ||
┌──────┬─────────────┬─────────────┬────────┐ | ||
│ Name │ Old version │ New version │ Status │ | ||
├──────┼─────────────┼─────────────┼────────┤ | ||
│ abc │ ø │ 0.0.0 │ 🛈 │ | ||
└──────┴─────────────┴─────────────┴────────┘ | ||
INFO cargo_liner::cargo > Installing `abc`... | ||
INFO resolve: Resolving package: 'abc' | ||
ERROR Fatal error: | ||
|
||
× For crate abc: could not GET http://127.0.0.1:[..]/index/config.json: | ||
│ builder error for url (http://127.0.0.1:[..]/index/config.json) | ||
├─▶ could not GET http://127.0.0.1:[..]/index/config.json: builder error | ||
│ for url (http://127.0.0.1:[..]/index/config.json) | ||
├─▶ builder error for url (http://127.0.0.1:[..]/index/config.json) | ||
╰─▶ URL scheme is not allowed | ||
|
||
Error: | ||
0: Failed to install or update one of the configured packages. | ||
1: Failed to install "abc". | ||
2: Cargo process finished unsuccessfully: [EXIT_STATUS]: 76 | ||
|
||
Location: | ||
src/[..].rs:[..] | ||
|
||
Note: This can happen for many reasons. | ||
Suggestion: Read Cargo's output. | ||
Suggestion: Use `--no-fail-fast` to ignore this and continue on with other packages. | ||
|
||
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it. | ||
Run with RUST_BACKTRACE=full to include source snippets. |
27 changes: 27 additions & 0 deletions
27
tests/fixtures/ship/validate_ship_binstall_globalnever_isunused.stderr
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,27 @@ | ||
INFO cargo_liner::cargo > Fetching latest package versions... | ||
Updating `dummy-registry` index | ||
note: to learn more about a package, run `cargo info <name>` | ||
INFO cargo_liner > Results: | ||
┌──────┬─────────────┬─────────────┬────────┐ | ||
│ Name │ Old version │ New version │ Status │ | ||
├──────┼─────────────┼─────────────┼────────┤ | ||
│ abc │ ø │ 0.0.0 │ 🛈 │ | ||
└──────┴─────────────┴─────────────┴────────┘ | ||
INFO cargo_liner::cargo > Installing `abc`... | ||
Updating `dummy-registry` index | ||
Downloading crates ... | ||
Downloaded abc v0.0.0 (registry `dummy-registry`) | ||
Installing abc v0.0.0 (registry `dummy-registry`) | ||
Updating `dummy-registry` index | ||
Compiling abc v0.0.0 (registry `dummy-registry`) | ||
Finished `release` profile [optimized] target(s) in [ELAPSED]s | ||
Installing [ROOT]/home/.cargo/bin/abc | ||
Installed package `abc v0.0.0 (registry `dummy-registry`)` (executable `abc`) | ||
warning: be sure to add `[ROOT]/home/.cargo/bin` to your PATH to be able to run the installed binaries | ||
INFO cargo_liner > Installation report: | ||
┌──────┬─────────────┬─────────────┬────────┐ | ||
│ Name │ Old version │ New version │ Status │ | ||
├──────┼─────────────┼─────────────┼────────┤ | ||
│ abc │ ø │ 0.0.0 │ + │ | ||
└──────┴─────────────┴─────────────┴────────┘ | ||
INFO cargo_liner > Done. |
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