[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / clang / test / Analysis / scan-build / deduplication.test
blob2ec3061701fceb9a20fd174f2581f387e7d75d87
1 REQUIRES: shell
3 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
4 RUN: %scan-build -o %t.output_dir \
5 RUN:             %clang -S %S/Inputs/deduplication/1.c \
6 RUN:                       %S/Inputs/deduplication/2.c \
7 RUN:     | FileCheck %s -check-prefix CHECK-STDOUT
9 RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES
11 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
12 RUN: %scan-build -o %t.output_dir \
13 RUN:             -analyzer-config stable-report-filename=true \
14 RUN:             %clang -S %S/Inputs/deduplication/1.c \
15 RUN:                       %S/Inputs/deduplication/2.c \
16 RUN:     | FileCheck %s -check-prefix CHECK-STDOUT
18 RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES
20 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
21 RUN: %scan-build -o %t.output_dir \
22 RUN:             -analyzer-config verbose-report-filename=true \
23 RUN:             %clang -S %S/Inputs/deduplication/1.c \
24 RUN:                       %S/Inputs/deduplication/2.c \
25 RUN:     | FileCheck %s -check-prefix CHECK-STDOUT
27 RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES
29 // Only one report file should be generated.
31 CHECK-STDOUT: scan-build: Using '{{.*}}' for static analysis
32 CHECK-STDOUT: scan-build: 1 bug found.
33 CHECK-STDOUT: scan-build: Run 'scan-view {{.*}}' to examine bug reports.
36 CHECK-FILENAMES: index.html
37 CHECK-FILENAMES-NEXT: report-{{.*}}.html
38 CHECK-FILENAMES-NEXT: scanview.css
39 CHECK-FILENAMES-NEXT: sorttable.js