Lines Matching full:program

18         Tests the default launch of a simple program. No arguments,
21 program = self.getBuildArtifact("a.out")
22 self.build_and_launch(program)
24 # Now get the STDOUT and verify our program argument is correct
26 self.assertTrue(output and len(output) > 0, "expect program output")
28 self.assertIn(program, lines[0], "make sure program path is in first argument")
51 Tests the default launch of a simple program that stops at the
54 program = self.getBuildArtifact("a.out")
55 self.build_and_launch(program, stopOnEntry=True)
69 Tests the default launch of a simple program with a current working
72 program = self.getBuildArtifact("a.out")
73 program_parent_dir = os.path.realpath(os.path.dirname(os.path.dirname(program)))
74 self.build_and_launch(program, cwd=program_parent_dir)
76 # Now get the STDOUT and verify our program argument is correct
78 self.assertTrue(output and len(output) > 0, "expect program output")
90 self.assertTrue(found, "verified program working directory")
97 program = self.getBuildArtifact("a.out")
98 program_parent_dir = os.path.realpath(os.path.dirname(os.path.dirname(program)))
104 program, debuggerRoot=program_parent_dir, initCommands=commands
127 program = self.getBuildArtifact("a.out")
128 program_dir = os.path.dirname(program)
129 self.build_and_launch(program, sourcePath=program_dir)
149 Tests the default launch of a simple program with STDIO disabled.
151 program = self.getBuildArtifact("a.out")
152 self.build_and_launch(program, disableSTDIO=True)
154 # Now get the STDOUT and verify our program argument is correct
156 self.assertEqual(output, None, "expect no program output")
163 Tests the default launch of a simple program with shell expansion
166 program = self.getBuildArtifact("a.out")
167 program_dir = os.path.dirname(program)
169 self.build_and_launch(program, args=[glob], shellExpandArguments=True)
171 # Now get the STDOUT and verify our program argument is correct
173 self.assertTrue(output and len(output) > 0, "expect no program output")
176 quote_path = '"%s"' % (program)
179 quote_path, line, 'verify "%s" expanded to "%s"' % (glob, program)
184 Tests the default launch of a simple program with shell expansion
187 program = self.getBuildArtifact("a.out")
188 program_dir = os.path.dirname(program)
190 self.build_and_launch(program, args=[glob], shellExpandArguments=False)
192 # Now get the STDOUT and verify our program argument is correct
194 self.assertTrue(output and len(output) > 0, "expect no program output")
205 Tests launch of a simple program with arguments
207 program = self.getBuildArtifact("a.out")
209 self.build_and_launch(program, args=args)
214 self.assertTrue(output and len(output) > 0, "expect program output")
216 # Skip the first argument that contains the program name
229 Tests launch of a simple program with environment variables
231 program = self.getBuildArtifact("a.out")
239 self.build_and_launch(program, env=env)
244 self.assertTrue(output and len(output) > 0, "expect program output")
250 # program environment that was printed to STDOUT
258 found, '"%s" must exist in program environment (%s)' % (var, lines)
263 Tests launch of a simple program with environment variables
265 program = self.getBuildArtifact("a.out")
268 self.build_and_launch(program, env=env)
273 self.assertTrue(output and len(output) > 0, "expect program output")
279 # program environment that was printed to STDOUT
287 found, '"%s" must exist in program environment (%s)' % (var, lines)
304 time the program stops.
310 program = self.getBuildArtifact("a.out")
318 program,
363 # Continue until the program exits
380 program = self.getBuildArtifact("a.out")
390 'target create "%s"' % (program),
401 program,
418 # After execution, program should launch
432 # Continue until the program exits
444 program = self.getBuildArtifact("a.out")
448 launchCommands = ['!target create "%s%s"' % (bad_path, program)]
453 program,
487 program = self.getBuildArtifact("a.out")
491 program=program,
510 program = self.getBuildArtifact("a.out")
511 self.build_and_launch(program)