Skip to content

Commit

Permalink
[2/2] Add a test for the new deprecated flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Apr 29, 2022
1 parent fb2079f commit f901dab
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions tests/reftests/deprecated.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ flags: deprecated
### opam install a --show
The following actions would be faked:
=== install 1 package
- install a 2
- install a 2 (deprecated)
### <pkg:a.1>
opam-version: "2.0"
### opam install a
Expand Down Expand Up @@ -49,15 +49,18 @@ Done.
### opam install a.2
The following actions will be faked:
=== downgrade 1 package
- downgrade a 3 to 2
- downgrade a 3 to 2 (deprecated)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Faking installation of a.2
Done.

<><> a.2 installed successfully <><><><><><><><><><><><><><><><><><><><><><><><>
=> Note: This package is deprecated.
### opam upgrade a
The following actions will be faked:
=== upgrade 1 package
- upgrade a 2 to 3
- upgrade a 2 (deprecated) to 3

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Faking installation of a.3
Expand Down Expand Up @@ -86,20 +89,23 @@ Nothing to do.
### opam upgrade b
The following actions will be faked:
=== downgrade 1 package
- downgrade a 3 to 2 [required by b]
- downgrade a 3 to 2 (deprecated) [required by b]
=== upgrade 1 package
- upgrade b 1 to 2

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Faking installation of a.2
Faking installation of b.2
Done.

<><> a.2 installed successfully <><><><><><><><><><><><><><><><><><><><><><><><>
=> Note: This package is deprecated.
### opam upgrade
The following actions will be faked:
=== downgrade 1 package
- downgrade b 2 to 1 [uses a]
- downgrade b 2 to 1 [uses a]
=== upgrade 1 package
- upgrade a 2 to 3
- upgrade a 2 (deprecated) to 3

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Faking installation of a.3
Expand All @@ -122,24 +128,33 @@ Nothing to do.
### opam upgrade b.3
The following actions will be faked:
=== upgrade 1 package
- upgrade b 1 to 3
- upgrade b 1 to 3 (deprecated)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Faking installation of b.3
Done.

<><> b.3 installed successfully <><><><><><><><><><><><><><><><><><><><><><><><>
=> Note: This package is deprecated.
### opam install a.2
The following actions will be faked:
=== downgrade 1 package
- downgrade a 3 to 2
- downgrade a 3 to 2 (deprecated)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Faking installation of a.2
Done.

<><> a.2 installed successfully <><><><><><><><><><><><><><><><><><><><><><><><>
=> Note: This package is deprecated.
### opam upgrade
The following actions will be faked:
=== upgrade 1 package
- upgrade a 2 to 4
- upgrade a 2 (deprecated) to 4 (deprecated)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Faking installation of a.4
Done.

<><> a.4 installed successfully <><><><><><><><><><><><><><><><><><><><><><><><>
=> Note: This package is deprecated.

0 comments on commit f901dab

Please sign in to comment.