summaryrefslogtreecommitdiffstats
path: root/lldb/test/settings/TestSettings.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove the expectedFailure decorator for the fixed bug:Johnny Chen2011-01-251-9/+24
| | | | | | | | | | rdar://problem/8435794 settings set target.process.output-path does not seem to work Also change the test case from test_set_output_path to test_set_error_output_path as it now exercises both setting target.process.error-path and target.process.output-path. llvm-svn: 124198
* Change the test case test_set_prompt() to no longer require quotes around ↵Johnny Chen2010-12-201-1/+1
| | | | | | | | | lldb2 in: # Set prompt to 'lldb2'. self.runCmd("settings set prompt lldb2") llvm-svn: 122272
* Rearrange some statements so that the adding of teardown hook follows ↵Johnny Chen2010-12-141-2/+2
| | | | | | | | immediately after the statement it wants to revert the effect of. llvm-svn: 121813
* Make the TestSettings.py test cases use different output filenames:Johnny Chen2010-12-141-5/+12
| | | | | | | | | | | o "output1.txt" for test_pass_host_env_vars() test case o "output2.txt" for test_run_args_and_env_vars_with_dsym() test case o "output2.txt" for test_run_args_and_env_vars_with_dwarf() test case and add teardown hook to test_pass_host_env_vars() in order to properly unset the host environment variables set while running the test case. llvm-svn: 121811
* Add a test method test_pass_host_env_vars to 'class ↵Johnny Chen2010-12-041-0/+25
| | | | | | | | | SettingsCommandTestCase(TestBase)' which tests the recently added lldb feature of automatically passing the host environment variables to the launched process. llvm-svn: 120871
* Add text about test class cleanup.Johnny Chen2010-10-221-0/+1
| | | | llvm-svn: 117148
* Restoring the original setting should be done more robustly by adding a hook ↵Johnny Chen2010-10-191-3/+10
| | | | | | | | | | | | function to be run during tearDown() to effect the restore action instead of executing it inline during the test method, because the test may already fail and bailout before the inline restore action. Fix test_set_output_path() and pass_run_args_and_env_vars() to use this mechanism. llvm-svn: 116881
* test_set_output_path() should restore the original setting of ↵Johnny Chen2010-10-191-0/+3
| | | | | | | | target.process.output-path after running the program. llvm-svn: 116873
* Add more descriptive messages to expect() instead of using the default ↵Johnny Chen2010-10-191-6/+6
| | | | | | assert messages. llvm-svn: 116850
* Add a little helper function SETTING_MSG(setting) to be used from ↵Johnny Chen2010-10-191-0/+1
| | | | | | TestSettings.test_set_output_path(). llvm-svn: 116847
* Remove out-dated comments.Johnny Chen2010-10-181-2/+0
| | | | llvm-svn: 116748
* Add a case to test that after 'set auto-confirm true', manual confirmation ↵Johnny Chen2010-10-181-0/+29
| | | | | | | | | should not kick in. Also add a more useful assert message for test_set_output_path(), which is currently decorated with @expectedFailure. llvm-svn: 116718
* Wrap the rest of file reading operations inside a with block and convert a ↵Johnny Chen2010-10-081-1/+2
| | | | | | | | assertTrue() usage to self.expect() which is more descriptive. llvm-svn: 116115
* Convert two instances of assertTrue() and string matching usages to ↵Johnny Chen2010-10-081-7/+9
| | | | | | | | | self.expect() which is more descriptive. And wrap the file open operation inside a with block so that close() is automatically called upon exiting the block. llvm-svn: 116096
* The expected term-width output string should be put within a list, not as a ↵Johnny Chen2010-10-081-3/+3
| | | | | | | | | list of characters. Also uncomment the cleanup of "stdout.txt" file as part of the class cleanup routine even though test_set_output_path() is failing right now. llvm-svn: 116023
* Change the expected term-width output string to be a substring instead of a ↵Johnny Chen2010-10-061-1/+1
| | | | | | | | startstring for the test case test_set_term_width() after the recent changes. llvm-svn: 115820
* Updated test case to "settings set prompt 'lldb2'" since the '-o' option is ↵Johnny Chen2010-09-271-2/+5
| | | | | | | | gone. Also added "settings set -r prompt" to reset the prompt afterwards. llvm-svn: 114846
* Add UserSettings to Target class, making Target settingsCaroline Tice2010-09-201-7/+7
| | | | | | | | | | | | | | | | | | the parent of Process settings; add 'default-arch' as a class-wide setting for Target. Replace lldb::GetDefaultArchitecture with Target::GetDefaultArchitecture & Target::SetDefaultArchitecture. Add 'use-external-editor' as user setting to Debugger class & update code appropriately. Add Error parameter to methods that get user settings, for easier reporting of bad requests. Fix various other minor related bugs. Fix test cases to work with new changes. llvm-svn: 114352
* Fixed lldb 'settings set term-widt 70' command not working.Johnny Chen2010-09-201-3/+0
| | | | | | rdar://problem/8449849 llvm-svn: 114328
* Added @expectedFailure decorator for test_set_term_width().Johnny Chen2010-09-191-0/+3
| | | | llvm-svn: 114307
* Added a test case for the settings command which sets process.output-path andJohnny Chen2010-09-161-0/+24
| | | | | | checks that the launched process writes its standard output there. llvm-svn: 114102
* Provided a mechanism for the test class to cleanup after itself once it's done.Johnny Chen2010-09-161-1/+5
| | | | | | | | | | | | | | | | | | | | This will remove the confusion experienced when previous test runs left some files (both intermediate or by-product as a result of the test). lldbtest.TestBase defines a classmethod tearDownClass(cls) which invokes the platform-specific cleanup() function as defined by the plugin; after that, it invokes a subclass-specific function classCleanup(cls) if defined; and, finally, it restores the old working directory. An example of classCleanup(cls) is in settings/TestSettings.py: @classmethod def classCleanup(cls): system(["/bin/sh", "-c", "rm output.txt"]) where it deletes the by-product "output.txt" as a result of running a.out. llvm-svn: 114058
* Added two test cases to TestSettings.py which exercise the lldb's:Johnny Chen2010-09-151-0/+30
| | | | | | | | | | (lldb) settings set process.run-args A B C (lldb) settings set process.env-vars ["MY_ENV_VAR"]=YES commands. The main.cpp checks whether A, B, C is passed to main and whether the $MY_ENV_VAR env variable is defined and outputs the findings to a file. llvm-svn: 114031
* The output for term-width setting has single quotes around the (int) value.Johnny Chen2010-09-071-1/+1
| | | | | | And added a trace output for the stop function name to breakAfterLaunch() method. llvm-svn: 113251
* Added a test case for setting term-width, too.Johnny Chen2010-09-071-0/+14
| | | | llvm-svn: 113219
* Added comments.Johnny Chen2010-09-071-0/+6
| | | | llvm-svn: 113214
* Added a simple test case for the "settings set" command for instance ↵Johnny Chen2010-09-071-0/+27
variable 'prompt'. llvm-svn: 113211
OpenPOWER on IntegriCloud