@@ -37,7 +37,6 @@ class Steps(CMakePackage):
37
37
variant ("distmesh" , default = True , description = "Add solvers based on distributed mesh" )
38
38
variant ("petsc" , default = True , description = "Use PETSc library for parallel E-Field solver" )
39
39
variant ("mpi" , default = True , description = "Use MPI for parallel solvers" )
40
- variant ("coverage" , default = False , description = "Enable code coverage" )
41
40
variant ("bundle" , default = False , description = "Use bundled libraries" )
42
41
variant ("stochtests" , default = True , description = "Add stochastic tests to ctests" )
43
42
variant (
@@ -67,7 +66,6 @@ class Steps(CMakePackage):
67
66
depends_on ("gmsh" , when = "+distmesh" )
68
67
depends_on ("gsl" , when = "+vesicle" )
69
68
depends_on ("lapack" , when = "+lapack" )
70
- depends_on ("lcov" , when = "+coverage" , type = "build" )
71
69
depends_on ("likwid" , when = "+likwid" )
72
70
depends_on ("metis+int64" )
73
71
depends_on ("mpi" , when = "+mpi" )
@@ -77,7 +75,6 @@ class Steps(CMakePackage):
77
75
depends_on ("petsc~debug+int64~mpi" , when = "+petsc~mpi" )
78
76
depends_on ("pkgconfig" , type = "build" )
79
77
depends_on ("py-cython" )
80
- depends_on ("py-gcovr" , when = "+coverage" , type = "build" )
81
78
depends_on ("py-h5py" , type = ("build" , "test" , "run" ))
82
79
depends_on ("py-pip" , type = "build" , when = "@5:" )
83
80
depends_on ("py-matplotlib" , type = ("build" , "test" ))
@@ -107,7 +104,6 @@ def cmake_args(self):
107
104
self .define ("STEPS_INSTALL_PYTHON_DEPS" , False ),
108
105
self .define_from_variant ("BUILD_STOCHASTIC_TESTS" , "stochtests" ),
109
106
self .define_from_variant ("BUILD_TESTING" , "codechecks" ),
110
- self .define_from_variant ("ENABLE_CODECOVERAGE" , "coverage" ),
111
107
self .define_from_variant ("STEPS_ENABLE_ERROR_ON_WARNING" , "codechecks" ),
112
108
self .define_from_variant ("STEPS_TEST_FORMATTING" , "codechecks" ),
113
109
self .define_from_variant ("STEPS_USE_CALIPER_PROFILING" , "caliper" ),
@@ -132,23 +128,6 @@ def cmake_args(self):
132
128
133
129
return args
134
130
135
- @property
136
- def build_targets (self ):
137
- targets = []
138
- if "+coverage" in self .spec :
139
- if self .compiler .name != "gcc" :
140
- raise ValueError (
141
- "Package " + self .name + " build with coverage enabled requires GCC to build"
142
- )
143
- targets = [
144
- "CTEST_OUTPUT_ON_FAILURE=1" ,
145
- "all" , # build
146
- "coverage_init" , # initialize coverage counters
147
- "test" , # run tests suite
148
- "coverage" , # collect coverage counters and build reports
149
- ]
150
- return targets
151
-
152
131
def setup_run_environment (self , env ):
153
132
# This recipe exposes a Python package from a C++ CMake project.
154
133
# This hook is required to reproduce what Spack PythonPackage does.
0 commit comments