summaryrefslogtreecommitdiff
path: root/run_gcov.sh
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-09-12 15:26:33 +0200
committerKay Sievers <kay.sievers@suse.de>2005-09-12 15:26:33 +0200
commita8b38f1c44c8a925bef467c7fbca7812dfbf86f8 (patch)
treedb18eab90df9a6d5bc2c31f19c3cd03b8dacb212 /run_gcov.sh
parent852cc0f58dba9d101abf86880aaea4880222de47 (diff)
fic gcov use and move it into the Makefile
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'run_gcov.sh')
-rw-r--r--run_gcov.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/run_gcov.sh b/run_gcov.sh
deleted file mode 100644
index ad6a62b130..0000000000
--- a/run_gcov.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-#
-# run gcov on udev
-#
-# Generate code coverage analysis for udev files
-#
-# This requires that you compiled udev with gcov flags i.e.
-# you should have compiled udev with the make_gcov.sh script.
-#
-# Leann Ogasawara <ogasawara@osdl.org>, April 2004
-
-PWD=`pwd`
-
-# check if root else may not have access to *.da files
-# and gcov analysis will fail.
-if [ $(id -u) -ne 0 ]; then
- echo "please become root before executing run_gcov.sh"
- exit 1
-fi
-
-echo > udev_gcov.txt
-echo "CODE COVERAGE ANALYSIS FOR UDEV" >> udev_gcov.txt
-echo >> udev_gcov.txt
-
-for file in `find -maxdepth 1 -name "*.gcno"`; do
- name=`basename $file .gcno`
- echo "################" >> udev_gcov.txt
- echo "$name.c" >> udev_gcov.txt
- echo "################" >> udev_gcov.txt
- if [ -e "$name.gcda" ]; then
- gcov -l "$name.c" >> udev_gcov.txt 2>&1
- else
- echo "code for $name.c was never executed" >> udev_gcov.txt 2>&1
- echo "no code coverage analysis to be done" >> udev_gcov.txt 2>&1
- fi
- echo >> udev_gcov.txt
-done
-
-echo "udev gcov analysis done. View udev_gcov.txt for results."