1# RUN: modularize -module-map-path=Output/NoProblemsAssistant.txt -root-module=Root -prefix=%S/Input %s
2# RUN: FileCheck --input-file=%T/NoProblemsAssistant.txt %s
3
4SomeTypes.h
5SomeDecls.h
6SubModule1/Header1.h
7SubModule1/Header2.h
8SubModule2/Header3.h
9SubModule2/Header4.h
10SubModule2/Header5-dash.dot.h
11SubModule2.h
12
13# CHECK: // Output/NoProblemsAssistant.txt
14# CHECK-NEXT: // Generated by: modularize -module-map-path=Output/NoProblemsAssistant.txt -root-module=Root -prefix={{.*}}{{[/\\]}}{{.*}} {{.*}}{{[/\\]}}NoProblemsAssistant.modularize
15# CHECK: module Root {
16# CHECK-NEXT:   module SomeTypes {
17# CHECK-NEXT:     header "SomeTypes.h"
18# CHECK-NEXT:     export *
19# CHECK-NEXT:   }
20# CHECK-NEXT:   module SomeDecls {
21# CHECK-NEXT:     header "SomeDecls.h"
22# CHECK-NEXT:     export *
23# CHECK-NEXT:   }
24# CHECK-NEXT:   module SubModule1 {
25# CHECK-NEXT:     module Header1 {
26# CHECK-NEXT:       header "SubModule1/Header1.h"
27# CHECK-NEXT:       export *
28# CHECK-NEXT:     }
29# CHECK-NEXT:     module Header2 {
30# CHECK-NEXT:       header "SubModule1/Header2.h"
31# CHECK-NEXT:       export *
32# CHECK-NEXT:     }
33# CHECK-NEXT:   }
34# CHECK-NEXT:   module SubModule2 {
35# CHECK-NEXT:     module Header3 {
36# CHECK-NEXT:       header "SubModule2/Header3.h"
37# CHECK-NEXT:       export *
38# CHECK-NEXT:     }
39# CHECK-NEXT:     module Header4 {
40# CHECK-NEXT:       header "SubModule2/Header4.h"
41# CHECK-NEXT:       export *
42# CHECK-NEXT:     }
43# CHECK-NEXT:     module Header5_dash_dot {
44# CHECK-NEXT:       header "SubModule2/Header5-dash.dot.h"
45# CHECK-NEXT:       export *
46# CHECK-NEXT:     }
47# CHECK-NEXT:     header "SubModule2.h"
48# CHECK-NEXT:     export *
49# CHECK-NEXT:   }
50# CHECK-NEXT: }
51