mirror of
https://github.com/intel/compute-runtime.git
synced 2025-06-28 17:58:30 +08:00

These error codes are used as return codes from ocloc api. As such, it's useful to have them defined in the ocloc api header. Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
54 lines
1.5 KiB
C++
54 lines
1.5 KiB
C++
/*
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/offline_compiler/source/multi_command.h"
|
|
#include "shared/offline_compiler/source/ocloc_api.h"
|
|
#include "shared/offline_compiler/source/offline_compiler.h"
|
|
|
|
#include "opencl/test/unit_test/offline_compiler/mock/mock_argument_helper.h"
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
#include <cstdint>
|
|
#include <memory>
|
|
|
|
namespace NEO {
|
|
|
|
class OfflineCompilerTests : public ::testing::Test {
|
|
public:
|
|
OfflineCompiler *pOfflineCompiler = nullptr;
|
|
int retVal = OCLOC_SUCCESS;
|
|
std::map<std::string, std::string> filesMap;
|
|
std::unique_ptr<MockOclocArgHelper> oclocArgHelperWithoutInput = std::make_unique<MockOclocArgHelper>(filesMap);
|
|
|
|
protected:
|
|
void SetUp() override {
|
|
oclocArgHelperWithoutInput->setAllCallBase(true);
|
|
}
|
|
};
|
|
|
|
class MultiCommandTests : public ::testing::Test {
|
|
public:
|
|
void createFileWithArgs(const std::vector<std::string> &, int numOfBuild);
|
|
void deleteFileWithArgs();
|
|
void deleteOutFileList();
|
|
MultiCommand *pMultiCommand = nullptr;
|
|
std::string nameOfFileWithArgs;
|
|
std::string outFileList;
|
|
int retVal = OCLOC_SUCCESS;
|
|
std::map<std::string, std::string> filesMap;
|
|
std::unique_ptr<MockOclocArgHelper> oclocArgHelperWithoutInput = std::make_unique<MockOclocArgHelper>(filesMap);
|
|
|
|
protected:
|
|
void SetUp() override {
|
|
oclocArgHelperWithoutInput->setAllCallBase(true);
|
|
}
|
|
};
|
|
} // namespace NEO
|