1REQUIRES: shell 2 3RUN: rm -rf %t.output_dir && mkdir %t.output_dir 4RUN: %scan-build -o %t.output_dir \ 5RUN: %clang -S %S/Inputs/deduplication/1.c \ 6RUN: %S/Inputs/deduplication/2.c \ 7RUN: | FileCheck %s -check-prefix CHECK-STDOUT 8 9RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES 10 11RUN: rm -rf %t.output_dir && mkdir %t.output_dir 12RUN: %scan-build -o %t.output_dir \ 13RUN: -analyzer-config stable-report-filename=true \ 14RUN: %clang -S %S/Inputs/deduplication/1.c \ 15RUN: %S/Inputs/deduplication/2.c \ 16RUN: | FileCheck %s -check-prefix CHECK-STDOUT 17 18RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES 19 20RUN: rm -rf %t.output_dir && mkdir %t.output_dir 21RUN: %scan-build -o %t.output_dir \ 22RUN: -analyzer-config verbose-report-filename=true \ 23RUN: %clang -S %S/Inputs/deduplication/1.c \ 24RUN: %S/Inputs/deduplication/2.c \ 25RUN: | FileCheck %s -check-prefix CHECK-STDOUT 26 27RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES 28 29// Only one report file should be generated. 30 31CHECK-STDOUT: scan-build: Using '{{.*}}' for static analysis 32CHECK-STDOUT: scan-build: 1 bug found. 33CHECK-STDOUT: scan-build: Run 'scan-view {{.*}}' to examine bug reports. 34 35 36CHECK-FILENAMES: index.html 37CHECK-FILENAMES-NEXT: report-{{.*}}.html 38CHECK-FILENAMES-NEXT: scanview.css 39CHECK-FILENAMES-NEXT: sorttable.js 40