diff --git a/master_changes.md b/master_changes.md index 93761245738..182bd413455 100644 --- a/master_changes.md +++ b/master_changes.md @@ -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 diff --git a/tests/reftests/admin.test b/tests/reftests/admin.test index db07b952668..657d81601f8 100644 --- a/tests/reftests/admin.test +++ b/tests/reftests/admin.test @@ -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...