[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / Analysis / scan-build / deduplication.test
blob56d888e5fc12a2536a5d41fa0f4e9d1937344e29
1 // FIXME: Actually, "perl".
2 REQUIRES: shell
4 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
5 RUN: %scan-build -o %t.output_dir \
6 RUN:             %clang -S %S/Inputs/deduplication/1.c \
7 RUN:                       %S/Inputs/deduplication/2.c \
8 RUN:     | FileCheck %s -check-prefix CHECK-STDOUT
10 RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES
12 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
13 RUN: %scan-build -o %t.output_dir \
14 RUN:             -analyzer-config stable-report-filename=true \
15 RUN:             %clang -S %S/Inputs/deduplication/1.c \
16 RUN:                       %S/Inputs/deduplication/2.c \
17 RUN:     | FileCheck %s -check-prefix CHECK-STDOUT
19 RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES
21 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
22 RUN: %scan-build -o %t.output_dir \
23 RUN:             -analyzer-config verbose-report-filename=true \
24 RUN:             %clang -S %S/Inputs/deduplication/1.c \
25 RUN:                       %S/Inputs/deduplication/2.c \
26 RUN:     | FileCheck %s -check-prefix CHECK-STDOUT
28 RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES
30 // Only one report file should be generated.
32 CHECK-STDOUT: scan-build: Using '{{.*}}' for static analysis
33 CHECK-STDOUT: scan-build: 1 bug found.
34 CHECK-STDOUT: scan-build: Run 'scan-view {{.*}}' to examine bug reports.
37 CHECK-FILENAMES: index.html
38 CHECK-FILENAMES-NEXT: report-{{.*}}.html
39 CHECK-FILENAMES-NEXT: scanview.css
40 CHECK-FILENAMES-NEXT: sorttable.js