brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 067a515 Raw
38 lines · plain
1RUN: rm -rf %t.output_dir && mkdir %t.output_dir2RUN: %scan-build -o %t.output_dir \3RUN:             %clang -S %S/Inputs/deduplication/1.c \4RUN:                       %S/Inputs/deduplication/2.c \5RUN:     | FileCheck %s -check-prefix CHECK-STDOUT6 7RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES8 9RUN: rm -rf %t.output_dir && mkdir %t.output_dir10RUN: %scan-build -o %t.output_dir \11RUN:             -analyzer-config stable-report-filename=true \12RUN:             %clang -S %S/Inputs/deduplication/1.c \13RUN:                       %S/Inputs/deduplication/2.c \14RUN:     | FileCheck %s -check-prefix CHECK-STDOUT15 16RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES17 18RUN: rm -rf %t.output_dir && mkdir %t.output_dir19RUN: %scan-build -o %t.output_dir \20RUN:             -analyzer-config verbose-report-filename=true \21RUN:             %clang -S %S/Inputs/deduplication/1.c \22RUN:                       %S/Inputs/deduplication/2.c \23RUN:     | FileCheck %s -check-prefix CHECK-STDOUT24 25RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES26 27// Only one report file should be generated.28 29CHECK-STDOUT: scan-build: Using '{{.*}}' for static analysis30CHECK-STDOUT: scan-build: 1 bug found.31CHECK-STDOUT: scan-build: Run 'scan-view {{.*}}' to examine bug reports.32 33 34CHECK-FILENAMES: index.html35CHECK-FILENAMES-NEXT: report-{{.*}}.html36CHECK-FILENAMES-NEXT: scanview.css37CHECK-FILENAMES-NEXT: sorttable.js38