Browse Source

Remove outdated code from cover.mk

Loïc Hoguin 10 years ago
parent
commit
53d43a7b9a
1 changed files with 1 additions and 14 deletions
  1. 1 14
      plugins/cover.mk

+ 1 - 14
plugins/cover.mk

@@ -3,25 +3,12 @@
 
 
 COVER_REPORT_DIR = cover
 COVER_REPORT_DIR = cover
 
 
-# Hook in coverage to eunit
-
-ifdef COVER
-ifdef EUNIT_RUN
-EUNIT_RUN_BEFORE += -eval \
-	'case cover:compile_beam_directory("ebin") of \
-		{error, _} -> halt(1); \
-		_ -> ok \
-	end.'
-EUNIT_RUN_AFTER += -eval 'cover:export("eunit.coverdata").'
-endif
-endif
-
 # Hook in coverage to ct
 # Hook in coverage to ct
 
 
 ifdef COVER
 ifdef COVER
 ifdef CT_RUN
 ifdef CT_RUN
 # All modules in 'ebin'
 # All modules in 'ebin'
-COVER_MODS = $(notdir $(basename $(shell echo ebin/*.beam)))
+COVER_MODS = $(notdir $(basename $(call core_ls,ebin/*.beam)))
 
 
 test-build:: $(TEST_DIR)/ct.cover.spec
 test-build:: $(TEST_DIR)/ct.cover.spec