mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/coq/github3624.t
2025-11-11 02:07:51 +01:00

21 lines
879 B
Perl

This used to be a reproduction case for #3624, where dune created a dune-project
with an incorrect using line. Since we dropped support for automatically
creating the dune-project file, this is now testing that the error message is
good when the coq extension is not enabled.
$ cat >dune <<EOF
> (coq.theory
> (name foo))
> EOF
$ dune build
File ".", line 1, characters 0-0:
Warning: No dune-project file has been found in directory ".". A default one
is assumed but the project might break when dune is upgraded. Please create a
dune-project file.
Hint: generate the project file with: $ dune init project <name>
File "dune", lines 1-2, characters 0-24:
1 | (coq.theory
2 | (name foo))
Error: 'coq.theory' is available only when coq is enabled in the dune-project
file. You must enable it using (using coq 0.10) in your dune-project file.
[1]