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()
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()
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()
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()
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()