-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reftest: add more test cases for W59
* Shows the difference of behaviour between 'opam lint' and 'opam lint --check-upstream' * Add test cases for special cases: conf flag, url containing git url
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -851,9 +851,48 @@ license: "ISC" | |
dev-repo: "hg+https://[email protected]" | ||
bug-reports: "https://nobug" | ||
url { src:"an-archive.tgz" } | ||
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Passed. | ||
### opam lint ./lint.opam --check-upstream | ||
${BASEDIR}/lint.opam: Warnings. | ||
warning 59: url doesn't contain a checksum | ||
### <lint.opam> | ||
opam-version: "2.0" | ||
synopsis: "A word" | ||
description: "Two words." | ||
authors: "the testing team" | ||
homepage: "egapemoh" | ||
maintainer: "[email protected]" | ||
license: "ISC" | ||
dev-repo: "hg+https://[email protected]" | ||
bug-reports: "https://nobug" | ||
url { src:"an-archive.tgz" } | ||
flags: conf | ||
### # package with conf flag | ||
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Errors. | ||
error 46: Package is flagged "conf" but has source, install or remove instructions | ||
# Return code 1 # | ||
### opam lint ./lint.opam --check-upstream | ||
${BASEDIR}/lint.opam: Errors. | ||
error 46: Package is flagged "conf" but has source, install or remove instructions | ||
# Return code 1 # | ||
### <lint.opam> | ||
opam-version: "2.0" | ||
synopsis: "A word" | ||
description: "Two words." | ||
authors: "the testing team" | ||
homepage: "egapemoh" | ||
maintainer: "[email protected]" | ||
license: "ISC" | ||
dev-repo: "hg+https://[email protected]" | ||
bug-reports: "https://nobug" | ||
url { src:"git+https://a/repo" } | ||
### # package with git url | ||
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Passed. | ||
### opam lint ./lint.opam --check-upstream | ||
${BASEDIR}/lint.opam: Passed. | ||
### : E60: Upstream check failed | ||
### <lint.opam> | ||
opam-version: "2.0" | ||
|