| 1 |
All dune commands work when you run them in sub-directories, so this should be no exception. |
| 2 |
|
| 3 |
$ dune rocq top --toplevel=echo -- theories/foo.v | ../../scrub_coq_args.sh |
| 4 |
-topfile $TESTCASE_ROOT/_build/default/theories/foo.v |
| 5 |
-w -deprecated-native-compiler-option -native-output-dir . |
| 6 |
-native-compiler on |
| 7 |
-nI lib/rocq-runtime/kernel |
| 8 |
-nI $TESTCASE_ROOT/_build/default/theories |
| 9 |
-boot |
| 10 |
-R coq/theories Corelib |
| 11 |
-R $TESTCASE_ROOT/_build/default/theories foo |
| 12 |
$ cd theories |
| 13 |
|
| 14 |
This test is currently broken due to the workspace resolution being faulty #5899. |
| 15 |
$ dune rocq top --toplevel=echo -- foo.v 2>&1 | sed "s/(using rocq .*)/(using rocq <version>)/" |
| 16 |
File ".", line 1, characters 0-0: |
| 17 |
Warning: No dune-project file has been found in directory ".". A default one |
| 18 |
is assumed but the project might break when dune is upgraded. Please create a |
| 19 |
dune-project file. |
| 20 |
Hint: generate the project file with: $ dune init project <name> |
| 21 |
File "dune", lines 1-2, characters 0-25: |
| 22 |
1 | (rocq.theory |
| 23 |
2 | (name foo)) |
| 24 |
Error: 'rocq.theory' is available only when rocq is enabled in the |
| 25 |
dune-project or workspace file. You must enable it using (using rocq <version>) in |
| 26 |
the file. |
| 27 |
[1] |