mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/cinaps/include-subdirs.t

30 lines
560 B
Perl
Raw Normal View History

2025-11-11 02:07:51 +01:00
cinaps doesn't work with (include_subdirs unqualified)
$ cat > dune-project <<EOF
> (lang dune 2.3)
> (using cinaps 1.0)
> EOF
$ cat >dune <<EOF
> (include_subdirs unqualified)
> (executable (name test))
> EOF
$ mkdir sub
$ cat >sub/dune <<EOF
> (cinaps (files test.ml))
> EOF
$ cat >sub/test.ml <<EOF
> (*$ print_endline "\nhello" *)
> (*$*)
> let x = 1
> EOF
$ dune runtest --diff-command diff 2>&1 | sed -E 's/[^ ]+sh/\$sh/'
File "sub/test.ml", line 1, characters 0-0:
2,3c2
< (*)
< let x = 1
---
> hello