Skip to content

Commit d713cb0

Browse files
committed
Add reproduction case for #1342
Signed-off-by: Jeremie Dimino <[email protected]>
1 parent a35d147 commit d713cb0

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

test/blackbox-tests/dune.inc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,14 @@
279279
test-cases/github1231
280280
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
281281

282+
(alias
283+
(name github1342)
284+
(deps (package dune) (source_tree test-cases/github1342))
285+
(action
286+
(chdir
287+
test-cases/github1342
288+
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))
289+
282290
(alias
283291
(name github20)
284292
(deps (package dune) (source_tree test-cases/github20))
@@ -977,6 +985,7 @@
977985
(alias github1019)
978986
(alias github1099)
979987
(alias github1231)
988+
(alias github1342)
980989
(alias github20)
981990
(alias github24)
982991
(alias github25)
@@ -1092,6 +1101,7 @@
10921101
(alias github1019)
10931102
(alias github1099)
10941103
(alias github1231)
1104+
(alias github1342)
10951105
(alias github20)
10961106
(alias github24)
10971107
(alias github25)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Reproduction case for #1342. Check that when the user edits files in
2+
_build, things are rebuild as expected.
3+
4+
$ echo 42 > x
5+
$ dune build x
6+
$ cat _build/default/x
7+
42
8+
$ echo 0 > _build/default/x
9+
$ dune build x
10+
$ cat _build/default/x
11+
0

0 commit comments

Comments
 (0)