brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 1eb4e73 Raw
35 lines · plain
1RUN: rm -rf %t.output_dir && mkdir %t.output_dir2RUN: %scan-build -o %t.output_dir %clang -S %S/Inputs/single_null_dereference.c \3RUN:     | FileCheck %s -check-prefix CHECK-STDOUT4 5// Test html output6 7CHECK-STDOUT: scan-build: Using '{{.*}}' for static analysis8CHECK-STDOUT: scan-build: 1 bug found.9CHECK-STDOUT: scan-build: Run 'scan-view {{.*}}' to examine bug reports.10 11// We expect an index file, a file for the report, and sibling support files.12RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES13 14CHECK-FILENAMES: index.html15CHECK-FILENAMES: report-{{.*}}.html16CHECK-FILENAMES: scanview.css17CHECK-FILENAMES: sorttable.js18 19// Tests for the front page.20RUN: cat %t.output_dir/*/index.html \21RUN:     | FileCheck %s -check-prefix CHECK-INDEX-HTML22 23// Let's confirm that the new filtering facility is present.24CHECK-INDEX-HTML: Filter Results by File25 26// The index should have a link to the report for the single issue.27CHECK-INDEX-HTML: <!-- REPORTBUG id="report-{{.*}}.html" -->28 29 30// The report should describe the issue.31RUN: cat %t.output_dir/*/report-*.html \32RUN:     | FileCheck %s -check-prefix CHECK-REPORT-HTML33 34CHECK-REPORT-HTML: <!-- BUGTYPE Dereference of null pointer -->35