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

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 Intel Corporation
* Copyright (C) 2022-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -34,6 +34,10 @@ class MockOsLibrary : public NEO::OsLibrary {
return false;
}
std::string getFullPath() override {
return std::string();
}
static OsLibrary *load(const std::string &name) {
auto ptr = new (std::nothrow) MockOsLibrary(name, nullptr);
if (ptr == nullptr) {

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

@@ -157,6 +157,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;
@@ -194,6 +197,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;
@@ -236,6 +242,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;
@@ -323,6 +332,9 @@ TEST(FwGetMemErrorCountTest, GivenValidFwUtilMethodWhenMemoryErrorCountIsRequest
bool isLoaded() override {
return false;
}
std::string getFullPath() override {
return std::string();
}
std::map<std::string, void *> memErrFuncMap;
};
FirmwareUtilImp *pFwUtilImp = new FirmwareUtilImp(0, 0, 0, 0);

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2022 Intel Corporation
* Copyright (C) 2020-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -25,6 +25,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);