linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* some udev code coverage results
@ 2004-04-26 22:39 Leann Ogasawara
  2004-04-27  1:03 ` Nick Yin
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Leann Ogasawara @ 2004-04-26 22:39 UTC (permalink / raw)
  To: linux-hotplug

Hi All,

Some people have asked how the code coverage for udev looked.  I ran
gcov for udev on all the tests in udev/test/ and received the following
results (which are enclosed below and also at the link listed):  

http://developer.osdl.org/ogasawara/gcov_for_udev/testall_udev_gcov.txt

Thanks,

Leann 

CODE COVERAGE ANALYSIS FOR UDEV

################
udev.c
################
100.00% of 3 source lines executed in file logging.h
Creating udev.c.logging.h.gcov.
 79.66% of 59 source lines executed in file udev.c
Creating udev.c.gcov.

################
udev_lib.c
################
100.00% of 15 source lines executed in file list.h
Creating udev_lib.c.list.h.gcov.
 80.39% of 102 source lines executed in file udev_lib.c
Creating udev_lib.c.gcov.

################
udev_config.c
################
 93.07% of 101 source lines executed in file udev_config.c
Creating udev_config.c.gcov.

################
udev-add.c
################
 78.83% of 222 source lines executed in file udev-add.c
Creating udev-add.c.gcov.

################
udev-remove.c
################
 95.83% of 72 source lines executed in file udev-remove.c
Creating udev-remove.c.gcov.

################
udevdb.c
################
 44.94% of 89 source lines executed in file udevdb.c
Creating udevdb.c.gcov.

################
namedev.c
################
100.00% of 1 source lines executed in file list.h
Creating namedev.c.list.h.gcov.
 89.51% of 429 source lines executed in file namedev.c
Creating namedev.c.gcov.

################
namedev_parse.c
################
100.00% of 8 source lines executed in file list.h
Creating namedev_parse.c.list.h.gcov.
 92.42% of 211 source lines executed in file namedev_parse.c
Creating namedev_parse.c.gcov.

################
dev_d.c
################
 95.45% of 44 source lines executed in file dev_d.c
Creating dev_d.c.gcov.

################
sysfs_bus.c
################
  0.00% of 2 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
Creating sysfs_bus.c.libsysfs.h.gcov.
  0.00% of 182 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs_bus.c
Creating sysfs_bus.c.gcov.

################
sysfs_class.c
################
  0.00% of 2 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
Creating sysfs_class.c.libsysfs.h.gcov.
 34.74% of 308 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs_class.c
Creating sysfs_class.c.gcov.

################
sysfs_device.c
################
  0.00% of 2 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
Creating sysfs_device.c.libsysfs.h.gcov.
 39.74% of 312 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs_device.c
Creating sysfs_device.c.gcov.

################
sysfs_dir.c
################
100.00% of 2 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
Creating sysfs_dir.c.libsysfs.h.gcov.
 43.12% of 494 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs_dir.c
Creating sysfs_dir.c.gcov.

################
sysfs_driver.c
################
  0.00% of 2 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
Creating sysfs_driver.c.libsysfs.h.gcov.
  0.00% of 170 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs_driver.c
Creating sysfs_driver.c.gcov.

################
sysfs_utils.c
################
 57.02% of 228 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs_utils.c
Creating sysfs_utils.c.gcov.

################
dlist.c
################
 68.94% of 132 source lines executed in file
/home/ogasawara/udev/libsysfs/dlist.c
Creating dlist.c.gcov.

################
tdb.c
################
 42.12% of 964 source lines executed in file tdb/tdb.c
Creating tdb.c.gcov.

################
spinlock.c
################
 66.67% of 9 source lines executed in file tdb/spinlock.c
Creating spinlock.c.gcov.

################
udevsend.c
################
 81.48% of 81 source lines executed in file udevsend.c
Creating udevsend.c.gcov.

################
udevd.c
################
code for udevd.c was never executed
no code coverage analysis to be done

################
udevinfo.c
################
code for udevinfo.c was never executed
no code coverage analysis to be done

################
udevtest.c
################
 82.86% of 35 source lines executed in file udevtest.c
Creating udevtest.c.gcov.

################
udevstart.c
################
code for udevstart.c was never executed
no code coverage analysis to be done

 



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg\x12297
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: some udev code coverage results
  2004-04-26 22:39 some udev code coverage results Leann Ogasawara
@ 2004-04-27  1:03 ` Nick Yin
  2004-04-27 16:34 ` Leann Ogasawara
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Nick Yin @ 2004-04-27  1:03 UTC (permalink / raw)
  To: linux-hotplug

Hi,

How about your coverage for the whole udev project? I have got a coverage 
data 86.8% for the whole project by our test suite. How do you think of this 
result?

In addition, there is no coverage data for udevd.c, you can test it using 
test/udevd/udevd-test.pl in udev-025 or later version:-)

Thanks!

Nick

>From: Leann Ogasawara <ogasawara@osdl.org>
>To: hotplug <linux-hotplug-devel@lists.sourceforge.net>
>CC: Greg KH <greg@kroah.com>, Mary Edie <maryedie@osdl.org>
>Subject: some udev code coverage results
>Date: Mon, 26 Apr 2004 15:39:10 -0700
>
>Hi All,
>
>Some people have asked how the code coverage for udev looked.  I ran
>gcov for udev on all the tests in udev/test/ and received the following
>results (which are enclosed below and also at the link listed):
>
>http://developer.osdl.org/ogasawara/gcov_for_udev/testall_udev_gcov.txt
>
>Thanks,
>
>Leann
>
>CODE COVERAGE ANALYSIS FOR UDEV
>
>################
>udev.c
>################
>100.00% of 3 source lines executed in file logging.h
>Creating udev.c.logging.h.gcov.
>  79.66% of 59 source lines executed in file udev.c
>Creating udev.c.gcov.
>
>################
>udev_lib.c
>################
>100.00% of 15 source lines executed in file list.h
>Creating udev_lib.c.list.h.gcov.
>  80.39% of 102 source lines executed in file udev_lib.c
>Creating udev_lib.c.gcov.
>
>################
>udev_config.c
>################
>  93.07% of 101 source lines executed in file udev_config.c
>Creating udev_config.c.gcov.
>
>################
>udev-add.c
>################
>  78.83% of 222 source lines executed in file udev-add.c
>Creating udev-add.c.gcov.
>
>################
>udev-remove.c
>################
>  95.83% of 72 source lines executed in file udev-remove.c
>Creating udev-remove.c.gcov.
>
>################
>udevdb.c
>################
>  44.94% of 89 source lines executed in file udevdb.c
>Creating udevdb.c.gcov.
>
>################
>namedev.c
>################
>100.00% of 1 source lines executed in file list.h
>Creating namedev.c.list.h.gcov.
>  89.51% of 429 source lines executed in file namedev.c
>Creating namedev.c.gcov.
>
>################
>namedev_parse.c
>################
>100.00% of 8 source lines executed in file list.h
>Creating namedev_parse.c.list.h.gcov.
>  92.42% of 211 source lines executed in file namedev_parse.c
>Creating namedev_parse.c.gcov.
>
>################
>dev_d.c
>################
>  95.45% of 44 source lines executed in file dev_d.c
>Creating dev_d.c.gcov.
>
>################
>sysfs_bus.c
>################
>   0.00% of 2 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
>Creating sysfs_bus.c.libsysfs.h.gcov.
>   0.00% of 182 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs_bus.c
>Creating sysfs_bus.c.gcov.
>
>################
>sysfs_class.c
>################
>   0.00% of 2 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
>Creating sysfs_class.c.libsysfs.h.gcov.
>  34.74% of 308 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs_class.c
>Creating sysfs_class.c.gcov.
>
>################
>sysfs_device.c
>################
>   0.00% of 2 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
>Creating sysfs_device.c.libsysfs.h.gcov.
>  39.74% of 312 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs_device.c
>Creating sysfs_device.c.gcov.
>
>################
>sysfs_dir.c
>################
>100.00% of 2 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
>Creating sysfs_dir.c.libsysfs.h.gcov.
>  43.12% of 494 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs_dir.c
>Creating sysfs_dir.c.gcov.
>
>################
>sysfs_driver.c
>################
>   0.00% of 2 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
>Creating sysfs_driver.c.libsysfs.h.gcov.
>   0.00% of 170 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs_driver.c
>Creating sysfs_driver.c.gcov.
>
>################
>sysfs_utils.c
>################
>  57.02% of 228 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs_utils.c
>Creating sysfs_utils.c.gcov.
>
>################
>dlist.c
>################
>  68.94% of 132 source lines executed in file
>/home/ogasawara/udev/libsysfs/dlist.c
>Creating dlist.c.gcov.
>
>################
>tdb.c
>################
>  42.12% of 964 source lines executed in file tdb/tdb.c
>Creating tdb.c.gcov.
>
>################
>spinlock.c
>################
>  66.67% of 9 source lines executed in file tdb/spinlock.c
>Creating spinlock.c.gcov.
>
>################
>udevsend.c
>################
>  81.48% of 81 source lines executed in file udevsend.c
>Creating udevsend.c.gcov.
>
>################
>udevd.c
>################
>code for udevd.c was never executed
>no code coverage analysis to be done
>
>################
>udevinfo.c
>################
>code for udevinfo.c was never executed
>no code coverage analysis to be done
>
>################
>udevtest.c
>################
>  82.86% of 35 source lines executed in file udevtest.c
>Creating udevtest.c.gcov.
>
>################
>udevstart.c
>################
>code for udevstart.c was never executed
>no code coverage analysis to be done
>
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
>For a limited time only, get FREE Ground shipping on all orders of $35
>or more. Hurry up and shop folks, this offer expires April 30th!
>http://www.thinkgeek.com/freeshipping/?cpg\x12297
>_______________________________________________
>Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
>Linux-hotplug-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?pageþatures/virus



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg\x12297
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: some udev code coverage results
  2004-04-26 22:39 some udev code coverage results Leann Ogasawara
  2004-04-27  1:03 ` Nick Yin
