Skip to content

Commit

Permalink
[coq] more test for vos mode.
Browse files Browse the repository at this point in the history
We check that one can go back to normal mode (without cleaning) after
having used the vos mode.

Signed-off-by: Rodolphe Lepigre <rodolphe@bedrocksystems.com>
  • Loading branch information
Rodolphe Lepigre committed Mar 24, 2023
1 parent b0e8355 commit f785db3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/blackbox-tests/test-cases/coq/vos-build.t/dune-vo
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(coq.theory
(name basic)
(package base)
(modules :standard)
(synopsis "Test Coq library"))

(rule
(alias default)
(action (echo "%{read:base.install}")))
19 changes: 19 additions & 0 deletions test/blackbox-tests/test-cases/coq/vos-build.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,22 @@
"_build/install/default/lib/coq/user-contrib/basic/foo.v" {"coq/user-contrib/basic/foo.v"}
"_build/install/default/lib/coq/user-contrib/basic/foo.vos" {"coq/user-contrib/basic/foo.vos"}
]

Checking that we can go back to vo mode (without cleaning).

$ mv dune-vo dune
$ dune build --display short --debug-dependency-path @all
coqc foo.{glob,vo}
coqc bar.{glob,vo}
$ dune build --debug-dependency-path @default
lib: [
"_build/install/default/lib/base/META"
"_build/install/default/lib/base/dune-package"
"_build/install/default/lib/base/opam"
]
lib_root: [
"_build/install/default/lib/coq/user-contrib/basic/bar.v" {"coq/user-contrib/basic/bar.v"}
"_build/install/default/lib/coq/user-contrib/basic/bar.vo" {"coq/user-contrib/basic/bar.vo"}
"_build/install/default/lib/coq/user-contrib/basic/foo.v" {"coq/user-contrib/basic/foo.v"}
"_build/install/default/lib/coq/user-contrib/basic/foo.vo" {"coq/user-contrib/basic/foo.vo"}
]

0 comments on commit f785db3

Please sign in to comment.