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

25 lines
461 B
Perl

We test that the calls to coqc -config in scope.ml is lazy enough that it will
not be called unless necessary.
We test this using a dummy coqc that will fail if it is called.
$ cat > coqc << EOF
> #!/bin/sh
> exit 5
> EOF
$ chmod +x coqc
We add this to path:
$ export PATH=$PWD:$PATH
Next we create an empty coq project:
$ cat > dune-project << EOF
> (lang dune 3.8)
> (using coq 0.8)
> EOF
Finally we run dune build:
$ dune build