@ 2004-04-27 16:34 ` Leann Ogasawara
  2004-04-27 16:43 ` Greg KH
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Leann Ogasawara @ 2004-04-27 16:34 UTC (permalink / raw)
  To: linux-hotplug

Hi Nick,

I do not have a test suite for the whole udev project and thus have no
results to compare with yours :(  I was only reporting on the results of
the tests provided by udev.  I have rerun gcov for udev for all the udev
tests including udev/test/udevd/udevd-test.pl and enclosed the results
below (link also provided).  Greg, would you be interested in patches to
expand/add some udev tests to hit the untouched portions of code or are
you satisfied with the current coverage provided by udev/test/?  Thanks,

Leann

http://developer.osdl.org/ogasawara/gcov_for_udev/testall_udev_gcov.txt

CODE COVERAGE ANALYSIS FOR UDEV

################
udev.c
################
100.00% of 3 source lines executed in file logging.h
Creating udev.c.logging.h.gcov.
 79.66% of 59 source lines executed in file udev.c
Creating udev.c.gcov.

################
udev_lib.c
################
100.00% of 15 source lines executed in file list.h
Creating udev_lib.c.list.h.gcov.
 80.53% of 113 source lines executed in file udev_lib.c
Creating udev_lib.c.gcov.

################
udev_config.c
################
 93.39% of 121 source lines executed in file udev_config.c
Creating udev_config.c.gcov.

################
udev-add.c
################
 80.18% of 222 source lines executed in file udev-add.c
Creating udev-add.c.gcov.

################
udev-remove.c
################
 95.83% of 72 source lines executed in file udev-remove.c
Creating udev-remove.c.gcov.

################
udevdb.c
################
 44.94% of 89 source lines executed in file udevdb.c
Creating udevdb.c.gcov.

################
namedev.c
################
100.00% of 1 source lines executed in file list.h
Creating namedev.c.list.h.gcov.
 89.51% of 429 source lines executed in file namedev.c
Creating namedev.c.gcov.

################
namedev_parse.c
################
100.00% of 8 source lines executed in file list.h
Creating namedev_parse.c.list.h.gcov.
 92.42% of 211 source lines executed in file namedev_parse.c
Creating namedev_parse.c.gcov.

################
dev_d.c
################
 95.45% of 44 source lines executed in file dev_d.c
Creating dev_d.c.gcov.

################
sysfs_bus.c
################
  0.00% of 2 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
Creating sysfs_bus.c.libsysfs.h.gcov.
  0.00% of 182 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs_bus.c
Creating sysfs_bus.c.gcov.

################
sysfs_class.c
################
  0.00% of 2 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
Creating sysfs_class.c.libsysfs.h.gcov.
 35.06% of 308 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs_class.c
Creating sysfs_class.c.gcov.

################
sysfs_device.c
################
  0.00% of 2 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
Creating sysfs_device.c.libsysfs.h.gcov.
 39.74% of 312 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs_device.c
Creating sysfs_device.c.gcov.

################
sysfs_dir.c
################
100.00% of 2 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
Creating sysfs_dir.c.libsysfs.h.gcov.
 43.12% of 494 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs_dir.c
Creating sysfs_dir.c.gcov.

################
sysfs_driver.c
################
  0.00% of 2 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
Creating sysfs_driver.c.libsysfs.h.gcov.
  0.00% of 170 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs_driver.c
Creating sysfs_driver.c.gcov.

################
sysfs_utils.c
################
 57.46% of 228 source lines executed in file
/home/ogasawara/udev/libsysfs/sysfs_utils.c
Creating sysfs_utils.c.gcov.

################
dlist.c
################
 68.94% of 132 source lines executed in file
/home/ogasawara/udev/libsysfs/dlist.c
Creating dlist.c.gcov.

################
tdb.c
################
 42.43% of 964 source lines executed in file tdb/tdb.c
Creating tdb.c.gcov.

################
spinlock.c
################
 66.67% of 9 source lines executed in file tdb/spinlock.c
Creating spinlock.c.gcov.

################
udevsend.c
################
 82.72% of 81 source lines executed in file udevsend.c
Creating udevsend.c.gcov.

################
udevd.c
################
100.00% of 3 source lines executed in file logging.h
Creating udevd.c.logging.h.gcov.
100.00% of 22 source lines executed in file list.h
Creating udevd.c.list.h.gcov.
 89.50% of 219 source lines executed in file udevd.c
Creating udevd.c.gcov.

################
udevinfo.c
################
code for udevinfo.c was never executed
no code coverage analysis to be done

################
udevtest.c
################
 82.86% of 35 source lines executed in file udevtest.c
Creating udevtest.c.gcov.

################
udevstart.c
################
code for udevstart.c was never executed
no code coverage analysis to be done



On Mon, 2004-04-26 at 18:03, Nick Yin wrote:
> Hi,
> 
> How about your coverage for the whole udev project? I have got a coverage 
> data 86.8% for the whole project by our test suite. How do you think of this 
> result?
> 
> In addition, there is no coverage data for udevd.c, you can test it using 
> test/udevd/udevd-test.pl in udev-025 or later version:-)
> 
> Thanks!
> 
> Nick
> 
> >From: Leann Ogasawara <ogasawara@osdl.org>
> >To: hotplug <linux-hotplug-devel@lists.sourceforge.net>
> >CC: Greg KH <greg@kroah.com>, Mary Edie <maryedie@osdl.org>
> >Subject: some udev code coverage results
> >Date: Mon, 26 Apr 2004 15:39:10 -0700
> >
> >Hi All,
> >
> >Some people have asked how the code coverage for udev looked.  I ran
> >gcov for udev on all the tests in udev/test/ and received the following
> >results (which are enclosed below and also at the link listed):
> >
> >http://developer.osdl.org/ogasawara/gcov_for_udev/testall_udev_gcov.txt
> >
> >Thanks,
> >
> >Leann
> >
> >CODE COVERAGE ANALYSIS FOR UDEV
> >
> >################
> >udev.c
> >################
> >100.00% of 3 source lines executed in file logging.h
> >Creating udev.c.logging.h.gcov.
> >  79.66% of 59 source lines executed in file udev.c
> >Creating udev.c.gcov.
> >
> >################
> >udev_lib.c
> >################
> >100.00% of 15 source lines executed in file list.h
> >Creating udev_lib.c.list.h.gcov.
> >  80.39% of 102 source lines executed in file udev_lib.c
> >Creating udev_lib.c.gcov.
> >
> >################
> >udev_config.c
> >################
> >  93.07% of 101 source lines executed in file udev_config.c
> >Creating udev_config.c.gcov.
> >
> >################
> >udev-add.c
> >################
> >  78.83% of 222 source lines executed in file udev-add.c
> >Creating udev-add.c.gcov.
> >
> >################
> >udev-remove.c
> >################
> >  95.83% of 72 source lines executed in file udev-remove.c
> >Creating udev-remove.c.gcov.
> >
> >################
> >udevdb.c
> >################
> >  44.94% of 89 source lines executed in file udevdb.c
> >Creating udevdb.c.gcov.
> >
> >################
> >namedev.c
> >################
> >100.00% of 1 source lines executed in file list.h
> >Creating namedev.c.list.h.gcov.
> >  89.51% of 429 source lines executed in file namedev.c
> >Creating namedev.c.gcov.
> >
> >################
> >namedev_parse.c
> >################
> >100.00% of 8 source lines executed in file list.h
> >Creating namedev_parse.c.list.h.gcov.
> >  92.42% of 211 source lines executed in file namedev_parse.c
> >Creating namedev_parse.c.gcov.
> >
> >################
> >dev_d.c
> >################
> >  95.45% of 44 source lines executed in file dev_d.c
> >Creating dev_d.c.gcov.
> >
> >################
> >sysfs_bus.c
> >################
> >   0.00% of 2 source lines executed in file
> >/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
> >Creating sysfs_bus.c.libsysfs.h.gcov.
> >   0.00% of 182 source lines executed in file
> >/home/ogasawara/udev/libsysfs/sysfs_bus.c
> >Creating sysfs_bus.c.gcov.
> >
> >################
> >sysfs_class.c
> >################
> >   0.00% of 2 source lines executed in file
> >/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
> >Creating sysfs_class.c.libsysfs.h.gcov.
> >  34.74% of 308 source lines executed in file
> >/home/ogasawara/udev/libsysfs/sysfs_class.c
> >Creating sysfs_class.c.gcov.
> >
> >################
> >sysfs_device.c
> >################
> >   0.00% of 2 source lines executed in file
> >/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
> >Creating sysfs_device.c.libsysfs.h.gcov.
> >  39.74% of 312 source lines executed in file
> >/home/ogasawara/udev/libsysfs/sysfs_device.c
> >Creating sysfs_device.c.gcov.
> >
> >################
> >sysfs_dir.c
> >################
> >100.00% of 2 source lines executed in file
> >/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
> >Creating sysfs_dir.c.libsysfs.h.gcov.
> >  43.12% of 494 source lines executed in file
> >/home/ogasawara/udev/libsysfs/sysfs_dir.c
> >Creating sysfs_dir.c.gcov.
> >
> >################
> >sysfs_driver.c
> >################
> >   0.00% of 2 source lines executed in file
> >/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
> >Creating sysfs_driver.c.libsysfs.h.gcov.
> >   0.00% of 170 source lines executed in file
> >/home/ogasawara/udev/libsysfs/sysfs_driver.c
> >Creating sysfs_driver.c.gcov.
> >
> >################
> >sysfs_utils.c
> >################
> >  57.02% of 228 source lines executed in file
> >/home/ogasawara/udev/libsysfs/sysfs_utils.c
> >Creating sysfs_utils.c.gcov.
> >
> >################
> >dlist.c
> >################
> >  68.94% of 132 source lines executed in file
> >/home/ogasawara/udev/libsysfs/dlist.c
> >Creating dlist.c.gcov.
> >
> >################
> >tdb.c
> >################
> >  42.12% of 964 source lines executed in file tdb/tdb.c
> >Creating tdb.c.gcov.
> >
> >################
> >spinlock.c
> >################
> >  66.67% of 9 source lines executed in file tdb/spinlock.c
> >Creating spinlock.c.gcov.
> >
> >################
> >udevsend.c
> >################
> >  81.48% of 81 source lines executed in file udevsend.c
> >Creating udevsend.c.gcov.
> >
> >################
> >udevd.c
> >################
> >code for udevd.c was never executed
> >no code coverage analysis to be done
> >
> >################
> >udevinfo.c
> >################
> >code for udevinfo.c was never executed
> >no code coverage analysis to be done
> >
> >################
> >udevtest.c
> >################
> >  82.86% of 35 source lines executed in file udevtest.c
> >Creating udevtest.c.gcov.
> >
> >################
> >udevstart.c
> >################
> >code for udevstart.c was never executed
> >no code coverage analysis to be done
> >
> >
> >
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
> >For a limited time only, get FREE Ground shipping on all orders of $35
> >or more. Hurry up and shop folks, this offer expires April 30th!
> >http://www.thinkgeek.com/freeshipping/?cpg\x12297
> >_______________________________________________
> >Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
> >Linux-hotplug-devel@lists.sourceforge.net
> >https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
> 
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
> http://join.msn.com/?pageþatures/virus
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
> For a limited time only, get FREE Ground shipping on all orders of $35
> or more. Hurry up and shop folks, this offer expires April 30th!
> http://www.thinkgeek.com/freeshipping/?cpg\x12297
> _______________________________________________
> Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
> Linux-hotplug-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg\x12297
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: some udev code coverage results
  2004-04-26 22:39 some udev code coverage results Leann Ogasawara
  2004-04-27  1:03 ` Nick Yin
  2004-04-27 16:34 ` Leann Ogasawara
