def test_noproj_build(self): self.setupStep( vstudio.VC7(projectfile='pf', config='cfg', mode='build')) self.expectCommands( ExpectShell( workdir='wkdir', command=['devenv.com', 'pf', '/Build', 'cfg'], env=self.getExpectedEnv( r'C:\Program Files\Microsoft Visual Studio .NET 2003')) + 0) self.expectOutcome(result=SUCCESS, state_string="compile 0 projects 0 files") return self.runStep()
def test_clean(self): self.setupStep(vstudio.VC7(projectfile='pf', config='cfg', project='pj', mode='clean')) self.expectCommands( ExpectShell(workdir='wkdir', usePTY='slave-config', command=['devenv.com', 'pf', '/Clean', 'cfg', '/Project', 'pj'], env=self.getExpectedEnv( r'C:\Program Files\Microsoft Visual Studio .NET 2003')) + 0 ) self.expectOutcome(result=SUCCESS, status_text=["compile", "0 projects", "0 files"]) return self.runStep()
def test_args(self): self.setup_step( vstudio.VC7(projectfile='pf', config='cfg', project='pj')) self.expect_commands( ExpectShell( workdir='wkdir', command=[ 'devenv.com', 'pf', '/Rebuild', 'cfg', '/Project', 'pj' ], env=self.getExpectedEnv( r'C:\Program Files\Microsoft Visual Studio .NET 2003')). exit(0)) self.expect_outcome(result=SUCCESS, state_string="compile 0 projects 0 files") return self.run_step()
def test_env_prepend(self): self.setupStep(vstudio.VC7(projectfile='pf', config='cfg', project='pj', PATH=['p'], INCLUDE=['i'], LIB=['l'])) self.expectCommands( ExpectShell(workdir='wkdir', usePTY='slave-config', command=['devenv.com', 'pf', '/Rebuild', 'cfg', '/UseEnv', '/Project', 'pj'], env=self.getExpectedEnv( r'C:\Program Files\Microsoft Visual Studio .NET 2003', l='l', p='p', i='i')) + 0 ) self.expectOutcome(result=SUCCESS, state_string="compile 0 projects 0 files") return self.runStep()