diff --git a/tests/bin/check/run.t b/tests/bin/check/run.t index 9511ec2e..399b906d 100644 --- a/tests/bin/check/run.t +++ b/tests/bin/check/run.t @@ -24,6 +24,31 @@ Make a minimal project set up > (lang dune 2.7) > (name my_pkg) > EOF + +Test that the lint check produces an error if the change log is missing: + $ dune-release check --skip-change-log --working-tree | make_dune_release_deterministic + [-] Checking dune-release compatibility. + [ OK ] The dev-repo field of my_pkg.opam contains a github uri. + [ OK ] The dune project contains a name stanza. + + [-] Building package in + [ OK ] package(s) build + + [-] Running package tests in + [ OK ] package(s) pass the tests + + [-] Performing lint for package my_pkg in + [FAIL] File README is missing. + [FAIL] File LICENSE is missing. + [FAIL] File CHANGES is missing. + [ OK ] File opam is present. + [ OK ] lint opam file my_pkg.opam. + [ OK ] opam field synopsis is present + [ OK ] opam fields homepage and dev-repo can be parsed by dune-release + [ OK ] Skipping doc field linting, no doc field found + [FAIL] lint of and package my_pkg failure: 3 errors. + +Add a change log: $ cat > ChangeLog < #ChangeLog > @@ -34,7 +59,6 @@ Make a minimal project set up > - another feature > EOF - If the condition described above is fulfilled, there are 5 checks to be performed $ dune-release check --working-tree | make_dune_release_deterministic