Skip to content

Commit

Permalink
pkg: test solver on pkg with constraint conjunction (#10543)
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
  • Loading branch information
gridbugs committed May 20, 2024
1 parent c2ea2fa commit b45626f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/blackbox-tests/test-cases/pkg/constraint-conjunction.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Exercise the solver on a package with a conjunction in its dependency
constraints.

$ . ./helpers.sh
$ mkrepo

$ mkpkg a

$ mkpkg foo << EOF
> depends: [
> "a" { >= "0.0.0" & < "1.0.0" }
> ]
> EOF
$ solve foo
Solution for dune.lock:
- a.0.0.1
- foo.0.0.1
Note that this is currently incorrect as the package "a" is duplicated
in the "depends" field.
$ cat dune.lock/foo.pkg
(version 0.0.1)
(depends a a)

0 comments on commit b45626f

Please sign in to comment.