1 // FIXME: Actually, "perl".
4 RUN: rm -rf %t.output_dir && mkdir %t.output_dir
5 RUN: cp %S/report-1.html %t.output_dir
6 RUN: cp %S/report-2.html %t.output_dir
7 RUN: mkdir %t.output_dir/subdirectory
8 RUN: cp %S/subdirectory/report-3.html %t.output_dir/subdirectory
10 RUN: %scan-build --generate-index-only %t.output_dir
12 RUN: ls %t.output_dir | FileCheck -check-prefix CHECK-FILES %s
14 CHECK-FILES: index.html
15 CHECK-FILES-NEXT: report-1.html
16 CHECK-FILES-NEXT: report-2.html
17 CHECK-FILES-NEXT: scanview.css
18 CHECK-FILES-NEXT: sorttable.js
19 CHECK-FILES-NEXT: subdirectory
21 RUN: ls %t.output_dir/subdirectory | FileCheck -check-prefix CHECK-SUB %s
23 CHECK-SUB: report-3.html
25 RUN: cat %t.output_dir/index.html | FileCheck -check-prefix CHECK-INDEX %s
28 CHECK-INDEX-NEXT: bug1
29 CHECK-INDEX-NEXT: cat2
30 CHECK-INDEX-NEXT: bug2
31 CHECK-INDEX-NEXT: cat3
32 CHECK-INDEX-NEXT: bug3
34 CHECK-INDEX: report-1.html#EndPath
35 CHECK-INDEX: report-2.html#EndPath
36 CHECK-INDEX: subdirectory/report-3.html#EndPath