Add new functionality to load SIP from file

Related-To: NEO-5718

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2021-04-16 12:52:30 +00:00
committed by Compute-Runtime-Automation
parent f83b51e628
commit 902cce597a
53 changed files with 534 additions and 211 deletions

View File

@@ -54,10 +54,6 @@ extern const char *executionDirectorySuffix;
std::thread::id tempThreadID;
namespace MockSipData {
extern std::unique_ptr<MockSipKernel> mockSipKernel;
}
namespace PagaFaultManagerTestConfig {
bool disabled = false;
}
@@ -160,8 +156,11 @@ void handle_SIGABRT(int sig_no) {
}
#endif
void initializeTestHelpers() {
void initializeTestHelpers(TestMode currentTestmode) {
MockSipData::mockSipKernel.reset(new MockSipKernel());
if (currentTestmode == TestMode::AubTests || currentTestmode == TestMode::AubTestsWithTbx) {
MockSipData::useMockSip = false;
}
}
void cleanTestHelpers() {
@@ -465,7 +464,7 @@ int main(int argc, char **argv) {
} else {
GmmInterface::initialize(nullptr, nullptr);
}
initializeTestHelpers();
initializeTestHelpers(testMode);
retVal = RUN_ALL_TESTS();