chiark / gitweb /
release 127
[elogind.git] / docs / README-gcov_for_udev
index c223dc38e887b80a952a632b230af1ff916a088e..5acb53a27c95c5bf4a2da4d8eccab83225055666 100644 (file)
@@ -14,37 +14,19 @@ With that said, here is how to get code coverage analysis for udev files.
 Note that this was developed with udev version 024.
 
 - Make sure you've installed udev and that it is working properly.
 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.
-
-- execute make_gcov.sh from udev top level directory
 
 
+- Build udev with:
     make gcov-all
     make gcov-all
-
-  This will compile udev with gcov support.  Basically make_gcov.sh will
-  run make but override the CFLAGS.  It strips any optimization from
-  CFLAGS in order for gcov to get correct code coverage analysis.  It will
-  also add the -fprofile-arcs and -ftest-coverage options which are the
-  necessary flags needed to use gcov.
-
-  If you look into your udev directory and see that it has been polluted with
-  a bunch of *.gcno, *.gcda and *.gcov files. gcov creates and uses these files
-  to extract the code coverage info.
-
-- After running make_gcov.sh you need to install udev again.  So basically,
-
-    su to root
-    make install
+  This will compile udev with gcov support. If you look into your udev directory
+  and see that it has been polluted with a bunch of *.gcno, *.gcda and *.gcov files.
+  gcov creates and uses these files to extract the code coverage info.
 
 - 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.  I personally recommend just
   running test/udev-test.pl for starters.
 
 
 - 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.  I personally recommend just
   running test/udev-test.pl for starters.
 
-- 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
+- To get the udev code coverage analysis:
     make udev_gcov.txt
 
 - This creates udev_gcov.txt in the udev top level directory which holds all
     make udev_gcov.txt
 
 - This creates udev_gcov.txt in the udev top level directory which holds all
@@ -83,8 +65,4 @@ Note that this was developed with udev version 024.
 
 - Once you are done with using gcov for udev and want to return to your
   normal use of udev, run a regular 'make clean' on your udev directory.
 
 - Once you are done with using gcov for udev and want to return to your
   normal use of udev, run a regular 'make clean' on your udev directory.
-  Then just run a regular make and make install and you are back to normal:
-
-    make clean all
-    su to root
-    make install
+  Then just run a regular make and make install and you are back to normal.