[hip-tests] Update API coverage report generator (#1932)
* [hip-tests] Update API coverage report generator Updates the HIP API coverage tool. It now takes extra arguments for the location of the catch test folder and for the working directory. This avoids issues where the output of the executable is dependent on the path where it is being executed from. Also updates CmakeLists.txt to integrate seamlessly with the hip-tests project and avoid using commands which rely on relative paths. * Remove double new line * Remove Cmake option to generate coverage Removes Cmake option to generate coverage. Instead, explicitly removes the gen_coverage target from all (this is already the default but doing it explicitly prevents confusion).
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
0c1f87a7f6
commit
d4fe3f1cc3
@@ -28,9 +28,9 @@ bool operator==(const HipAPIGroup& l_hip_api_group, const HipAPIGroup& r_hip_api
|
||||
|
||||
HipAPIGroup::HipAPIGroup(std::string group_name, std::vector<HipAPI>& hip_apis)
|
||||
: group_name{group_name},
|
||||
total_number_of_apis{0},
|
||||
number_of_api_calls{0},
|
||||
percentage_of_called_apis{0.f},
|
||||
total_number_of_apis{0},
|
||||
number_of_test_cases{0} {
|
||||
std::vector<TestCaseOccurrence> test_cases;
|
||||
for (auto const& hip_api : hip_apis) {
|
||||
@@ -85,7 +85,7 @@ int HipAPIGroup::getNumberOfDeprecatedAPIs() const { return deprecated_apis.size
|
||||
float HipAPIGroup::getPercentageOfCalledAPIs() const { return percentage_of_called_apis; }
|
||||
|
||||
bool HipAPIGroup::isDeprecated() const {
|
||||
return (deprecated_apis.size() == total_number_of_apis) ? true : false;
|
||||
return (static_cast<int>(deprecated_apis.size()) == total_number_of_apis) ? true : false;
|
||||
}
|
||||
|
||||
std::string HipAPIGroup::getBasicStatsXML() const {
|
||||
|
||||
Reference in New Issue
Block a user