2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2019-02-27 18:39:32 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-27 23:17:08 +08:00
|
|
|
#include "shared/offline_compiler/source/multi_command.h"
|
|
|
|
#include "shared/offline_compiler/source/offline_compiler.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "gtest/gtest.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
#include <cstdint>
|
2020-03-10 21:02:09 +08:00
|
|
|
#include <memory>
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
class OfflineCompilerTests : public ::testing::Test {
|
|
|
|
public:
|
2020-04-15 23:15:07 +08:00
|
|
|
OfflineCompiler *pOfflineCompiler = nullptr;
|
2021-01-13 16:30:01 +08:00
|
|
|
int retVal = OfflineCompiler::ErrorCode::SUCCESS;
|
2020-04-15 23:15:07 +08:00
|
|
|
std::unique_ptr<OclocArgHelper> oclocArgHelperWithoutInput = std::make_unique<OclocArgHelper>();
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
|
|
|
|
2019-05-14 22:47:35 +08:00
|
|
|
class MultiCommandTests : public ::testing::Test {
|
|
|
|
public:
|
|
|
|
void createFileWithArgs(const std::vector<std::string> &, int numOfBuild);
|
|
|
|
void deleteFileWithArgs();
|
2019-11-21 20:52:43 +08:00
|
|
|
void deleteOutFileList();
|
2020-03-13 21:59:00 +08:00
|
|
|
MultiCommand *pMultiCommand = nullptr;
|
2019-05-14 22:47:35 +08:00
|
|
|
std::string nameOfFileWithArgs;
|
2019-11-21 20:52:43 +08:00
|
|
|
std::string outFileList;
|
2021-01-13 16:30:01 +08:00
|
|
|
int retVal = OfflineCompiler::ErrorCode::SUCCESS;
|
2020-04-15 23:15:07 +08:00
|
|
|
std::unique_ptr<OclocArgHelper> oclocArgHelperWithoutInput = std::make_unique<OclocArgHelper>();
|
2019-05-14 22:47:35 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|