1 // This test checks that VFS-mapped module map path has the correct spelling
2 // after canonicalization, even if it was first accessed using different case.
5 // RUN: split-file %s %t
11 //--- frameworks/FW.framework/Modules/module.modulemap
22 "case-sensitive": "false",
27 "external-contents": "DIR/actual/One.h",
32 "external-contents": "DIR/actual/Two.h",
37 "name": "DIR/frameworks/FW.framework/Headers",
47 "command": "clang -fmodules -fmodules-cache-path=DIR/cache -ivfsoverlay DIR/overlay.json -F DIR/frameworks -c DIR/tu.m -o DIR/tu.o"
50 // RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.in > %t/cdb.json
51 // RUN: sed -e "s|DIR|%/t|g" %t/overlay.json.in > %t/overlay.json
52 // RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full > %t/result.json
53 // RUN: cat %t/result.json | sed 's:\\\\\?:/:g' | FileCheck %s -DPREFIX=%/t
56 // CHECK-NEXT: "modules": [
58 // CHECK-NEXT: "clang-module-deps": [],
59 // CHECK-NEXT: "clang-modulemap-file": "[[PREFIX]]/frameworks/FW.framework/Modules/module.modulemap",
60 // CHECK-NEXT: "command-line": [
62 // CHECK-NEXT: "objective-c"
63 // CHECK-NEXT: "[[PREFIX]]/frameworks/FW.framework/Modules/module.modulemap"
65 // CHECK-NEXT: "context-hash": "{{.*}}",
66 // CHECK-NEXT: "file-deps": [
68 // CHECK-NEXT: "link-libraries": [
70 // CHECK-NEXT: "isFramework": true,
71 // CHECK-NEXT: "link-name": "FW"
74 // CHECK-NEXT: "name": "FW"