示例#1
0
    def test_build_project_iar_arm_tool(self):
        args = self.parser.parse_args(['build','-f','test_workspace/projects.yaml','-p',
            'project_2', '-t', 'iar_arm'])
        result = build.run(args)

        # CI does not have IAR ARM tool installed should fail , or even a project is not valid
        assert result == -1
示例#2
0
    def test_build_workspace_uvision_tool(self):
        args = self.parser.parse_args(['build','-f','test_workspace/projects.yaml','-p',
            'project_workspace', '-t', 'uvision'])
        result = build.run(args)

        # workspace build not supported for now
        assert result == -1
示例#3
0
    def test_build_project_uvision_tool(self):
        args = self.parser.parse_args(['build','-f','test_workspace/projects.yaml','-p',
            'project_2', '-t', 'uvision'])
        result = build.run(args)

        # not valid project, should fail with errors
        assert result == -1
示例#4
0
    def test_build_project_sublime_tool(self):
        args = self.parser.parse_args([
            'build', '-f', 'test_workspace/projects.yaml', '-p', 'project_2',
            '-t', 'sublime'
        ])
        result = build.run(args)

        assert result == -1
示例#5
0
 def test_build_project_eclipse_tool(self):
     args = self.parser.parse_args(['build','-f','test_workspace/projects.yaml','-p',
         'project_2', '-t', 'eclipse_make_gcc_arm'])
     result = build.run(args)
示例#6
0
 def test_build_project_coide_tool(self):
     args = self.parser.parse_args(['build','-f','test_workspace/projects.yaml','-p',
         'project_2', '-t', 'coide'])
     result = build.run(args)
示例#7
0
    def test_build_project_unknown_tool(self):
        args = self.parser.parse_args(['build','-f','test_workspace/projects.yaml','-p',
            'project_2'])
        result = build.run(args)

        assert result == -1
示例#8
0
 def test_build_project_arm_none_eabi_gdb_tool(self):
     args = self.parser.parse_args(['build','-f','test_workspace/projects.yaml','-p',
         'project_2', '-t', 'arm_none_eabi_gdb'])
     result = build.run(args)