| 1 |
RUN: rm -rf %t.output_dir && mkdir %t.output_dir |
| 2 |
RUN: %scan-build -plist-html -o %t.output_dir %clang -S %S/Inputs/single_null_dereference.c \ |
| 3 |
RUN: | FileCheck %s -check-prefix CHECK-STDOUT |
| 4 |
|
| 5 |
// Test combined plist and html output with -plist-html |
| 6 |
|
| 7 |
CHECK-STDOUT: scan-build: Using '{{.*}}' for static analysis |
| 8 |
CHECK-STDOUT: scan-build: Analysis run complete. |
| 9 |
CHECK-STDOUT: scan-build: Analysis results (plist files) deposited in '{{.*}}' |
| 10 |
CHECK-STDOUT: scan-build: 1 bug found. |
| 11 |
CHECK-STDOUT: scan-build: Run 'scan-view {{.*}}' to examine bug reports. |
| 12 |
|
| 13 |
// We expect both html files and the plist files. |
| 14 |
RUN: ls %t.output_dir/*/ | FileCheck %s -check-prefix CHECK-FILENAMES |
| 15 |
|
| 16 |
CHECK-FILENAMES: index.html |
| 17 |
CHECK-FILENAMES-DAG: report-{{.*}}.html |
| 18 |
CHECK-FILENAMES-DAG: report-{{.*}}.plist |
| 19 |
CHECK-FILENAMES: scanview.css |
| 20 |
CHECK-FILENAMES: sorttable.js |