File: missing.t

package info (click to toggle)
bisect-ppx 2.8.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,352 kB
  • sloc: ml: 3,575; javascript: 813; makefile: 226; sh: 140
file content (52 lines) | stat: -rw-r--r-- 1,360 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Missing files trigger a neat error.

  $ echo "(lang dune 2.7)" > dune-project
  $ cat > dune <<'EOF'
  > (executable
  >  (name test)
  >  (instrumentation (backend bisect_ppx)))
  > EOF
  $ dune exec ./test.exe --instrument-with bisect_ppx
  $ rm -rf _build
  $ mv test.ml test2.ml
  $ bisect-ppx-report html
  Error: cannot find source file 'test.ml' in:
    - .
    - ./_build/default
  Hint: consider passing --ignore-missing-files.
  [1]


--ignore-missing-files turns this error into a warning.

  $ echo "(lang dune 2.7)" > dune-project
  $ cat > dune <<'EOF'
  > (executable
  >  (name test)
  >  (instrumentation (backend bisect_ppx)))
  > EOF
  $ mv test2.ml test.ml
  $ dune exec ./test.exe --instrument-with bisect_ppx
  $ rm -rf _build
  $ mv test.ml test2.ml
  $ bisect-ppx-report html --ignore-missing-files --verbose
  Info: found *.coverage files in './'
  Info: cannot find source file 'test.ml' in:
    - .
    - ./_build/default
  Info: Writing index file...


The warning is visible only when --verbose is provided.

  $ echo "(lang dune 2.7)" > dune-project
  $ cat > dune <<'EOF'
  > (executable
  >  (name test)
  >  (instrumentation (backend bisect_ppx)))
  > EOF
  $ mv test2.ml test.ml
  $ dune exec ./test.exe --instrument-with bisect_ppx
  $ rm -rf _build
  $ mv test.ml test2.ml
  $ bisect-ppx-report html --ignore-missing-files