Beispiel #1
0
 def test_noproj_build(self):
     self.setupStep(
         vstudio.VC6(projectfile='pf', config='cfg', mode='build'))
     self.expectCommands(
         ExpectShell(
             workdir='wkdir',
             command=['msdev', 'pf', '/MAKE', 'ALL - cfg', '/BUILD'],
             env=self.getExpectedEnv(
                 r'C:\Program Files\Microsoft Visual Studio')) + 0)
     self.expectOutcome(result=SUCCESS,
                        state_string="compile 0 projects 0 files")
     return self.runStep()
Beispiel #2
0
 def test_args(self):
     self.setup_step(
         vstudio.VC6(projectfile='pf', config='cfg', project='pj'))
     self.expect_commands(
         ExpectShell(
             workdir='wkdir',
             command=['msdev', 'pf', '/MAKE', 'pj - cfg', '/REBUILD'],
             env=self.getExpectedEnv(
                 r'C:\Program Files\Microsoft Visual Studio')).exit(0))
     self.expect_outcome(result=SUCCESS,
                         state_string="compile 0 projects 0 files")
     return self.run_step()
Beispiel #3
0
 def test_args(self):
     self.setupStep(
         vstudio.VC6(projectfile='pf', config='cfg', project='pj'))
     self.expectCommands(
         ExpectShell(
             workdir='wkdir',
             usePTY='slave-config',
             command=['msdev', 'pf', '/MAKE', 'pj - cfg', '/REBUILD'],
             env=self.getExpectedEnv(
                 r'C:\Program Files\Microsoft Visual Studio')) + 0)
     self.expectOutcome(result=SUCCESS,
                        status_text=["compile", "0 projects", "0 files"])
     return self.runStep()
Beispiel #4
0
 def test_clean(self):
     self.setupStep(vstudio.VC6(projectfile='pf', config='cfg',
                                project='pj', mode='clean'))
     self.expectCommands(
         ExpectShell(workdir='wkdir', usePTY='slave-config',
                     command=['msdev', 'pf', '/MAKE',
                              'pj - cfg', '/CLEAN'],
                     env=self.getExpectedEnv(
                         r'C:\Program Files\Microsoft Visual Studio'))
         + 0
     )
     self.expectOutcome(result=SUCCESS,
                        state_string="compile 0 projects 0 files")
     return self.runStep()
Beispiel #5
0
 def test_env_prepend(self):
     self.setupStep(vstudio.VC6(projectfile='pf', config='cfg',
                                project='pj', PATH=['p'], INCLUDE=['i'],
                                LIB=['l']))
     self.expectCommands(
         ExpectShell(workdir='wkdir', usePTY='slave-config',
                     command=['msdev', 'pf', '/MAKE',
                              'pj - cfg', '/REBUILD',
                              '/USEENV'],  # note extra param
                     env=self.getExpectedEnv(
                         r'C:\Program Files\Microsoft Visual Studio',
                         l='l', p='p', i='i'))
         + 0
     )
     self.expectOutcome(result=SUCCESS,
                        state_string="compile 0 projects 0 files")
     return self.runStep()