Skip to content

Commit

Permalink
reftest: add a test showing the behaviour of opam list --latests-only
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Jul 30, 2024
1 parent 15db4a9 commit 60c7770
Show file tree
Hide file tree
Showing 2 changed files with 36 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 @@ -141,6 +141,7 @@ users)
* env: Add a test for `build-env` overwrites build env opam environment variables [#5377 @rjbou]
* clean: Add to check cleaning of sources directories [#5474 @rjbou]
* Add reftest for `--verbose-on` option [#5682 @rjbou]
* Add a test showing the behaviour of `opam list --latests-only` [#5375 @kit-ty-kate]

### Engine

Expand Down
35 changes: 35 additions & 0 deletions tests/reftests/list.test
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,38 @@ other-choice.4
should.1
top.1
unrelated.1
### ::: Check the behaviour of --latests-only
### OPAMVAR_arch=x86_64
### <pkg:package.1>
opam-version: "2.0"
### <pkg:package.2>
opam-version: "2.0"
available: arch = "arm64"
### opam update norepo

<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[norepo] synchronised from file://${BASEDIR}/REPO
Now run 'opam upgrade' to apply any package updates.
### opam list --latests-only --all-versions --short
choice.1
other-choice.4
package.2
should.1
shouldnt.1
top.1
unrelated.1
### opam list --available --latests-only --all-versions --short
choice.1
other-choice.4
package.1
should.1
shouldnt.1
top.1
unrelated.1
### opam list --latests-only --available --all-versions --short
choice.1
other-choice.4
should.1
shouldnt.1
top.1
unrelated.1

0 comments on commit 60c7770

Please sign in to comment.