File tree Expand file tree Collapse file tree
test/blackbox-tests/test-cases/melange Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Test `(include_subdirs qualified)` in the presence of invalid module name
2+ directories that don't contain source files
3+
4+ $ cat > dune-project << EOF
5+ > (lang dune 3.22 )
6+ > (using melange 1.0 )
7+ > EOF
8+
9+ $ mkdir -p a/ b/ c
10+
11+ $ cat > a/ dune << EOF
12+ > (include_subdirs qualified)
13+ > (library (name foo) (modes melange))
14+ > EOF
15+
16+ $ cat > a/ b/ c/ dune << EOF
17+ > (ocamllex lexer)
18+ > EOF
19+ $ cat > a/ b/ c/ lexer. mll << EOF
20+ > {
21+ > }
22+ > rule lex = parse
23+ > | _ { true }
24+ > | eof { false }
25+ > EOF
26+
27+ $ cat > a/ foo. ml << EOF
28+ > module L = B. C. Lexer
29+ > EOF
30+
31+
32+ $ dune build
33+ $ find _build/ default / a/. melange_src | sort
34+ _build/ default / a/. melange_src
35+ _build/ default / a/. melange_src/ b
36+ _build/ default / a/. melange_src/ b/ c
37+ _build/ default / a/. melange_src/ b/ c/ lexer. ml
38+ _build/ default / a/. melange_src/ foo. ml
39+ _build/ default / a/. melange_src/ foo__. ml-gen
40+ _build/ default / a/. melange_src/ foo__B. ml-gen
41+ _build/ default / a/. melange_src/ foo__B__C. ml-gen
You can’t perform that action at this time.
0 commit comments