forked from Open-CMSIS-Pack/devtools
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathRteModelTestConfig.h
More file actions
65 lines (54 loc) · 2.16 KB
/
Copy pathRteModelTestConfig.h
File metadata and controls
65 lines (54 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef RteModelTestConfig_H
#define RteModelTestConfig_H
/******************************************************************************/
/* RteModelTestConfig - Common Test Configurations */
/******************************************************************************/
/** @file RteModelTestConfig.h
* @brief CMSIS environment configurations
*/
/*
* Copyright (c) 2020-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
/******************************************************************************/
#include "gtest/gtest.h"
#include <string>
#include <unordered_map>
#include "RteDevice.h"
class RteModelTestConfig : public ::testing::Test
{
public:
RteModelTestConfig();
void compareFile(const std::string& newFile, const std::string& refFile,
const std::unordered_map<std::string, std::string>& expectedChangedFlags, const std::string& toolchain) const;
static bool IsSubset(const RteDevicePropertyMap& subset, const RteDevicePropertyMap& superset);
protected:
void SetUp() override;
void TearDown() override;
public:
static const std::string CMSIS_PACK_ROOT;
static const std::string LOCAL_REPO_DIR;
static const std::string LOCAL_PACK_DIR;
static const std::string PROJECTS_DIR;
static const std::string M3_CPRJ;
static const std::string prjsDir;
static const std::string packsDir;
static const std::string localPacks;
static const std::string RteTestM3;
static const std::string RteTestM3_cprj;
static const std::string RteTestM3NoComponents_cprj;
static const std::string RteTestM3PackReq_cprj;
static const std::string RteTestM3_ConfigFolder_cprj;
static const std::string RteTestM3_PackPath_cprj;
static const std::string RteTestM3_PackPath_MultiplePdscs_cprj;
static const std::string RteTestM3_PackPath_NoPdsc_cprj;
static const std::string RteTestM3_PackPath_Invalid_cprj;
static const std::string RteTestM3_PrjPackPath;
static const std::string RteTestM3_UpdateHeader_cprj;
static const std::string RteTestM4;
static const std::string RteTestM4_cprj;
static const std::string RteTestM4_Board_cprj;
static const std::string RteTestM4_CompDep_cprj;
};
#endif // RteModelTestConfig_H