@ 2004-04-27 16:43 ` Greg KH
  2004-04-28  0:56 ` Nick Yin
  2004-04-28  1:01 ` Nick Yin
  4 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2004-04-27 16:43 UTC (permalink / raw)
  To: linux-hotplug

On Tue, Apr 27, 2004 at 09:34:16AM -0700, Leann Ogasawara wrote:
> Hi Nick,
> 
> I do not have a test suite for the whole udev project and thus have no
> results to compare with yours :(  I was only reporting on the results of
> the tests provided by udev.  I have rerun gcov for udev for all the udev
> tests including udev/test/udevd/udevd-test.pl and enclosed the results
> below (link also provided).  Greg, would you be interested in patches to
> expand/add some udev tests to hit the untouched portions of code or are
> you satisfied with the current coverage provided by udev/test/?

Code coverage reports by themselves don't really mean anything.  But if
you have real, useful tests that exercise the functionality of the code,
instead of just trying for complete coverage, that's useful.

So yes, I'm always interested in adding more tests to the test script to
try to exercise more functions in udev, mainly to make sure we don't
break anything in the future, and to validate that everything works
today (much like your last patches did.)

thanks,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg\x12297
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: some udev code coverage results
  2004-04-26 22:39 some udev code coverage results Leann Ogasawara
                   ` (2 preceding siblings ...)
  2004-04-27 16:43 ` Greg KH
@ 2004-04-28  0:56 ` Nick Yin
  2004-04-28  1:01 ` Nick Yin
  4 siblings, 0 replies; 6+ messages in thread
From: Nick Yin @ 2004-04-28  0:56 UTC (permalink / raw)
  To: linux-hotplug

Leann,

In facat, to the best of my knowledge there is a tool called LTP which can 
total the coverage data for the whole project.

Nick
>From: Leann Ogasawara <ogasawara@osdl.org>
>To: Nick Yin <nickyin@hotmail.com>
>CC: hotplug <linux-hotplug-devel@lists.sourceforge.net>,   Greg KH 
><greg@kroah.com>, Mary Edie <maryedie@osdl.org>
>Subject: RE: some udev code coverage results
>Date: Tue, 27 Apr 2004 09:34:16 -0700
>
>Hi Nick,
>
>I do not have a test suite for the whole udev project and thus have no
>results to compare with yours :(  I was only reporting on the results of
>the tests provided by udev.  I have rerun gcov for udev for all the udev
>tests including udev/test/udevd/udevd-test.pl and enclosed the results
>below (link also provided).  Greg, would you be interested in patches to
>expand/add some udev tests to hit the untouched portions of code or are
>you satisfied with the current coverage provided by udev/test/?  Thanks,
>
>Leann
>
>http://developer.osdl.org/ogasawara/gcov_for_udev/testall_udev_gcov.txt
>
>CODE COVERAGE ANALYSIS FOR UDEV
>
>################
>udev.c
>################
>100.00% of 3 source lines executed in file logging.h
>Creating udev.c.logging.h.gcov.
>  79.66% of 59 source lines executed in file udev.c
>Creating udev.c.gcov.
>
>################
>udev_lib.c
>################
>100.00% of 15 source lines executed in file list.h
>Creating udev_lib.c.list.h.gcov.
>  80.53% of 113 source lines executed in file udev_lib.c
>Creating udev_lib.c.gcov.
>
>################
>udev_config.c
>################
>  93.39% of 121 source lines executed in file udev_config.c
>Creating udev_config.c.gcov.
>
>################
>udev-add.c
>################
>  80.18% of 222 source lines executed in file udev-add.c
>Creating udev-add.c.gcov.
>
>################
>udev-remove.c
>################
>  95.83% of 72 source lines executed in file udev-remove.c
>Creating udev-remove.c.gcov.
>
>################
>udevdb.c
>################
>  44.94% of 89 source lines executed in file udevdb.c
>Creating udevdb.c.gcov.
>
>################
>namedev.c
>################
>100.00% of 1 source lines executed in file list.h
>Creating namedev.c.list.h.gcov.
>  89.51% of 429 source lines executed in file namedev.c
>Creating namedev.c.gcov.
>
>################
>namedev_parse.c
>################
>100.00% of 8 source lines executed in file list.h
>Creating namedev_parse.c.list.h.gcov.
>  92.42% of 211 source lines executed in file namedev_parse.c
>Creating namedev_parse.c.gcov.
>
>################
>dev_d.c
>################
>  95.45% of 44 source lines executed in file dev_d.c
>Creating dev_d.c.gcov.
>
>################
>sysfs_bus.c
>################
>   0.00% of 2 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
>Creating sysfs_bus.c.libsysfs.h.gcov.
>   0.00% of 182 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs_bus.c
>Creating sysfs_bus.c.gcov.
>
>################
>sysfs_class.c
>################
>   0.00% of 2 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
>Creating sysfs_class.c.libsysfs.h.gcov.
>  35.06% of 308 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs_class.c
>Creating sysfs_class.c.gcov.
>
>################
>sysfs_device.c
>################
>   0.00% of 2 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
>Creating sysfs_device.c.libsysfs.h.gcov.
>  39.74% of 312 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs_device.c
>Creating sysfs_device.c.gcov.
>
>################
>sysfs_dir.c
>################
>100.00% of 2 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
>Creating sysfs_dir.c.libsysfs.h.gcov.
>  43.12% of 494 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs_dir.c
>Creating sysfs_dir.c.gcov.
>
>################
>sysfs_driver.c
>################
>   0.00% of 2 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
>Creating sysfs_driver.c.libsysfs.h.gcov.
>   0.00% of 170 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs_driver.c
>Creating sysfs_driver.c.gcov.
>
>################
>sysfs_utils.c
>################
>  57.46% of 228 source lines executed in file
>/home/ogasawara/udev/libsysfs/sysfs_utils.c
>Creating sysfs_utils.c.gcov.
>
>################
>dlist.c
>################
>  68.94% of 132 source lines executed in file
>/home/ogasawara/udev/libsysfs/dlist.c
>Creating dlist.c.gcov.
>
>################
>tdb.c
>################
>  42.43% of 964 source lines executed in file tdb/tdb.c
>Creating tdb.c.gcov.
>
>################
>spinlock.c
>################
>  66.67% of 9 source lines executed in file tdb/spinlock.c
>Creating spinlock.c.gcov.
>
>################
>udevsend.c
>################
>  82.72% of 81 source lines executed in file udevsend.c
>Creating udevsend.c.gcov.
>
>################
>udevd.c
>################
>100.00% of 3 source lines executed in file logging.h
>Creating udevd.c.logging.h.gcov.
>100.00% of 22 source lines executed in file list.h
>Creating udevd.c.list.h.gcov.
>  89.50% of 219 source lines executed in file udevd.c
>Creating udevd.c.gcov.
>
>################
>udevinfo.c
>################
>code for udevinfo.c was never executed
>no code coverage analysis to be done
>
>################
>udevtest.c
>################
>  82.86% of 35 source lines executed in file udevtest.c
>Creating udevtest.c.gcov.
>
>################
>udevstart.c
>################
>code for udevstart.c was never executed
>no code coverage analysis to be done
>
>
>
>On Mon, 2004-04-26 at 18:03, Nick Yin wrote:
> > Hi,
> >
> > How about your coverage for the whole udev project? I have got a 
>coverage
> > data 86.8% for the whole project by our test suite. How do you think of 
>this
> > result?
> >
> > In addition, there is no coverage data for udevd.c, you can test it 
>using
> > test/udevd/udevd-test.pl in udev-025 or later version:-)
> >
> > Thanks!
> >
> > Nick
> >
> > >From: Leann Ogasawara <ogasawara@osdl.org>
> > >To: hotplug <linux-hotplug-devel@lists.sourceforge.net>
> > >CC: Greg KH <greg@kroah.com>, Mary Edie <maryedie@osdl.org>
> > >Subject: some udev code coverage results
> > >Date: Mon, 26 Apr 2004 15:39:10 -0700
> > >
> > >Hi All,
> > >
> > >Some people have asked how the code coverage for udev looked.  I ran
> > >gcov for udev on all the tests in udev/test/ and received the following
> > >results (which are enclosed below and also at the link listed):
> > >
> > >http://developer.osdl.org/ogasawara/gcov_for_udev/testall_udev_gcov.txt
> > >
> > >Thanks,
> > >
> > >Leann
> > >
> > >CODE COVERAGE ANALYSIS FOR UDEV
> > >
> > >################
> > >udev.c
> > >################
> > >100.00% of 3 source lines executed in file logging.h
> > >Creating udev.c.logging.h.gcov.
> > >  79.66% of 59 source lines executed in file udev.c
> > >Creating udev.c.gcov.
> > >
> > >################
> > >udev_lib.c
> > >################
> > >100.00% of 15 source lines executed in file list.h
> > >Creating udev_lib.c.list.h.gcov.
> > >  80.39% of 102 source lines executed in file udev_lib.c
> > >Creating udev_lib.c.gcov.
> > >
> > >################
> > >udev_config.c
> > >################
> > >  93.07% of 101 source lines executed in file udev_config.c
> > >Creating udev_config.c.gcov.
> > >
> > >################
> > >udev-add.c
> > >################
> > >  78.83% of 222 source lines executed in file udev-add.c
> > >Creating udev-add.c.gcov.
> > >
> > >################
> > >udev-remove.c
> > >################
> > >  95.83% of 72 source lines executed in file udev-remove.c
> > >Creating udev-remove.c.gcov.
> > >
> > >################
> > >udevdb.c
> > >################
> > >  44.94% of 89 source lines executed in file udevdb.c
> > >Creating udevdb.c.gcov.
> > >
> > >################
> > >namedev.c
> > >################
> > >100.00% of 1 source lines executed in file list.h
> > >Creating namedev.c.list.h.gcov.
> > >  89.51% of 429 source lines executed in file namedev.c
> > >Creating namedev.c.gcov.
> > >
> > >################
> > >namedev_parse.c
> > >################
> > >100.00% of 8 source lines executed in file list.h
> > >Creating namedev_parse.c.list.h.gcov.
> > >  92.42% of 211 source lines executed in file namedev_parse.c
> > >Creating namedev_parse.c.gcov.
> > >
> > >################
> > >dev_d.c
> > >################
> > >  95.45% of 44 source lines executed in file dev_d.c
> > >Creating dev_d.c.gcov.
> > >
> > >################
> > >sysfs_bus.c
> > >################
> > >   0.00% of 2 source lines executed in file
> > >/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
> > >Creating sysfs_bus.c.libsysfs.h.gcov.
> > >   0.00% of 182 source lines executed in file
> > >/home/ogasawara/udev/libsysfs/sysfs_bus.c
> > >Creating sysfs_bus.c.gcov.
> > >
> > >################
> > >sysfs_class.c
> > >################
> > >   0.00% of 2 source lines executed in file
> > >/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
> > >Creating sysfs_class.c.libsysfs.h.gcov.
> > >  34.74% of 308 source lines executed in file
> > >/home/ogasawara/udev/libsysfs/sysfs_class.c
> > >Creating sysfs_class.c.gcov.
> > >
> > >################
> > >sysfs_device.c
> > >################
> > >   0.00% of 2 source lines executed in file
> > >/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
> > >Creating sysfs_device.c.libsysfs.h.gcov.
> > >  39.74% of 312 source lines executed in file
> > >/home/ogasawara/udev/libsysfs/sysfs_device.c
> > >Creating sysfs_device.c.gcov.
> > >
> > >################
> > >sysfs_dir.c
> > >################
> > >100.00% of 2 source lines executed in file
> > >/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
> > >Creating sysfs_dir.c.libsysfs.h.gcov.
> > >  43.12% of 494 source lines executed in file
> > >/home/ogasawara/udev/libsysfs/sysfs_dir.c
> > >Creating sysfs_dir.c.gcov.
> > >
> > >################
> > >sysfs_driver.c
> > >################
> > >   0.00% of 2 source lines executed in file
> > >/home/ogasawara/udev/libsysfs/sysfs/libsysfs.h
> > >Creating sysfs_driver.c.libsysfs.h.gcov.
> > >   0.00% of 170 source lines executed in file
> > >/home/ogasawara/udev/libsysfs/sysfs_driver.c
> > >Creating sysfs_driver.c.gcov.
> > >
> > >################
> > >sysfs_utils.c
> > >################
> > >  57.02% of 228 source lines executed in file
> > >/home/ogasawara/udev/libsysfs/sysfs_utils.c
> > >Creating sysfs_utils.c.gcov.
> > >
> > >################
> > >dlist.c
> > >################
> > >  68.94% of 132 source lines executed in file
> > >/home/ogasawara/udev/libsysfs/dlist.c
> > >Creating dlist.c.gcov.
> > >
> > >################
> > >tdb.c
> > >################
> > >  42.12% of 964 source lines executed in file tdb/tdb.c
> > >Creating tdb.c.gcov.
> > >
> > >################
> > >spinlock.c
> > >################
> > >  66.67% of 9 source lines executed in file tdb/spinlock.c
> > >Creating spinlock.c.gcov.
> > >
> > >################
> > >udevsend.c
> > >################
> > >  81.48% of 81 source lines executed in file udevsend.c
> > >Creating udevsend.c.gcov.
> > >
> > >################
> > >udevd.c
> > >################
> > >code for udevd.c was never executed
> > >no code coverage analysis to be done
> > >
> > >################
> > >udevinfo.c
> > >################
> > >code for udevinfo.c was never executed
> > >no code coverage analysis to be done
> > >
> > >################
> > >udevtest.c
> > >################
> > >  82.86% of 35 source lines executed in file udevtest.c
> > >Creating udevtest.c.gcov.
> > >
> > >################
> > >udevstart.c
> > >################
> > >code for udevstart.c was never executed
> > >no code coverage analysis to be done
> > >
> > >
> > >
> > >
> > >
> > >-------------------------------------------------------
> > >This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
> > >For a limited time only, get FREE Ground shipping on all orders of $35
> > >or more. Hurry up and shop folks, this offer expires April 30th!
> > >http://www.thinkgeek.com/freeshipping/?cpg\x12297
> > >_______________________________________________
> > >Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
> > >Linux-hotplug-devel@lists.sourceforge.net
> > >https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
> >
> > _________________________________________________________________
> > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> > http://join.msn.com/?page˛atures/virus
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
> > For a limited time only, get FREE Ground shipping on all orders of $35
> > or more. Hurry up and shop folks, this offer expires April 30th!
> > http://www.thinkgeek.com/freeshipping/?cpg\x12297
> > _______________________________________________
> > Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
> > Linux-hotplug-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
>For a limited time only, get FREE Ground shipping on all orders of $35
>or more. Hurry up and shop folks, this offer expires April 30th!
>http://www.thinkgeek.com/freeshipping/?cpg\x12297
>_______________________________________________
>Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
>Linux-hotplug-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page˛atures/virus



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id149&alloc_idÅ66&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: some udev code coverage results
  2004-04-26 22:39 some udev code coverage results Leann Ogasawara
                   ` (3 preceding siblings ...)
  2004-04-28  0:56 ` Nick Yin
@ 2004-04-28  1:01 ` Nick Yin
  4 siblings, 0 replies; 6+ messages in thread
