chiark / gitweb /
[PATCH] gcov for udev
authorogasawara@osdl.org <ogasawara@osdl.org>
Thu, 22 Apr 2004 00:49:49 +0000 (17:49 -0700)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:35:16 +0000 (21:35 -0700)
Sorry for the late email regarding the gcov code coverage information
for udev.  For those of you who have not yet noticed, udev can now be
compiled with gcov support and provide code coverage analysis.  All
pertinent scripts and information can be found in the udev tree.  Please
refer to "README-gcov_for_udev" for detailed information on compiling
gcov into udev and obtaining code coverage analysis.  I've enclosed a
patch that updates the README-gcov_for_udev.  Also, "udev-test.pl" in
udev/test/ was expanded to test symlinks, permissions, and some lack of
node creation a little more thoroughly.  All comments and feedback would
be greatly welcomed.  Also, any extra testing would be appreciated.
Thanks,

README-gcov_for_udev

index fa377bc4af6713b69d3a8a3d5de45e8ec26980a2..ca832803a28efe4ba192fb1117cf8af72b82b570 100644 (file)
@@ -14,20 +14,11 @@ Note that this was developed with udev version 024.
 - Make sure you've installed udev and that it is working properly.
   If you are having problems, refer to the README and HOWTO-udev_for_dev
   documents in udev tarball.  I've also compiled a udev_for_dev
 - Make sure you've installed udev and that it is working properly.
   If you are having problems, refer to the README and HOWTO-udev_for_dev
   documents in udev tarball.  I've also compiled a udev_for_dev
-  toubleshooting document for Red Hat which can be found at:
+  toubleshooting document for Red Hat which can be found in:
 
 
-  http://developer.osdl.org/ogasawara/gcov_for_udev/rh_udev_for_dev.txt
+  docs/rh_udev_for_dev.txt
 
 
-- Get the following files:
-    make_gcov.sh
-    run_gcov.sh
-
-  These can be found at http://developer.osdl.org/ogasawara/gcov_for_udev/
-
-- After grabbing these files, copy both make_gcov.sh and run_gcov.sh
-  into the top level of your udev directory.
-
-- execute make_gcov.sh
+- execute make_gcov.sh from udev top level directory
 
     ./make_gcov.sh
 
 
     ./make_gcov.sh
 
@@ -60,17 +51,18 @@ Note that this was developed with udev version 024.
 
 - Then execute some udev tasks.  You can run some udev tests, reboot, or
   do anything your little udev heart desires.  Once you are satisfied, you
 
 - Then execute some udev tasks.  You can run some udev tests, reboot, or
   do anything your little udev heart desires.  Once you are satisfied, you
-  can now see how much udev code was covered.
+  can now see how much udev code was covered.  I personally recommend just
+  running test/udev-test.pl for starters.
 
 
-- To get the udev code coverage analysis, execute run_gcov.sh.  You need to
-  be root to do this.
+- To get the udev code coverage analysis, execute run_gcov.sh from udev top
+  level directory.  You need to be root to do this.
 
     su to root
     ./run_gcov.sh
 
 
     su to root
     ./run_gcov.sh
 
-- This creates udev_gcov.txt which holds all the code coverage information.
-  To see an example of the code coverage info after executing the udev-test.pl
-  test, please see:
+- This creates udev_gcov.txt in the udev top level directory which holds all
+  the code coverage information. To see an example of the code coverage info
+  after executing the udev-test.pl test, please see:
 
   http://developer.osdl.org/ogasawara/gcov_for_udev/udev_gcov.txt
 
 
   http://developer.osdl.org/ogasawara/gcov_for_udev/udev_gcov.txt