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
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user