summaryrefslogtreecommitdiff
path: root/tools/testcases/mock_rtconfig.py
blob: 0b81dd62f09674451fd8670361168810835aad7e (plain)
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
# -*- coding: utf-8 -*-
#
# Mock rtconfig module for testing purposes
#

# Mock configuration variables
CROSS_TOOL = 'gcc'
PLATFORM = 'gcc'
CC = 'gcc'
CXX = 'g++'
AS = 'as'
AR = 'ar'
LINK = 'gcc'
EXEC_PATH = '/usr/bin'

# Mock functions
def GetDepend(depend):
    return True

# Mock environment
class MockEnv:
    def __init__(self):
        self.CPPPATH = []
        self.CPPDEFINES = []
        self.LIBS = []
        self.LIBPATH = []
        self.CFLAGS = []
        self.CXXFLAGS = []
        self.LINKFLAGS = []
        self.ASFLAGS = []

# Global variables
Env = MockEnv()
Rtt_Root = '/mock/rt-thread'
Projects = []