mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-18 23:09:36 +08:00
coverage/reports: Share common JS and CSS in reports
This moves all of the javascript and CSS files that are shared by the symbol set HTML reports to the shared parent directory. It also includes the javascript and CSS in the top-level index file.
This commit is contained in:

committed by
Joel Sherrill

parent
04597495e5
commit
4d21ff8d60
@@ -137,6 +137,8 @@ class report_gen_html:
|
||||
head_section += ' text-align:center;' + os.linesep
|
||||
head_section += ' }' + os.linesep
|
||||
head_section += ' </style>' + os.linesep
|
||||
head_section += ' <link rel="stylesheet" href="' + self.bsp + '-coverage/covoar.css">' + os.linesep
|
||||
head_section += ' <script type="text/javascript" src="' + self.bsp + '-coverage/table.js"></script>' + os.linesep
|
||||
head_section += '</head>' + os.linesep
|
||||
return head_section
|
||||
|
||||
@@ -221,11 +223,10 @@ class report_gen_html:
|
||||
def add_covoar_css(self):
|
||||
table_js_path = path.join(self.covoar_src_path, 'table.js')
|
||||
covoar_css_path = path.join(self.covoar_src_path, 'covoar.css')
|
||||
for symbol_set in self.symbol_sets:
|
||||
symbol_set_dir = path.join(self.build_dir,
|
||||
self.bsp + '-coverage', symbol_set)
|
||||
path.copy_tree(covoar_css_path, symbol_set_dir)
|
||||
path.copy_tree(table_js_path, symbol_set_dir)
|
||||
coverage_directory = path.join(self.build_dir,
|
||||
self.bsp + '-coverage')
|
||||
path.copy_tree(covoar_css_path, coverage_directory)
|
||||
path.copy_tree(table_js_path, coverage_directory)
|
||||
|
||||
def add_dir_name(self):
|
||||
for symbol_set in self.symbol_sets:
|
||||
|
Reference in New Issue
Block a user