Lines Matching +full:external +full:- +full:contents
1 // REQUIRES: crash-recovery, shell, system-darwin
3 // RUN: rm -rf %t
4 // RUN: mkdir -p %t/i %t/m %t
7 // RUN: not %clang -fsyntax-only -nostdinc %s \
8 // RUN: -I %S/Inputs/crash-recovery/usr/include -isysroot %/t/i/ \
9 // RUN: -fmodules -fmodules-cache-path=%t/m/ 2>&1 | FileCheck %s
11 // RUN: FileCheck --check-prefix=CHECKSRC %s -input-file %t/crash-vfs-*.m
12 // RUN: FileCheck --check-prefix=CHECKSH %s -input-file %t/crash-vfs-*.sh
13 // RUN: FileCheck --check-prefix=CHECKYAML %s -input-file \
14 // RUN: %t/crash-vfs-*.cache/vfs/vfs.yaml
15 // RUN: find %t/crash-vfs-*.cache/vfs | \
16 // RUN: grep "Inputs/crash-recovery/usr/include/stdio.h" | count 1
21 // CHECK-NEXT: note: diagnostic msg: {{.*}}.m
22 // CHECK-NEXT: note: diagnostic msg: {{.*}}.cache
27 // CHECKSH-NEXT: # Driver args: "-fsyntax-only"
28 // CHECKSH-NEXT: # Original command: {{.*$}}
29 // CHECKSH-NEXT: "-cc1"
30 // CHECKSH: "-resource-dir"
31 // CHECKSH: "-isysroot" "{{[^"]*}}/i/"
32 // CHECKSH: "crash-vfs-{{[^ ]*}}.m"
33 // CHECKSH: "-ivfsoverlay" "crash-vfs-{{[^ ]*}}.cache/vfs/vfs.yaml"
34 // CHECKSH: "-fmodules-cache-path=crash-vfs-{{[^ ]*}}.cache/repro-modules"
36 // CHECKYAML: 'case-sensitive':
37 // CHECKYAML-NEXT: 'use-external-names': 'false',
38 // CHECKYAML-NEXT: 'overlay-relative': 'true',
40 // CHECKYAML: 'name': "/[[PATH:.*]]/Inputs/crash-recovery/usr/include",
41 // CHECKYAML-NEXT: 'contents': [
42 // CHECKYAML-NEXT: {
43 // CHECKYAML-NEXT: 'type': 'file',
44 // CHECKYAML-NEXT: 'name': "module.map",
45 // CHECKYAML-NOT: 'external-contents': "{{[^ ]*}}.cache
46 // CHECKYAML-NEXT: 'external-contents': "/[[PATH]]/Inputs/crash-recovery/usr/include/module.map"
47 // CHECKYAML-NEXT: },
49 // Run the reproducer script - regular exit code is enough to test it works.
51 // support is re-building the modules relying solely on the header files dumped
55 // RUN: chmod 755 crash-vfs-*.sh
56 // RUN: ./crash-vfs-*.sh