On 14/06/2018 03:12, Gedare Bloom wrote: > On Wed, Jun 13, 2018 at 12:23 PM, Vijay Kumar Banerjee > <vijaykumar9...@gmail.com> wrote: >> On Wed, 13 Jun 2018, 21:39 Gedare Bloom, <ged...@rtems.org> wrote: >>> On Wed, Jun 13, 2018 at 11:58 AM, Vijay Kumar Banerjee >>> <vijaykumar9...@gmail.com> wrote: >>>> On 13 June 2018 at 10:29, Gedare Bloom <ged...@rtems.org> wrote: >>>>> On Thu, Jun 7, 2018 at 7:08 AM, Vijay Kumar Banerjee >>>>> <vijaykumar9...@gmail.com> wrote: >>>>>> bsp = opts.find_arg('--rtems-bsp') >>>>>> + if 'cov' in bsp[1].split('-'): >>>>> >>>>> I'm not sure if this use of the 'cov' field in the bsp config filename >>>>> itself is the proper way to go about accomplishing the activation of >>>>> coverage. What are other possible ways to get this done? Is the use of >>>>> a portion of the bsp config filename done elsewhere in tester? >>>> >>>> This patch was made following Chris' comments in another thread >>>> >>>> https://lists.rtems.org/pipermail/devel/2018-June/021931.html >>>> >>> >>> I can't be sure, but I don't think his intent was to infer the >>> coverage from the ini file name.
Correct. >>> For example, does the tester parse >>> the ini file name to check for 'qemu' to decide if that target is >>> being used? Instead, it should look in to the config file to read the >>> option somehow. >> >> In leon3-qemu.ini the bsp option inside the >> config file is set to leon3-qemu. >> >> There's no such special thing added to bsp for coverage. >> Only difference we have is that, >> the option 'bsp_qemu_cov_opts' is added in the coverage supported file. we >> can >> read the config file to see if this option is present. >> >> Shall I do it this way? > > Yes, I suspect you should. > Can we have 'coverage = true' in the INI file to indicate this BSP supports coverage? >>> >>>>> >>>>>> + coverage_enabled = True And that values maps to here. Chris _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel