Skip to content

Commit

Permalink
reftest: add a test in admin to check repo version and its upgrade ad…
Browse files Browse the repository at this point in the history
…vice
  • Loading branch information
rjbou committed Feb 19, 2025
1 parent b2e684b commit 0f81ab6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ users)
* Add a test showing the behaviour of `opam upgrade` with packages flagged with `avoid-version`/`deprecated` [#6273 @kit-ty-kate]
* Add a test showing the behaviour when a pin depend is unpinned [#6380 @rjbou]
* Add a test to ensure `opam upgrade <pkg>` will not upgrade unrelated things [#6373 @kit-ty-kate]
* Add a test in admin to test repository version upgrade advice [#6385 @rjbou]

### Engine

Expand Down
20 changes: 20 additions & 0 deletions tests/reftests/admin.test
Original file line number Diff line number Diff line change
Expand Up @@ -766,3 +766,23 @@ no-extra.1
no-extra.2
### opam admin list --short --all-versions --latests-only
no-extra.2
### ::: Test opam repo version warning
### rm -rf packages
### <packages/dummy/dummy.1/opam>
opam-version: "2.0"
### : repo 1.2
### <repo>
opam-version: "1.2"
### opam admin list --short
[WARNING] The repository is at version 1.2, please consider upgrading to 2.0 with 'opam admin upgrade'
dummy
### : missing repo, assuming 1.2
### rm repo
### opam admin list --short
[WARNING] The repository is at version 1.2, please consider upgrading to 2.0 with 'opam admin upgrade'
dummy
### : repo 2.0
### <repo>
opam-version: "2.0"
### opam admin list --short
dummy

0 comments on commit 0f81ab6

Please sign in to comment.