From: Nick Yin @ 2004-04-28  1:01 UTC (permalink / raw)
  To: linux-hotplug

Greg,

I will try to work out some test scripts for udevinfo, udevstart, udevtest 
binaries when i have more time. In fact there have been some test scripts 
for these binaries in our inner test but those are not so good to put them 
into source tree. I will improve them and then submit them to you.

Nick
>From: Greg KH <greg@kroah.com>
>To: Leann Ogasawara <ogasawara@osdl.org>
>CC: Nick Yin <nickyin@hotmail.com>,   hotplug 
><linux-hotplug-devel@lists.sourceforge.net>,   Mary Edie 
><maryedie@osdl.org>
>Subject: Re: some udev code coverage results
>Date: Tue, 27 Apr 2004 09:43:13 -0700
>
>On Tue, Apr 27, 2004 at 09:34:16AM -0700, Leann Ogasawara wrote:
> > Hi Nick,
> >
> > I do not have a test suite for the whole udev project and thus have no
> > results to compare with yours :(  I was only reporting on the results of
> > the tests provided by udev.  I have rerun gcov for udev for all the udev
> > tests including udev/test/udevd/udevd-test.pl and enclosed the results
> > below (link also provided).  Greg, would you be interested in patches to
> > expand/add some udev tests to hit the untouched portions of code or are
> > you satisfied with the current coverage provided by udev/test/?
>
>Code coverage reports by themselves don't really mean anything.  But if
>you have real, useful tests that exercise the functionality of the code,
>instead of just trying for complete coverage, that's useful.
>
>So yes, I'm always interested in adding more tests to the test script to
>try to exercise more functions in udev, mainly to make sure we don't
>break anything in the future, and to validate that everything works
>today (much like your last patches did.)
>
>thanks,
>
>greg k-h
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
>For a limited time only, get FREE Ground shipping on all orders of $35
>or more. Hurry up and shop folks, this offer expires April 30th!
>http://www.thinkgeek.com/freeshipping/?cpg\x12297
>_______________________________________________
>Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
>Linux-hotplug-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page˛atures/junkmail



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id149&alloc_idÅ66&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-04-28  1:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-26 22:39 some udev code coverage results Leann Ogasawara
2004-04-27  1:03 ` Nick Yin
2004-04-27 16:34 ` Leann Ogasawara
2004-04-27 16:43 ` Greg KH
2004-04-28  0:56 ` Nick Yin
2004-04-28  1:01 ` Nick Yin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).