 +        exit 1
 +    fi
 +    coveragefunc $testname
-+    real_uploadfunc $testname
-+    echo "Done!"
-+}
-+
-+real_uploadfunc(){
-+    local testname=$1
-+
 +    if [ -z $VIRTCOV_NAME ]; then
 +        echo -e "Your name: \c"
 +        read answer

+# <http://www.gnu.org/licenses/>.
+
+version="@VERSION@"
+COVPATH="/usr/share/doc/libvirt-devel-${version}/gcno/"
+WORKPATH="/usr/coverage/BUILD/libvirt-${version}/"
+COVERAGE_POOL="127.0.0.1:8000"
+

+    local testname=$1
+
+    setenforce 0
+    systemctl stop libvirtd 2>/dev/null
+    echo "Stop libvirtd"
+    setenforce 1
+    lcov --capture --directory "$WORKPATH" --output-file /tmp/coverage.info --test-name "$testname" >/dev/null 2>&1
+    echo "Create coverage.info in tmp directory"
+    systemctl start libvirtd 2>/dev/null
+    echo "Start libvirtd"
+}
+
