fix: extend cache hash with compiler commit sha, lib size and mtime

Related-To: NEO-4262

Signed-off-by: Kacper Kasper <kacper.k.kasper@intel.com>
This commit is contained in:
Kacper Kasper
2023-08-21 12:00:06 +00:00
committed by Compute-Runtime-Automation
parent d49190f4ae
commit 991febcdf4
35 changed files with 240 additions and 26 deletions

View File

@@ -60,6 +60,9 @@ struct MockFwUtilOsLibrary : public OsLibrary {
bool isLoaded() override {
return false;
}
std::string getFullPath() override {
return std::string();
}
static OsLibrary *load(const std::string &name) {
if (mockLoad == true) {
auto ptr = new (std::nothrow) MockFwUtilOsLibrary();

View File

@@ -145,6 +145,9 @@ TEST(FwGetProcAddressTest, GivenValidFwUtilMethodNameWhenFirmwareUtilIsInitalize
return nullptr;
}
bool isLoaded() override { return true; }
std::string getFullPath() override {
return std::string();
}
std::map<std::string, void *> ifrFuncMap;
};
uint16_t domain = 0;
@@ -179,6 +182,9 @@ TEST(FwEccTest, GivenFwEccConfigCallFailsWhenCallingFirmwareUtilSetAndGetEccThen
bool isLoaded() override {
return false;
}
std::string getFullPath() override {
return std::string();
}
std::map<std::string, void *> eccFuncMap;
};
uint16_t domain = 0;
@@ -218,6 +224,9 @@ TEST(LinuxFwEccTest, GivenValidFwUtilMethodWhenCallingFirmwareUtilSetAndGetEccTh
bool isLoaded() override {
return false;
}
std::string getFullPath() override {
return std::string();
}
std::map<std::string, void *> eccFuncMap;
};
uint16_t domain = 0;
@@ -293,6 +302,9 @@ TEST(FwGetMemErrorCountTest, GivenValidFwUtilMethodWhenMemoryErrorCountIsRequest
bool isLoaded() override {
return false;
}
std::string getFullPath() override {
return std::string();
}
std::map<std::string, void *> memErrFuncMap;
};
L0::Sysman::FirmwareUtilImp *pFwUtilImp = new L0::Sysman::FirmwareUtilImp(0, 0, 0, 0);

View File

@@ -26,6 +26,9 @@ class MockNlDll : public NEO::OsLibrary {
public:
bool isLoaded() override { return false; }
void *getProcAddress(const std::string &procName) override;
std::string getFullPath() override {
return std::string();
}
void deleteEntryPoint(const std::string &procName);