<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 30 July 2018 at 21:54, Gedare Bloom <span dir="ltr"><<a href="mailto:gedare@rtems.org" target="_blank">gedare@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Jul 30, 2018 at 3:30 AM, Vijay Kumar Banerjee<br>
<<a href="mailto:vijaykumar9597@gmail.com">vijaykumar9597@gmail.com</a>> wrote:<br>
> Invoke covoar multiple times from the script to generate separate<br>
> reports for each symbol-set.<br>
> ---<br>
> tester/rt/coverage.py | 32 +++++++++++++++---------------<wbr>--<br>
> 1 file changed, 15 insertions(+), 17 deletions(-)<br>
><br>
> diff --git a/tester/rt/coverage.py b/tester/rt/coverage.py<br>
> index 7dd5002..99342e1 100644<br>
> --- a/tester/rt/coverage.py<br>
> +++ b/tester/rt/coverage.py<br>
> @@ -100,7 +100,7 @@ class summary:<br>
><br>
> class report_gen_html:<br>
> def __init__(self, p_symbol_sets_list, build_dir, rtdir, bsp):<br>
> - self.symbol_sets_list = ['score']<br>
> + self.symbol_sets_list = p_symbol_sets_list<br>
<br>
</span>This is still encoding _list in the names of these variables<br></blockquote><div>Sorry about this. Will change it. :) </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5"><br>
> self.build_dir = build_dir<br>
> self.partial_reports_files = list(['index.html', 'summary.txt'])<br>
> self.number_of_columns = 1<br>
> @@ -264,27 +264,23 @@ class symbol_parser(object):<br>
> for sset in self.ssets:<br>
> lib = path.join(self.build_dir, config.get('libraries', sset))<br>
> self.symbol_sets[sset] = lib.encode('utf-8')<br>
> + return self.ssets<br>
> except:<br>
> raise error.general('Symbol set parsing failed')<br>
><br>
> - def _write_ini(self):<br>
> + def write_ini(self, symbol_set):<br>
> config = configparser.ConfigParser()<br>
> try:<br>
> - sets = ', '.join(self.symbol_sets.keys()<wbr>)<br>
> + sset = symbol_set<br>
> config.add_section('symbol-<wbr>sets')<br>
> - config.set('symbol-sets', 'sets', sets)<br>
> - for key in self.symbol_sets.keys():<br>
> - config.add_section(key)<br>
> - config.set(key, 'libraries', self.symbol_sets[key])<br>
> + config.set('symbol-sets', 'sets', sset)<br>
> + config.add_section(sset)<br>
> + config.set(sset, 'libraries', self.symbol_sets[sset])<br>
> with open(self.symbol_select_file, 'w') as conf:<br>
> config.write(conf)<br>
> except:<br>
> raise error.general('symbol parser write failed')<br>
><br>
> - def run(self):<br>
> - self.parse()<br>
> - self._write_ini()<br>
> -<br>
> class covoar(object):<br>
> '''<br>
> Covoar runner<br>
> @@ -371,20 +367,22 @@ class coverage_run(object):<br>
> self.symbol_select_path,<br>
> self.symbol_set,<br>
> build_dir)<br>
> - parser.run()<br>
> - covoar_runner = covoar(self.test_dir, self.symbol_select_path,<br>
> + symbol_sets = parser.parse()<br>
> + for sset in symbol_sets:<br>
> + parser.write_ini(sset)<br>
> + covoar_runner = covoar(self.test_dir, self.symbol_select_path,<br>
> self.executables, self.explanations_txt,<br>
> self.trace)<br>
> - covoar_runner.run('score', self.symbol_select_path)<br>
> - self._generate_reports();<br>
> + covoar_runner.run(sset, self.symbol_select_path)<br>
> + self._generate_reports(symbol_<wbr>sets);<br>
> self._summarize();<br>
> finally:<br>
> self._cleanup();<br>
><br>
> - def _generate_reports(self):<br>
> + def _generate_reports(self, symbol_sets):<br>
> log.notice('Coverage generating reports')<br>
> if self.report_format == 'html':<br>
> - report = report_gen_html(self.symbol_<wbr>sets,<br>
> + report = report_gen_html(symbol_sets,<br>
> self.build_dir,<br>
> self.rtdir,<br>
> self.macros['bsp'])<br>
> --<br>
> 2.14.4<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a><br>
</blockquote></div><br></div></div>