From: Michael D. Lowis Date: Tue, 2 Sep 2014 15:54:07 +0000 (-0400) Subject: Make coverage an independent task X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=cdfd643c0b58d300c57944303fc4b51481d21b81;p=projs%2Flibcds.git Make coverage an independent task --- diff --git a/Rakefile b/Rakefile index 67e6d4a..cdecb62 100644 --- a/Rakefile +++ b/Rakefile @@ -35,7 +35,7 @@ at_exit { Env.process; TestEnv.process} #------------------------------------------------------------------------------ # Main Build Targets #------------------------------------------------------------------------------ -task :default => [:test, :coverage, :build] +task :default => [:test, :build] desc "Build the C Data Structures static library" task :build do @@ -59,10 +59,7 @@ task :coverage => [:test] do obj = gcno.ext('o') path = File.dirname(obj) gcov = File.basename(obj).ext('c.gcov') - #if File.exist?(gcno.ext('gcda')) - sh *['gcov', '-a', '-b', '-c', obj] and - FileUtils.mv("./#{gcov}","#{path}/#{gcov}") - #end + sh *['gcov', '-a', '-b', '-c', obj] and FileUtils.mv("./#{gcov}","#{path}/#{gcov}") end end