Exemplo n.º 1
0
 def test_args(self):
     self.setupStep(
         vstudio.VCExpress9(projectfile='pf', config='cfg', project='pj'))
     self.expectCommands(
         ExpectShell(
             workdir='wkdir',
             command=[
                 'vcexpress', 'pf', '/Rebuild', 'cfg', '/Project', 'pj'
             ],
             env=self.getExpectedEnv(
                 # note: still uses version 8 (?!)
                 r'C:\Program Files\Microsoft Visual Studio 8')) + 0)
     self.expectOutcome(result=SUCCESS,
                        state_string="compile 0 projects 0 files")
     return self.runStep()
Exemplo n.º 2
0
 def test_clean(self):
     self.setup_step(
         vstudio.VCExpress9(projectfile='pf',
                            config='cfg',
                            project='pj',
                            mode='clean'))
     self.expect_commands(
         ExpectShell(
             workdir='wkdir',
             command=['vcexpress', 'pf', '/Clean', 'cfg', '/Project', 'pj'],
             env=self.getExpectedEnv(
                 # note: still uses version 8 (?!)
                 r'C:\Program Files\Microsoft Visual Studio 8')).exit(0))
     self.expect_outcome(result=SUCCESS,
                         state_string="compile 0 projects 0 files")
     return self.run_step()
Exemplo n.º 3
0
 def test_clean(self):
     self.setupStep(
         vstudio.VCExpress9(projectfile='pf',
                            config='cfg',
                            project='pj',
                            mode='clean'))
     self.expectCommands(
         ExpectShell(
             workdir='wkdir',
             usePTY='slave-config',
             command=['vcexpress', 'pf', '/Clean', 'cfg', '/Project', 'pj'],
             env=self.getExpectedEnv(
                 # note: still uses version 8 (?!)
                 r'C:\Program Files\Microsoft Visual Studio 8')) + 0)
     self.expectOutcome(result=SUCCESS,
                        status_text=["compile", "0 projects", "0 files"])
     return self.runStep()
Exemplo n.º 4
0
 def test_mode_build_env(self):
     self.setupStep(
         vstudio.VCExpress9(projectfile='pf',
                            config='cfg',
                            project='pj',
                            mode='build',
                            INCLUDE=['i']))
     self.expectCommands(
         ExpectShell(workdir='wkdir',
                     command=[
                         'vcexpress', 'pf', '/Build', 'cfg', '/UseEnv',
                         '/Project', 'pj'
                     ],
                     env=self.getExpectedEnv(
                         r'C:\Program Files\Microsoft Visual Studio 8',
                         i='i')) + 0)
     self.expectOutcome(result=SUCCESS,
                        state_string="compile 0 projects 0 files")
     return self.runStep()