-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11090 from ocaml/11058
fix(pkg): handle nested [Or] in depopts
- Loading branch information
Showing
2 changed files
with
64 additions
and
19 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Reproduce github issue #11058 | ||
|
||
Handling of more than one depopt: | ||
|
||
$ . ../helpers.sh | ||
|
||
$ mkpkg a | ||
$ mkpkg b | ||
$ mkpkg c | ||
$ mkpkg d | ||
$ mkpkg e | ||
$ mkpkg f | ||
|
||
$ runtest() { | ||
> mkpkg bar <<'EOF' | ||
> depopts: [ "a" "b" "c" ] | ||
> EOF | ||
> solve bar | ||
> } | ||
|
||
$ runtest <<'EOF' | ||
> depopts: [ "a" "b" "c" ] | ||
> EOF | ||
Solution for dune.lock: | ||
- bar.0.0.1 | ||
|
||
$ runtest <<'EOF' | ||
> depopts: [ "a" "b" "c" "d" ] | ||
> EOF | ||
Solution for dune.lock: | ||
- bar.0.0.1 | ||
|
||
$ runtest <<'EOF' | ||
> depopts: [ ("a" | "b") "c" "d" ] | ||
> EOF | ||
Solution for dune.lock: | ||
- bar.0.0.1 | ||
|
||
$ runtest <<'EOF' | ||
> depopts: [ (("e" | "a") | ("d" | "f")) "b" "c" ] | ||
> EOF | ||
Solution for dune.lock: | ||
- bar.0.0.1 |