Debian Codegraph @

test/blackbox-tests/test-cases/rocq/rocq-native/coqtop/coqtop-flags.t/run.t

raw
1 Testing that the correct flags are being passed to dune rocq top
2
3 The flags passed to coqc:
4 $ dune build
5 $ dune trace cat | jq 'include "dune"; rocqFlags'
6 {
7 "name": "rocq",
8 "args": [
9 "c",
10 "--config"
11 ]
12 }
13 {
14 "name": "rocq",
15 "args": [
16 "dep",
17 "-boot",
18 "-R",
19 "coq/theories",
20 "Corelib",
21 "-R",
22 ".",
23 "minimal",
24 "-dyndep",
25 "opt",
26 "-vos",
27 "Test.v"
28 ]
29 }
30 {
31 "name": "rocq",
32 "args": [
33 "compile",
34 "-w",
35 "-notation-overridden",
36 "-w",
37 "-deprecated-native-compiler-option",
38 "-native-output-dir",
39 ".",
40 "-native-compiler",
41 "on",
42 "-nI",
43 "rocq-runtime/kernel",
44 "-nI",
45 ".",
46 "-boot",
47 "-R",
48 "coq/theories",
49 "Corelib",
50 "-R",
51 ".",
52 "minimal",
53 "Test.v"
54 ]
55 }
56
57 The flags passed to coqtop:
58 $ dune rocq top --toplevel=echo Test.v | ../../scrub_coq_args.sh
59 -topfile $TESTCASE_ROOT/_build/default/Test.v
60 -w -notation-overridden
61 -w -deprecated-native-compiler-option -native-output-dir .
62 -native-compiler on
63 -nI lib/rocq-runtime/kernel
64 -nI $TESTCASE_ROOT/_build/default
65 -boot
66 -R coq/theories Corelib
67 -R $TESTCASE_ROOT/_build/default minimal