mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
d49190f4ae
commit
991febcdf4
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user