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