-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(coq): support for inter-project composition of theories
Signed-off-by: Ali Caglayan <[email protected]>
- Loading branch information
Showing
17 changed files
with
150 additions
and
32 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
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
Empty file.
2 changes: 2 additions & 0 deletions
2
test/blackbox-tests/test-cases/coq/compose-coq-projects.t/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,2 @@ | ||
|
||
Inductive Hello := World | Bye. |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/coq/compose-coq-projects.t/A/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 A) | ||
(package A)) | ||
|
2 changes: 2 additions & 0 deletions
2
test/blackbox-tests/test-cases/coq/compose-coq-projects.t/A/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,2 @@ | ||
(lang dune 3.2) | ||
(using coq 0.3) |
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/coq/compose-coq-projects.t/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,4 @@ | ||
From A Require Import a. | ||
|
||
Check Hello. | ||
|
4 changes: 4 additions & 0 deletions
4
test/blackbox-tests/test-cases/coq/compose-coq-projects.t/B/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 B) | ||
(libraries other-lib) | ||
(theories A)) |
2 changes: 2 additions & 0 deletions
2
test/blackbox-tests/test-cases/coq/compose-coq-projects.t/B/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,2 @@ | ||
(lang dune 3.2) | ||
(using coq 0.3) |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/coq/compose-coq-projects.t/OtherLib/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,3 @@ | ||
(library | ||
(name otherlib) | ||
(public_name other-lib)) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/coq/compose-coq-projects.t/OtherLib/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 @@ | ||
(lang dune 3.2) |
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/coq/compose-coq-projects.t/OtherLib/foo.ml
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 @@ | ||
let hello = "world" |
Empty file.
1 change: 1 addition & 0 deletions
1
test/blackbox-tests/test-cases/coq/compose-coq-projects.t/dune-workspace
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 @@ | ||
(lang dune 3.2) |
9 changes: 9 additions & 0 deletions
9
test/blackbox-tests/test-cases/coq/compose-coq-projects.t/run.t
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,9 @@ | ||
Testing composition of theories accross a dune workspace | ||
|
||
$ dune build --root B | ||
Entering directory 'B' | ||
File "dune", line 4, characters 11-12: | ||
4 | (theories A)) | ||
^ | ||
Error: Theory A not found | ||
[1] |
92 changes: 80 additions & 12 deletions
92
test/blackbox-tests/test-cases/coq/compose-two-scopes.t/run.t
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 |
---|---|---|
@@ -1,12 +1,80 @@ | ||
$ dune build --debug-dependency-path | ||
File "b/dune", line 4, characters 11-12: | ||
4 | (theories a)) | ||
^ | ||
Error: Theory a not found | ||
-> required by _build/default/b/b.v.d | ||
-> required by _build/default/b/b.vo | ||
-> required by _build/install/default/lib/coq/user-contrib/b/b.vo | ||
-> required by _build/default/cvendor.install | ||
-> required by %{read:cvendor.install} at dune:3 | ||
-> required by alias default in dune:1 | ||
[1] | ||
$ tree | ||
. | ||
|-- b | ||
| |-- b.v -> ../../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/b/b.v | ||
| `-- dune -> ../../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/b/dune | ||
|-- cvendor.opam -> ../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/cvendor.opam | ||
|-- dune -> ../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/dune | ||
|-- dune-project -> ../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/dune-project | ||
`-- vendor | ||
|-- a | ||
| |-- a.v -> ../../../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/vendor/a/a.v | ||
| `-- dune -> ../../../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/vendor/a/dune | ||
|-- cvendor2.opam -> ../../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/vendor/cvendor2.opam | ||
`-- dune-project -> ../../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/vendor/dune-project | ||
|
||
3 directories, 9 files | ||
|
||
|
||
$ dune build --debug-dependency-path --debug-backtrace | ||
** resolving parent | ||
lib: [ | ||
"_build/install/default/lib/cvendor/META" | ||
"_build/install/default/lib/cvendor/dune-package" | ||
"_build/install/default/lib/cvendor/opam" | ||
] | ||
lib_root: [ | ||
"_build/install/default/lib/coq/user-contrib/b/b.v" {"coq/user-contrib/b/b.v"} | ||
"_build/install/default/lib/coq/user-contrib/b/b.vo" {"coq/user-contrib/b/b.vo"} | ||
] | ||
|
||
$ tree | ||
. | ||
|-- _build | ||
| |-- default | ||
| | |-- META.cvendor | ||
| | |-- b | ||
| | | |-- b.glob | ||
| | | |-- b.v | ||
| | | |-- b.v.d | ||
| | | |-- b.vo | ||
| | | |-- b.vok | ||
| | | `-- b.vos | ||
| | |-- cvendor.dune-package | ||
| | |-- cvendor.install | ||
| | |-- cvendor.opam | ||
| | `-- vendor | ||
| | `-- a | ||
| | |-- a.glob | ||
| | |-- a.v | ||
| | |-- a.v.d | ||
| | |-- a.vo | ||
| | |-- a.vok | ||
| | `-- a.vos | ||
| |-- install | ||
| | `-- default | ||
| | `-- lib | ||
| | |-- coq | ||
| | | `-- user-contrib | ||
| | | `-- b | ||
| | | |-- b.v -> ../../../../../../default/b/b.v | ||
| | | `-- b.vo -> ../../../../../../default/b/b.vo | ||
| | `-- cvendor | ||
| | |-- META -> ../../../../default/META.cvendor | ||
| | |-- dune-package -> ../../../../default/cvendor.dune-package | ||
| | `-- opam -> ../../../../default/cvendor.opam | ||
| `-- log | ||
|-- b | ||
| |-- b.v -> ../../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/b/b.v | ||
| `-- dune -> ../../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/b/dune | ||
|-- cvendor.opam -> ../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/cvendor.opam | ||
|-- dune -> ../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/dune | ||
|-- dune-project -> ../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/dune-project | ||
`-- vendor | ||
|-- a | ||
| |-- a.v -> ../../../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/vendor/a/a.v | ||
| `-- dune -> ../../../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/vendor/a/dune | ||
|-- cvendor2.opam -> ../../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/vendor/cvendor2.opam | ||
`-- dune-project -> ../../../../../../../../../default/test/blackbox-tests/test-cases/coq/compose-two-scopes.t/vendor/dune-project | ||
|
||
15 directories, 31 files |