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