Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend the tests on opam admin check by including all the arguments
Browse files Browse the repository at this point in the history
kit-ty-kate committed Dec 11, 2024
1 parent 10680d2 commit 4a441e5
Showing 2 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
@@ -145,6 +145,7 @@ users)
### Tests
* Add switch removal test: failure on removal linked switch [#6276 @btjorge]
* Extend the tests on opam admin to include packages using builtin global variables [#6331 @kit-ty-kate]
* Extend the tests on opam admin check by including all the arguments [#6331 @kit-ty-kate]

### Engine

42 changes: 42 additions & 0 deletions tests/reftests/admin.test
Original file line number Diff line number Diff line change
@@ -329,6 +329,48 @@ Summary: out of 21 packages (18 distinct names)
- 2 uninstallable roots

# Return code 1 #
### opam admin check -i
Checking installability of every package. This may take a few minutes...
[ERROR] These packages are not installable (2):
ocaml-system.1.2 risus.1
Summary: out of 21 packages (18 distinct names)
- 2 uninstallable roots

# Return code 1 #
### opam admin check --installability
Checking installability of every package. This may take a few minutes...
[ERROR] These packages are not installable (2):
ocaml-system.1.2 risus.1
Summary: out of 21 packages (18 distinct names)
- 2 uninstallable roots

# Return code 1 #
### opam admin check --installability -i
Checking installability of every package. This may take a few minutes...
[ERROR] These packages are not installable (2):
ocaml-system.1.2 risus.1
Summary: out of 21 packages (18 distinct names)
- 2 uninstallable roots

# Return code 1 #
### opam admin check --obsolete
[ERROR] Obsolete packages detected:
- lorem 1.0, 2.0
Summary: out of 21 packages (18 distinct names)
- 2 obsolete packages

# Return code 1 #
### opam admin check --obsolete -i
[ERROR] Obsolete packages detected:
- lorem 1.0, 2.0
Summary: out of 21 packages (18 distinct names)
- 2 obsolete packages

# Return code 1 #
### opam admin check --cycles
No issues detected on this repository's 21 packages
### opam admin check --cycles -i
No issues detected on this repository's 21 packages
### : index :
### opam admin index
Generating urls.txt...

0 comments on commit 4a441e5

Please sign in to comment.