Debian Codegraph @

test/blackbox-tests/test-cases/describe/describe-pp/describe-pp.t/run.t

raw
1 We can show the preprocessed output of a source code
2
3 $ dune describe pp src/main.ml
4 ;;Util.log "Hello, world!"
5
6 Re-running the command keeps showing output
7
8 $ dune describe pp src/main.ml
9 ;;Util.log "Hello, world!"
10
11 We can also show the original source if it is not preprocessed
12
13 $ dune describe pp src/util.ml
14 let log str = print_endline str
15
16 We also make sure that the dump file is not present
17
18 $ dune_cmd exists profile.dump
19 false
20
21 This also works for reason code
22
23 $ dune describe pp src/main_re.re
24 ;;Util.log "Hello, world!"
25
26 $ dune describe pp lib/subdir/bazy.ml
27