forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[coqtop] fix directory for subdirectory targets.
This was reported in ocaml#5552. Co-authored-by: Emilio Jesus Gallego Arias <e+git@x80.org> Signed-off-by: Rodolphe Lepigre <lepigre@mpi-sws.org>
- Loading branch information
Showing
9 changed files
with
57 additions
and
12 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
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/coq/coqtop-nested.t/dune-project
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,3 @@ | ||
(lang dune 3.0) | ||
|
||
(using coq 0.3) |
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,16 @@ | ||
Checking that we compute the directory and file for dune coq top correctly | ||
|
||
$ dune build --display=short theories/c.vo | ||
coqdep theories/c.v.d | ||
coqdep theories/d.v.d | ||
coqc theories/.d.aux,theories/d.{glob,vo} | ||
coqc theories/.c.aux,theories/c.{glob,vo} | ||
$ dune build --display=short theories/b/b.vo | ||
coqdep theories/b/b.v.d | ||
coqdep theories/a/a.v.d | ||
coqc theories/a/.a.aux,theories/a/a.{glob,vo} | ||
coqc theories/b/.b.aux,theories/b/b.{glob,vo} | ||
$ dune coq top --toplevel=echo theories/c.v | ||
-topfile $TESTCASE_ROOT/_build/default/theories/c.v -R $TESTCASE_ROOT/_build/default/theories foo | ||
$ dune coq top --toplevel=echo theories/b/b.v | ||
-topfile $TESTCASE_ROOT/_build/default/theories/b/b.v -R $TESTCASE_ROOT/_build/default/theories foo |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/coq/coqtop-nested.t/theories/a/a.v
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 @@ | ||
Definition bar := 3. |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/coq/coqtop-nested.t/theories/b/b.v
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,3 @@ | ||
Require a. | ||
|
||
Definition moo := a.bar. |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/coq/coqtop-nested.t/theories/c.v
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,3 @@ | ||
Require d. | ||
|
||
Definition uuhh := d.aike. |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/coq/coqtop-nested.t/theories/d.v
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 @@ | ||
Definition aike := 3. |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/coq/coqtop-nested.t/theories/dune
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,4 @@ | ||
(coq.theory | ||
(name foo)) | ||
|
||
(include_subdirs qualified) |