summaryrefslogtreecommitdiffstats
path: root/lldb/test/hello_world/TestHelloWorld.py
Commit message (Collapse)AuthorAgeFilesLines
* Move hello_world to now reside under python_api dir.Johnny Chen2011-06-261-178/+0
| | | | llvm-svn: 133890
* Simplified the test cases, before moving the file to reside under python_api ↵Johnny Chen2011-06-261-30/+9
| | | | | | dir. llvm-svn: 133889
* Modify a bunch of docstrings to be more correct. Check the ↵Johnny Chen2011-06-171-12/+14
| | | | | | | | SBError.Success() after attaching. Also eat the stdout of the spawned "hello_world" process if not in TraceOn() mode. llvm-svn: 133280
* Add a bunch of test cases to TestHelloWorld.py to exercise combinations of ↵Johnny Chen2011-06-171-6/+82
| | | | | | | | | dwarf/dsym debug setup. Among them are test cases to exercise SBTarget.AttachToProcessWithName(); we attach to "hello_world", and verify that, after attachment, the currently selected target indeed matches "hello_world". llvm-svn: 133279
* Localize the finding of our to-be-debugged executable in one spot during the ↵Johnny Chen2011-06-171-7/+5
| | | | | | | | setUp() phase. Change the executable name to be "hello_world". llvm-svn: 133277
* Modify docstring.Johnny Chen2011-06-171-2/+2
| | | | llvm-svn: 133230
* o TestHelloWorld.py:Johnny Chen2011-06-171-1/+42
| | | | | | | | | | | | | | Add a test case for the SBTarget::AttachToProcessWithID() API call. o main.c: The change goes with the added test case test_with_dwarf_and_attach_to_process_with_id_api() above. o SBTarget.cpp: Checks whether we're in synchronous mode. If yes, let's wait for the process to stop right after attaching. llvm-svn: 133223
* The extra burden for the Python API test case to assign its process object ↵Johnny Chen2011-06-151-3/+3
| | | | | | | | | to self.process in order to have its process cleaned up (terminated) upon tearDown is gone for good. Let's simplify a bunch of Python API test cases. llvm-svn: 133097
* Simplify the base test class. Remove keyword argument setCookie from ↵Johnny Chen2011-06-151-1/+1
| | | | | | | | | TestBase.runCmd() and remove the self.runStarted attribute since the automatic shutdown of processes associated with the targets are now performed automatically. llvm-svn: 133092
* Removed unneeded method breakAfterLaunch() from the TestBase class to ↵Johnny Chen2011-06-131-4/+0
| | | | | | | | simplify our base class. It was introduced to work around some debugger infrastructure bug which has long since been fixed. llvm-svn: 132951
* Now that we have added a post-processing step for adding truth value testing toJohnny Chen2011-05-241-1/+1
| | | | | | | those lldb objects which implement the IsValid() method, let's change the rest of the test suite to use the more compact truth value testing pattern (the Python way). llvm-svn: 131970
* Change the rest of lldbutil.py's function names to all lower case formats to ↵Johnny Chen2011-04-271-2/+2
| | | | | | | | be consistent. And modify the test cases accordingly. llvm-svn: 130314
* Converted to use SBProcess.LaunchSimple().Johnny Chen2011-04-191-2/+1
| | | | llvm-svn: 129784
* Modify test scripts to accomodate SBTarget.Launch() API change.Johnny Chen2011-02-031-1/+1
| | | | llvm-svn: 124828
* Deprecated old forms of SBTarget::Launch. There is not just one and noGreg Clayton2011-01-231-2/+3
| | | | | | SWIG renaming done to work around deprecated APIs. llvm-svn: 124075
* Add @python_api_test decorator to the remaining Test*.py files.Johnny Chen2010-12-101-0/+1
| | | | llvm-svn: 121448
* For SBTarget.Launch()/LaunchProcess(), there's no need to pass an empty stringJohnny Chen2010-12-081-1/+1
| | | | | | | | | | | | | | as the args and the envs to the launched process. o lldbtest.py: Forgot to check in some assertion messages changes for lldbtest.py. o dotest.py: Also add "api" category to the default lldb log option list. llvm-svn: 121220
* Slight changes to how to phrase the assert for Python API ↵Johnny Chen2010-11-101-3/+4
| | | | | | thread.GetStopReason(). llvm-svn: 118731
* Finish adding the actual stop reason as part of the assert message when ↵Johnny Chen2010-11-101-1/+2
| | | | | | | | asserting: thread.GetStopReason() == lldb.eStopReasonBreakpoint llvm-svn: 118713
* Clean up the StateType and StopReason enums now that they reside in the lldb ↵Johnny Chen2010-10-071-1/+1
| | | | | | module. llvm-svn: 115922
* Remove the @expectedFailure decorator since the SBTarget.LaunchProcess() raceJohnny Chen2010-10-061-2/+3
| | | | | | condition has been fixed. llvm-svn: 115826
* Moved the process cleanup of Script-Bridge-based APIs into TestBase.tearDown()Johnny Chen2010-09-021-6/+3
| | | | | | | | | | method where they belong. Also fixed a logic error in maintaining the command interface flag (runStarted) indicating whether the lldb "run"/"process launch" command has been issued. It was erroneously cleared. Modified the test cases to take advantage of the refactoring. llvm-svn: 112863
* (query-replace "variable list" "frame variable")Johnny Chen2010-09-021-1/+1
| | | | llvm-svn: 112824
* Fixed comment.Johnny Chen2010-09-011-1/+1
| | | | llvm-svn: 112750
* Put the little dances done after SBTarget.LaunchProcess() into the base class.Johnny Chen2010-09-011-28/+11
| | | | llvm-svn: 112749
* Changed the test case class names to be noun-like instead of verb-like.Johnny Chen2010-09-011-1/+1
| | | | llvm-svn: 112732
* Added buildDsym() and buildDwarf() methods to lldbtest.TestBase class, and callJohnny Chen2010-08-301-2/+2
| | | | | | them from test cases instead of issuing "make clean; make ..." os command. llvm-svn: 112542
* Added a system() method to the TestBase class of lldbtest.py, which is actuallyJohnny Chen2010-08-301-25/+41
| | | | | | | | | | | | | | | | | taken from Python 2.7's subprocess.check_output() convenience function. The purpose of this method is to run the os command with arguments and return its output as a byte string. Modified hello_world/TestHelloWorld.py to have two test cases: o test_with_dsym_and_run_command o test_with_dwarf_and_process_launch_api with the dsym case conditioned on sys.platform.startswith("darwin") being true. The two cases utilize the system() method to invoke "make clean; make MAKE_DYSM=YES/NO" to prepare for the appropriate debugging format before running the test logic. llvm-svn: 112530
* Fixed a typo in the method name.Johnny Chen2010-08-271-1/+1
| | | | llvm-svn: 112311
* Added TestHelloWorld.py which exercises the Python APIs for target, breakpoint,Johnny Chen2010-08-271-0/+86
and process. Added comment within the file about issues of using LaunchProcess of SBTarget to launch a process (rdar://problem/8364687). llvm-svn: 112276
OpenPOWER on IntegriCloud