1 // FIXME: Actually, "perl".
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