summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-07-21 23:31:26 +0000
committerVedant Kumar <vsk@apple.com>2016-07-21 23:31:26 +0000
commitfa522ca3b3fa55ca4c20d1b5a0e52af0b679b898 (patch)
treec450cdbcf8c2a85365b32eda8315be0c16bcaf89
parent26cfb6a25447b392be165faf9277128ee3dce299 (diff)
downloadbcm5719-llvm-fa522ca3b3fa55ca4c20d1b5a0e52af0b679b898.tar.gz
bcm5719-llvm-fa522ca3b3fa55ca4c20d1b5a0e52af0b679b898.zip
[llvm-cov] Strengthen a test case
Check that stylesheets work when we're not using -output-dir. llvm-svn: 276363
-rw-r--r--llvm/test/tools/llvm-cov/style.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/style.test b/llvm/test/tools/llvm-cov/style.test
index 3cad21f4b66..253cde3ca42 100644
--- a/llvm/test/tools/llvm-cov/style.test
+++ b/llvm/test/tools/llvm-cov/style.test
@@ -2,6 +2,8 @@ RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S
RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -filename-equivalence -name=_Z4funcIbEiT_ %S/showTemplateInstantiations.cpp -format html -o %t.dir
+RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -filename-equivalence %S/showTemplateInstantiations.cpp -format html | FileCheck %s -check-prefix=NODIR
+
RUN: FileCheck %s -input-file=%t.dir/style.css -check-prefix=STYLE
RUN: FileCheck %s -input-file=%t.dir/functions.html -check-prefix=FUNCTIONS
RUN: FileCheck %s -input-file=%t.dir/coverage/tmp/showTemplateInstantiations.cpp.html -check-prefix=FILEVIEW
@@ -17,6 +19,17 @@ STYLE-DAG: .uncovered-line
STYLE-DAG: .tooltip
STYLE-DAG: .tooltip span.tooltip-content
+FUNCTIONS-NOT: <style>
+FUNCTIONS: <head>
FUNCTIONS: <link rel='stylesheet' type='text/css' href='style.css'>
+FUNCTIONS: </head>
+FILEVIEW-NOT: <style>
+FILEVIEW: <head>
FILEVIEW: <link rel='stylesheet' type='text/css' href='..{{.*}}..{{.*}}style.css'>
+FILEVIEW: </head>
+
+NODIR: <head>
+NODIR: <style>
+NODIR: </style>
+NODIR: </head>
OpenPOWER on IntegriCloud