1REQUIRES: shell 2 3RUN: rm -rf %t.output_dir && mkdir %t.output_dir 4RUN: %scan-build -o %t.output_dir %clang -S %S/Inputs/single_null_dereference.c \ 5RUN: | FileCheck %s -check-prefix CHECK-STDOUT 6 7// Test html output 8 9CHECK-STDOUT: scan-build: Using '{{.*}}' for static analysis 10CHECK-STDOUT: scan-build: 1 bug found. 11CHECK-STDOUT: scan-build: Run 'scan-view {{.*}}' to examine bug reports. 12 13// We expect an index file, a file for the report, and sibling support files. 14RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES 15 16CHECK-FILENAMES: index.html 17CHECK-FILENAMES: report-{{.*}}.html 18CHECK-FILENAMES: scanview.css 19CHECK-FILENAMES: sorttable.js 20 21// Tests for the front page. 22RUN: cat %t.output_dir/*/index.html \ 23RUN: | FileCheck %s -check-prefix CHECK-INDEX-HTML 24 25// Let's confirm that the new filtering facility is present. 26CHECK-INDEX-HTML: Filter Results by File 27 28// The index should have a link to the report for the single issue. 29CHECK-INDEX-HTML: <!-- REPORTBUG id="report-{{.*}}.html" --> 30 31 32// The report should describe the issue. 33RUN: cat %t.output_dir/*/report-*.html \ 34RUN: | FileCheck %s -check-prefix CHECK-REPORT-HTML 35 36CHECK-REPORT-HTML: <!-- BUGTYPE Dereference of null pointer --> 37