Skip to content

Commit

Permalink
Add a test case for ocamlgh-5132
Browse files Browse the repository at this point in the history
This commit adds a test case to reproduce a bug reported at ocamlgh-5132 where
`.changes` files are updated during dry-run.
  • Loading branch information
na4zagin3 committed May 14, 2022
1 parent e36650b commit 2d2282b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/reftests/dot-install.test
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,26 @@ added: [
"share-dot" {"D"}
"share-dot-file" {"F:12fc204edeae5b57713c5ad7dcb97d39"}
]
### opam reinstall --dry-run dot
The following actions will be simulated:
=== recompile 1 package
- recompile dot ~dev

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
ACTION download_package: dot.~dev
ACTION prepare_package_source: dot.~dev at ${BASEDIR}/OPAM/inst/.opam-switch/build/dot.~dev
ACTION Removing dot.~dev
-> removed dot.~dev
Installing dot.~dev.
TRACK after install: 0 elements, 0 added, scanned in 0.000s
-> installed dot.~dev
ACTION Cleaning up artefacts of dot.~dev
Done.
### ocaml cat.ml dot
==> dot installed file
hellow
==> dot changes
opam-version: "2.0"
### OPAMDEBUGSECTIONS="SYSTEM FILE(.config)" OPAMDEBUG=-1
### : check install files ordering :
### opam install lot-of-files | grep "mkdir\|install\|FILE"
Expand Down

0 comments on commit 2d2282b

Please sign in to comment.