Skip to content

Commit

Permalink
reftest: add a test showing simulated pinning does not propagate vers…
Browse files Browse the repository at this point in the history
…ion information
  • Loading branch information
rjbou authored and kit-ty-kate committed Mar 1, 2025
1 parent 892e126 commit e2a3500
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ users)
* Add a test showing the behaviour when a pin depend is unpinned [#6380 @rjbou]
* Add a test to ensure `opam upgrade <pkg>` will not upgrade unrelated things [#6373 @kit-ty-kate]
* Add a test in init to show ocaml system compiler selection behaviour [#6307 @kit-ty-kate @rjbou]
* Add a test showing simulated pinning does not propagate version information [#6256 @rjbou]

### Engine

Expand Down
32 changes: 32 additions & 0 deletions tests/reftests/pin.test
Original file line number Diff line number Diff line change
Expand Up @@ -1035,3 +1035,35 @@ The following actions will be performed:
-> installed dep2.2
-> installed dep1.dev
Done.
### : opam install . --deps-only not selecting the good version
### <pkg:simcomp.1>
opam-version: "2.0"
flags: compiler
### opam switch create simulate-pin simcomp

<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: ["simcomp"]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed simcomp.1
Done.
### <pin:sim/sim.opam>
opam-version: "2.0"
version: "2.0"
depends: "deps-sim" { = "2" }
conflicts: "simcomp"
### <pkg:sim.1>
opam-version: "2.0"
depends: "deps-sim" { = "1" }
### <pkg:deps-sim.1>
opam-version: "2.0"
### <pkg:deps-sim.2>
opam-version: "2.0"
### opam install ./sim --deps-only
The following actions will be performed:
=== install 1 package
- install deps-sim 1 [required by sim]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed deps-sim.1
Done.

0 comments on commit e2a3500

Please sign in to comment.