forked from ocaml/opam
-
Notifications
You must be signed in to change notification settings - Fork 0
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 ocaml#5004 from AltGr/tests-autoupd
Some new tests, and auto-update after package def
- Loading branch information
1 parent
d641689
commit c4a44d7
Showing
15 changed files
with
257 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
N0REP0 | ||
### <pkg:a.2> | ||
opam-version: "2.0" | ||
flags: avoid-version | ||
### opam switch create default --empty | ||
### OPAMFAKE=1 | ||
### OPAMYES=1 | ||
### opam install a --show | ||
The following actions would be faked: | ||
- install a 2 | ||
### <pkg:a.1> | ||
opam-version: "2.0" | ||
### opam install a | ||
The following actions will be faked: | ||
- install a 1 | ||
|
||
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> | ||
Faking installation of a.1 | ||
Done. | ||
### opam upgrade a | ||
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades). | ||
|
||
The following packages are not being upgraded because the new versions conflict with other installed packages: | ||
- a.2 | ||
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages. | ||
Nothing to do. | ||
### <pkg:a.1.1> | ||
opam-version: "2.0" | ||
### opam upgrade a | ||
The following actions will be faked: | ||
- upgrade a 1 to 1.1 | ||
|
||
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> | ||
Faking installation of a.1.1 | ||
Done. | ||
### <pkg:a.3> | ||
opam-version: "2.0" | ||
### opam upgrade a | ||
The following actions will be faked: | ||
- upgrade a 1.1 to 3 | ||
|
||
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> | ||
Faking installation of a.3 | ||
Done. | ||
### opam install a.2 | ||
The following actions will be faked: | ||
- downgrade a 3 to 2 | ||
|
||
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> | ||
Faking installation of a.2 | ||
Done. | ||
### opam upgrade a | ||
The following actions will be faked: | ||
- upgrade a 2 to 3 | ||
|
||
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> | ||
Faking installation of a.3 | ||
Done. | ||
### <pkg:b.1> | ||
opam-version: "2.0" | ||
depends: "a" | ||
### <pkg:b.2> | ||
opam-version: "2.0" | ||
depends: "a" {= "2"} | ||
### opam install b | ||
The following actions will be faked: | ||
- install b 1 | ||
|
||
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> | ||
Faking installation of b.1 | ||
Done. | ||
### opam upgrade | ||
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades). | ||
|
||
The following packages are not being upgraded because the new versions conflict with other installed packages: | ||
- b.2 | ||
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages. | ||
Nothing to do. | ||
### opam upgrade b | ||
The following actions will be faked: | ||
- downgrade a 3 to 2 [required by b] | ||
- upgrade b 1 to 2 | ||
===== 1 to upgrade | 1 to downgrade ===== | ||
|
||
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> | ||
Faking installation of a.2 | ||
Faking installation of b.2 | ||
Done. | ||
### opam upgrade | ||
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades). | ||
|
||
The following packages are not being upgraded because the new versions conflict with other installed packages: | ||
- a.3 | ||
-- b.2 is installed and requires a = 2 | ||
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages. | ||
Nothing to do. | ||
### <pkg:a.4> | ||
opam-version: "2.0" | ||
flags: avoid-version | ||
### <pkg:b.3> | ||
opam-version: "2.0" | ||
flags: avoid-version | ||
### opam upgrade | ||
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades). | ||
|
||
The following packages are not being upgraded because the new versions conflict with other installed packages: | ||
- a.4 | ||
- b.3 | ||
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages. | ||
Nothing to do. | ||
### opam upgrade b.3 | ||
The following actions will be faked: | ||
- upgrade b 2 to 3 | ||
|
||
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> | ||
Faking installation of b.3 | ||
Done. | ||
### opam install a.2 | ||
[NOTE] Package a is already installed (current version is 2). | ||
### opam upgrade | ||
The following actions will be faked: | ||
- upgrade a 2 to 4 | ||
|
||
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> | ||
Faking installation of a.4 | ||
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
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
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
Oops, something went wrong.