Skip to content

Commit

Permalink
Merge pull request #5022 from kit-ty-kate/cram-unix
Browse files Browse the repository at this point in the history
Add some unix-only cram tests to test for #4216 before fixing it
  • Loading branch information
kit-ty-kate authored Jan 26, 2022
2 parents 9e28777 + 44f7e7d commit d396aac
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 16 deletions.
4 changes: 3 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
(lang dune 2.0)
(lang dune 2.7)
(name opam)

(cram enable)
4 changes: 4 additions & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ users)
* Update bootstrap ocaml to 4.12.1 to integrate mingw fix [#4927 @rjbou]
* Update bootstrap to use `-j` for Unix (Windows already does) [#4988 @dra27]
* Update cold compiler to 4.13 [#5017 @dra27]
* Change minimum required Dune to 2.7 [#5022 @kit-ty-kate]

## Infrastructure
* Fix caching of Cygwin compiler on AppVeyor [#4988 @dra27]
Expand Down Expand Up @@ -221,6 +222,9 @@ users)
* Make all the tests work on macOS/arm64 [#5019 @kit-ty-kate]

* Add clean test for untracked option [#4915 @rjbou]
## Cram tests
### Cram tests
* Add some unix-only cram tests to test for https://github.com/ocaml/opam/issues/4216 before fixing it [#5022 @kit-ty-kate]

## Github Actions
* Add solver backends compile test [#4723 @rjbou] [2.1.0~rc2 #4720]
Expand Down
2 changes: 1 addition & 1 deletion opam-admin.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ homepage: "https://opam.ocaml.org/"
bug-reports: "https://github.com/ocaml/opam/issues"
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
depends: [
"dune" {>= "2.0.0"}
"dune" {>= "2.7.0"}
"re" {>= "1.9.0"}
"opam-file-format" {>= "2.1.3"}
]
2 changes: 1 addition & 1 deletion opam-client.opam
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ depends: [
"opam-repository" {= version}
"re" {>= "1.9.0"}
"cmdliner" {>= "1.0.0"}
"dune" {>= "2.0.0"}
"dune" {>= "2.7.0"}
]
conflicts: [
"extlib" {< "1.7.8"}
Expand Down
2 changes: 1 addition & 1 deletion opam-core.opam
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ depends: [
"base-bigarray"
"ocamlgraph"
"re" {>= "1.9.0"}
"dune" {>= "2.0.0"}
"dune" {>= "2.7.0"}
"cppo" {build & >= "1.1.0"}
]
conflicts: "extlib-compat"
2 changes: 1 addition & 1 deletion opam-devel.opam
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ depends: [
"ocaml" {>= "4.08.0"}
"opam-client" {= version}
"cmdliner"
"dune" {>= "2.0.0"}
"dune" {>= "2.7.0"}
"conf-openssl" {with-test}
"conf-diffutils" {with-test}
]
Expand Down
2 changes: 1 addition & 1 deletion opam-format.opam
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ depends: [
"opam-core" {= version}
"opam-file-format" {>= "2.1.3"}
"re" {>= "1.9.0"}
"dune" {>= "2.0.0"}
"dune" {>= "2.7.0"}
]
2 changes: 1 addition & 1 deletion opam-installer.opam
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ depends: [
"ocaml" {(>= "4.03.0" & os != "win32") | >= "4.06.0"}
"opam-format" {= version}
"cmdliner" {>= "0.9.8"}
"dune" {>= "2.0.0"}
"dune" {>= "2.7.0"}
]
2 changes: 1 addition & 1 deletion opam-repository.opam
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ build: [
depends: [
"ocaml" {>= "4.08.0"}
"opam-format" {= version}
"dune" {>= "2.0.0"}
"dune" {>= "2.7.0"}
]
2 changes: 1 addition & 1 deletion opam-solver.opam
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ depends: [
"dose3" {>= "6.1"}
"cudf" {>= "0.7"}
"re" {>= "1.9.0"}
"dune" {>= "2.0.0"}
"dune" {>= "2.7.0"}
"opam-0install-cudf" {>= "0.4"}
]
depopts: [
Expand Down
2 changes: 1 addition & 1 deletion opam-state.opam
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ depends: [
"opam-repository" {= version}
"re" {>= "1.9.0"}
"spdx_licenses" {>= "1.0.0"}
"dune" {>= "2.0.0"}
"dune" {>= "2.7.0"}
]
2 changes: 1 addition & 1 deletion opam.opam
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ homepage: "https://opam.ocaml.org/"
bug-reports: "https://github.com/ocaml/opam/issues"
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
depends: [
"dune" {>= "2.0.0"}
"dune" {>= "2.7.0"}
"opam-client" {= version}
]
5 changes: 5 additions & 0 deletions tests/cram/unix/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(cram
(enabled_if (= %{os_type} "Unix"))
(deps
(package opam-devel)
(sandbox always)))
6 changes: 6 additions & 0 deletions tests/cram/unix/list.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Test https://github.com/ocaml/opam/issues/4216
$ export OPAMROOT=./opamroot
$ opam init --bare -n git+https://github.com/ocaml/opam-repository.git#0ec9bbf73a91b8e90b15bb11735859c9552a9888 > /dev/null
$ OCAMLRUNPARAM=-b opam list --depends-on dune -s --all-versions | head -n1
0install.2.14
Fatal error: exception Sys_error("Broken pipe")
5 changes: 0 additions & 5 deletions tests/reftests/clean.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ install: [
[ "cp" "second" "%{lib}%/things/second" ]
]
### OPAMPRECISETRACKING=1 OPAMYES=1
### opam update

<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file://${BASEDIR}/REPO
Now run 'opam upgrade' to apply any package updates.
### opam switch create clean --empty
### opam install things
The following actions will be performed:
Expand Down

0 comments on commit d396aac

Please sign in to comment.