Johnny Chen | 7737777 | 2010-09-07 17:06:13 +0000 | [diff] [blame] | 1 | """ |
| 2 | Test lldb settings command. |
| 3 | """ |
| 4 | |
| 5 | import os, time |
| 6 | import unittest2 |
| 7 | import lldb |
| 8 | from lldbtest import * |
| 9 | |
| 10 | class SettingsCommandTestCase(TestBase): |
| 11 | |
| 12 | mydir = "settings" |
| 13 | |
Johnny Chen | 1a9f4dd | 2010-09-16 01:53:04 +0000 | [diff] [blame] | 14 | @classmethod |
| 15 | def classCleanup(cls): |
Johnny Chen | a91b947 | 2010-10-22 21:06:04 +0000 | [diff] [blame] | 16 | """Cleanup the test byproducts.""" |
Johnny Chen | a245f93 | 2010-12-14 23:43:29 +0000 | [diff] [blame] | 17 | system(["/bin/sh", "-c", "rm -f output1.txt"]) |
| 18 | system(["/bin/sh", "-c", "rm -f output2.txt"]) |
Johnny Chen | 93b0c8b | 2011-01-25 17:39:43 +0000 | [diff] [blame] | 19 | system(["/bin/sh", "-c", "rm -f stderr.txt"]) |
Johnny Chen | 138532a | 2010-10-08 00:47:30 +0000 | [diff] [blame] | 20 | system(["/bin/sh", "-c", "rm -f stdout.txt"]) |
Johnny Chen | 1a9f4dd | 2010-09-16 01:53:04 +0000 | [diff] [blame] | 21 | |
Johnny Chen | 7fa6c95 | 2011-02-04 00:50:49 +0000 | [diff] [blame] | 22 | def test_apropos_should_also_search_settings_description(self): |
| 23 | """Test that 'apropos' command should also search descriptions for the settings variables.""" |
| 24 | |
| 25 | self.expect("apropos 'environment variable'", |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 26 | substrs = ["target.env-vars", |
Johnny Chen | 7fa6c95 | 2011-02-04 00:50:49 +0000 | [diff] [blame] | 27 | "environment variables", |
| 28 | "executable's environment"]) |
| 29 | |
Johnny Chen | 7737777 | 2010-09-07 17:06:13 +0000 | [diff] [blame] | 30 | def test_set_prompt(self): |
| 31 | """Test that 'set prompt' actually changes the prompt.""" |
Johnny Chen | 881c371 | 2010-09-07 17:12:10 +0000 | [diff] [blame] | 32 | |
Johnny Chen | 23cb371 | 2010-09-27 17:36:59 +0000 | [diff] [blame] | 33 | # Set prompt to 'lldb2'. |
Johnny Chen | 622220b | 2010-12-20 21:29:34 +0000 | [diff] [blame] | 34 | self.runCmd("settings set prompt lldb2") |
Johnny Chen | 881c371 | 2010-09-07 17:12:10 +0000 | [diff] [blame] | 35 | |
| 36 | # Immediately test the setting. |
Johnny Chen | a913ea4 | 2010-10-19 19:39:20 +0000 | [diff] [blame] | 37 | self.expect("settings show prompt", SETTING_MSG("prompt"), |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 38 | startstr = 'prompt (string) = "lldb2"') |
Johnny Chen | 881c371 | 2010-09-07 17:12:10 +0000 | [diff] [blame] | 39 | |
| 40 | # The overall display should also reflect the new setting. |
Johnny Chen | a913ea4 | 2010-10-19 19:39:20 +0000 | [diff] [blame] | 41 | self.expect("settings show", SETTING_MSG("prompt"), |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 42 | substrs = ['prompt (string) = "lldb2"']) |
Johnny Chen | 7737777 | 2010-09-07 17:06:13 +0000 | [diff] [blame] | 43 | |
Johnny Chen | 23cb371 | 2010-09-27 17:36:59 +0000 | [diff] [blame] | 44 | # Use '-r' option to reset to the original default prompt. |
| 45 | self.runCmd("settings set -r prompt") |
| 46 | |
Johnny Chen | a37764b | 2010-09-07 17:31:05 +0000 | [diff] [blame] | 47 | def test_set_term_width(self): |
| 48 | """Test that 'set term-width' actually changes the term-width.""" |
| 49 | |
Johnny Chen | a37764b | 2010-09-07 17:31:05 +0000 | [diff] [blame] | 50 | self.runCmd("settings set term-width 70") |
| 51 | |
| 52 | # Immediately test the setting. |
Johnny Chen | a913ea4 | 2010-10-19 19:39:20 +0000 | [diff] [blame] | 53 | self.expect("settings show term-width", SETTING_MSG("term-width"), |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 54 | startstr = "term-width (int) = 70") |
Johnny Chen | a37764b | 2010-09-07 17:31:05 +0000 | [diff] [blame] | 55 | |
| 56 | # The overall display should also reflect the new setting. |
Johnny Chen | a913ea4 | 2010-10-19 19:39:20 +0000 | [diff] [blame] | 57 | self.expect("settings show", SETTING_MSG("term-width"), |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 58 | substrs = ["term-width (int) = 70"]) |
Johnny Chen | a37764b | 2010-09-07 17:31:05 +0000 | [diff] [blame] | 59 | |
Johnny Chen | 41b780d | 2012-01-18 19:07:08 +0000 | [diff] [blame^] | 60 | #rdar://problem/10712130 |
| 61 | @unittest2.expectedFailure |
| 62 | def test_set_frame_format(self): |
| 63 | """Test that 'set frame-format' with a backtick char in the format string works as well as fullpath.""" |
| 64 | self.buildDefault() |
| 65 | |
| 66 | exe = os.path.join(os.getcwd(), "a.out") |
| 67 | self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) |
| 68 | |
| 69 | format_string = "frame #${frame.index}: ${frame.pc}{ ${module.file.basename}`${function.name-with-args}{${function.pc-offset}}}{ at ${line.file.fullpath}:${line.number}}\n" |
| 70 | self.runCmd("settings set frame-format %s" % format_string) |
| 71 | |
| 72 | # Immediately test the setting. |
| 73 | self.expect("settings show frame-format", SETTING_MSG("frame-format"), |
| 74 | substrs = [format_string]) |
| 75 | |
| 76 | self.runCmd("breakpoint set -n main") |
| 77 | self.runCmd("run") |
| 78 | self.expect("thread backtrace", |
| 79 | substrs = ["`main", os.getcwd()]) |
| 80 | |
Johnny Chen | 3e9c50c | 2010-10-18 17:51:45 +0000 | [diff] [blame] | 81 | def test_set_auto_confirm(self): |
| 82 | """Test that after 'set auto-confirm true', manual confirmation should not kick in.""" |
| 83 | self.buildDefault() |
| 84 | |
| 85 | exe = os.path.join(os.getcwd(), "a.out") |
| 86 | self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) |
| 87 | |
Johnny Chen | 3e9c50c | 2010-10-18 17:51:45 +0000 | [diff] [blame] | 88 | self.runCmd("settings set auto-confirm true") |
| 89 | |
| 90 | # Immediately test the setting. |
Johnny Chen | a913ea4 | 2010-10-19 19:39:20 +0000 | [diff] [blame] | 91 | self.expect("settings show auto-confirm", SETTING_MSG("auto-confirm"), |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 92 | startstr = "auto-confirm (boolean) = true") |
Johnny Chen | 3e9c50c | 2010-10-18 17:51:45 +0000 | [diff] [blame] | 93 | |
| 94 | # Now 'breakpoint delete' should just work fine without confirmation |
| 95 | # prompt from the command interpreter. |
| 96 | self.runCmd("breakpoint set -n main") |
| 97 | self.expect("breakpoint delete", |
| 98 | startstr = "All breakpoints removed") |
| 99 | |
| 100 | # Restore the original setting of auto-confirm. |
| 101 | self.runCmd("settings set -r auto-confirm") |
Johnny Chen | a913ea4 | 2010-10-19 19:39:20 +0000 | [diff] [blame] | 102 | self.expect("settings show auto-confirm", SETTING_MSG("auto-confirm"), |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 103 | startstr = "auto-confirm (boolean) = false") |
Johnny Chen | 3e9c50c | 2010-10-18 17:51:45 +0000 | [diff] [blame] | 104 | |
Johnny Chen | d5e111c | 2010-09-15 22:27:29 +0000 | [diff] [blame] | 105 | @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") |
Johnny Chen | a245f93 | 2010-12-14 23:43:29 +0000 | [diff] [blame] | 106 | def test_run_args_and_env_vars_with_dsym(self): |
Johnny Chen | d5e111c | 2010-09-15 22:27:29 +0000 | [diff] [blame] | 107 | """Test that run-args and env-vars are passed to the launched process.""" |
| 108 | self.buildDsym() |
| 109 | self.pass_run_args_and_env_vars() |
| 110 | |
Johnny Chen | a245f93 | 2010-12-14 23:43:29 +0000 | [diff] [blame] | 111 | def test_run_args_and_env_vars_with_dwarf(self): |
Johnny Chen | d5e111c | 2010-09-15 22:27:29 +0000 | [diff] [blame] | 112 | """Test that run-args and env-vars are passed to the launched process.""" |
| 113 | self.buildDwarf() |
| 114 | self.pass_run_args_and_env_vars() |
| 115 | |
| 116 | def pass_run_args_and_env_vars(self): |
| 117 | """Test that run-args and env-vars are passed to the launched process.""" |
| 118 | exe = os.path.join(os.getcwd(), "a.out") |
| 119 | self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) |
| 120 | |
| 121 | # Set the run-args and the env-vars. |
Johnny Chen | 707d822 | 2010-10-19 23:40:13 +0000 | [diff] [blame] | 122 | # And add hooks to restore the settings during tearDown(). |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 123 | self.runCmd('settings set target.run-args A B C') |
Johnny Chen | 707d822 | 2010-10-19 23:40:13 +0000 | [diff] [blame] | 124 | self.addTearDownHook( |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 125 | lambda: self.runCmd("settings set -r target.run-args")) |
| 126 | self.runCmd('settings set target.env-vars ["MY_ENV_VAR"]=YES') |
Johnny Chen | 707d822 | 2010-10-19 23:40:13 +0000 | [diff] [blame] | 127 | self.addTearDownHook( |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 128 | lambda: self.runCmd("settings set -r target.env-vars")) |
Johnny Chen | d5e111c | 2010-09-15 22:27:29 +0000 | [diff] [blame] | 129 | |
| 130 | self.runCmd("run", RUN_SUCCEEDED) |
| 131 | |
| 132 | # Read the output file produced by running the program. |
Johnny Chen | a245f93 | 2010-12-14 23:43:29 +0000 | [diff] [blame] | 133 | with open('output2.txt', 'r') as f: |
Johnny Chen | 277c8f0 | 2010-10-08 22:10:42 +0000 | [diff] [blame] | 134 | output = f.read() |
Johnny Chen | d5e111c | 2010-09-15 22:27:29 +0000 | [diff] [blame] | 135 | |
Johnny Chen | be7da21 | 2010-10-08 20:01:03 +0000 | [diff] [blame] | 136 | self.expect(output, exe=False, |
| 137 | substrs = ["argv[1] matches", |
| 138 | "argv[2] matches", |
| 139 | "argv[3] matches", |
| 140 | "Environment variable 'MY_ENV_VAR' successfully passed."]) |
Johnny Chen | d5e111c | 2010-09-15 22:27:29 +0000 | [diff] [blame] | 141 | |
Johnny Chen | 80554b8 | 2010-12-04 00:44:56 +0000 | [diff] [blame] | 142 | def test_pass_host_env_vars(self): |
| 143 | """Test that the host env vars are passed to the launched process.""" |
| 144 | self.buildDefault() |
| 145 | |
| 146 | exe = os.path.join(os.getcwd(), "a.out") |
| 147 | self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) |
| 148 | |
| 149 | # By default, inherit-env is 'true'. |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 150 | self.expect('settings show target.inherit-env', "Default inherit-env is 'true'", |
| 151 | startstr = "target.inherit-env (boolean) = true") |
Johnny Chen | 80554b8 | 2010-12-04 00:44:56 +0000 | [diff] [blame] | 152 | |
| 153 | # Set some host environment variables now. |
| 154 | os.environ["MY_HOST_ENV_VAR1"] = "VAR1" |
| 155 | os.environ["MY_HOST_ENV_VAR2"] = "VAR2" |
| 156 | |
Johnny Chen | a245f93 | 2010-12-14 23:43:29 +0000 | [diff] [blame] | 157 | # This is the function to unset the two env variables set above. |
| 158 | def unset_env_variables(): |
| 159 | os.environ.pop("MY_HOST_ENV_VAR1") |
| 160 | os.environ.pop("MY_HOST_ENV_VAR2") |
| 161 | |
| 162 | self.addTearDownHook(unset_env_variables) |
Johnny Chen | 80554b8 | 2010-12-04 00:44:56 +0000 | [diff] [blame] | 163 | self.runCmd("run", RUN_SUCCEEDED) |
| 164 | |
| 165 | # Read the output file produced by running the program. |
Johnny Chen | a245f93 | 2010-12-14 23:43:29 +0000 | [diff] [blame] | 166 | with open('output1.txt', 'r') as f: |
Johnny Chen | 80554b8 | 2010-12-04 00:44:56 +0000 | [diff] [blame] | 167 | output = f.read() |
| 168 | |
| 169 | self.expect(output, exe=False, |
| 170 | substrs = ["The host environment variable 'MY_HOST_ENV_VAR1' successfully passed.", |
| 171 | "The host environment variable 'MY_HOST_ENV_VAR2' successfully passed."]) |
| 172 | |
Johnny Chen | 93b0c8b | 2011-01-25 17:39:43 +0000 | [diff] [blame] | 173 | def test_set_error_output_path(self): |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 174 | """Test that setting target.error/output-path for the launched process works.""" |
Johnny Chen | 2fcc0e5 | 2010-09-16 18:26:06 +0000 | [diff] [blame] | 175 | self.buildDefault() |
| 176 | |
| 177 | exe = os.path.join(os.getcwd(), "a.out") |
| 178 | self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) |
| 179 | |
Johnny Chen | 93b0c8b | 2011-01-25 17:39:43 +0000 | [diff] [blame] | 180 | # Set the error-path and output-path and verify both are set. |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 181 | self.runCmd("settings set target.error-path stderr.txt") |
| 182 | self.runCmd("settings set target.output-path stdout.txt") |
Johnny Chen | 93b0c8b | 2011-01-25 17:39:43 +0000 | [diff] [blame] | 183 | # And add hooks to restore the original settings during tearDown(). |
Johnny Chen | 707d822 | 2010-10-19 23:40:13 +0000 | [diff] [blame] | 184 | self.addTearDownHook( |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 185 | lambda: self.runCmd("settings set -r target.output-path")) |
Johnny Chen | 93b0c8b | 2011-01-25 17:39:43 +0000 | [diff] [blame] | 186 | self.addTearDownHook( |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 187 | lambda: self.runCmd("settings set -r target.error-path")) |
Johnny Chen | 93b0c8b | 2011-01-25 17:39:43 +0000 | [diff] [blame] | 188 | |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 189 | self.expect("settings show target.error-path", |
| 190 | SETTING_MSG("target.error-path"), |
| 191 | startstr = 'target.error-path (string) = "stderr.txt"') |
Johnny Chen | 707d822 | 2010-10-19 23:40:13 +0000 | [diff] [blame] | 192 | |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 193 | self.expect("settings show target.output-path", |
| 194 | SETTING_MSG("target.output-path"), |
| 195 | startstr = 'target.output-path (string) = "stdout.txt"') |
Johnny Chen | 2fcc0e5 | 2010-09-16 18:26:06 +0000 | [diff] [blame] | 196 | |
| 197 | self.runCmd("run", RUN_SUCCEEDED) |
| 198 | |
Johnny Chen | 93b0c8b | 2011-01-25 17:39:43 +0000 | [diff] [blame] | 199 | # The 'stderr.txt' file should now exist. |
| 200 | self.assertTrue(os.path.isfile("stderr.txt"), |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 201 | "'stderr.txt' exists due to target.error-path.") |
Johnny Chen | 93b0c8b | 2011-01-25 17:39:43 +0000 | [diff] [blame] | 202 | |
| 203 | # Read the output file produced by running the program. |
| 204 | with open('stderr.txt', 'r') as f: |
| 205 | output = f.read() |
| 206 | |
| 207 | self.expect(output, exe=False, |
| 208 | startstr = "This message should go to standard error.") |
| 209 | |
Johnny Chen | 3e9c50c | 2010-10-18 17:51:45 +0000 | [diff] [blame] | 210 | # The 'stdout.txt' file should now exist. |
| 211 | self.assertTrue(os.path.isfile("stdout.txt"), |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 212 | "'stdout.txt' exists due to target.output-path.") |
Johnny Chen | 3e9c50c | 2010-10-18 17:51:45 +0000 | [diff] [blame] | 213 | |
Johnny Chen | 2fcc0e5 | 2010-09-16 18:26:06 +0000 | [diff] [blame] | 214 | # Read the output file produced by running the program. |
Johnny Chen | be7da21 | 2010-10-08 20:01:03 +0000 | [diff] [blame] | 215 | with open('stdout.txt', 'r') as f: |
| 216 | output = f.read() |
Johnny Chen | 2fcc0e5 | 2010-09-16 18:26:06 +0000 | [diff] [blame] | 217 | |
Johnny Chen | be7da21 | 2010-10-08 20:01:03 +0000 | [diff] [blame] | 218 | self.expect(output, exe=False, |
| 219 | startstr = "This message should go to standard out.") |
Johnny Chen | 2fcc0e5 | 2010-09-16 18:26:06 +0000 | [diff] [blame] | 220 | |
Caroline Tice | c9c235e | 2011-01-31 18:18:54 +0000 | [diff] [blame] | 221 | def test_print_dictionary_setting(self): |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 222 | self.runCmd ("settings set -r target.env-vars") |
| 223 | self.runCmd ("settings set target.env-vars [\"MY_VAR\"]=some-value") |
| 224 | self.expect ("settings show target.env-vars", |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 225 | substrs = [ "MY_VAR=some-value" ]) |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 226 | self.runCmd ("settings set -r target.env-vars") |
Caroline Tice | c9c235e | 2011-01-31 18:18:54 +0000 | [diff] [blame] | 227 | |
| 228 | def test_print_array_setting(self): |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 229 | self.runCmd ("settings set -r target.run-args") |
| 230 | self.runCmd ("settings set target.run-args gobbledy-gook") |
| 231 | self.expect ("settings show target.run-args", |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 232 | substrs = [ '[0]: "gobbledy-gook"' ]) |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 233 | self.runCmd ("settings set -r target.run-args") |
Caroline Tice | c9c235e | 2011-01-31 18:18:54 +0000 | [diff] [blame] | 234 | |
| 235 | def test_settings_with_quotes (self): |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 236 | self.runCmd ("settings set -r target.run-args") |
| 237 | self.runCmd ("settings set target.run-args a b c") |
| 238 | self.expect ("settings show target.run-args", |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 239 | substrs = [ '[0]: "a"', |
| 240 | '[1]: "b"', |
| 241 | '[2]: "c"' ]) |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 242 | self.runCmd ("settings set target.run-args 'a b c'") |
| 243 | self.expect ("settings show target.run-args", |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 244 | substrs = [ '[0]: "a b c"' ]) |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 245 | self.runCmd ("settings set -r target.run-args") |
| 246 | self.runCmd ("settings set -r target.env-vars") |
| 247 | self.runCmd ('settings set target.env-vars ["MY_FILE"]="this is a file name with spaces.txt"') |
| 248 | self.expect ("settings show target.env-vars", |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 249 | substrs = [ 'MY_FILE=this is a file name with spaces.txt' ]) |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 250 | self.runCmd ("settings set -r target.env-vars") |
Caroline Tice | c9c235e | 2011-01-31 18:18:54 +0000 | [diff] [blame] | 251 | |
Johnny Chen | 7737777 | 2010-09-07 17:06:13 +0000 | [diff] [blame] | 252 | |
Caroline Tice | b904ca5 | 2011-03-10 22:29:54 +0000 | [diff] [blame] | 253 | def test_all_settings_exist (self): |
| 254 | self.expect ("settings show", |
| 255 | substrs = [ "frame-format (string) = ", |
| 256 | "prompt (string) = ", |
| 257 | "script-lang (string) = ", |
| 258 | "term-width (int) = ", |
| 259 | "thread-format (string) = ", |
| 260 | "use-external-editor (boolean) = ", |
| 261 | "auto-confirm (boolean) = ", |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 262 | "target.default-arch (string) =", |
Caroline Tice | b904ca5 | 2011-03-10 22:29:54 +0000 | [diff] [blame] | 263 | "target.expr-prefix (string) = ", |
Greg Clayton | 1d88596 | 2011-11-08 02:43:13 +0000 | [diff] [blame] | 264 | "target.run-args (array) =", |
| 265 | "target.env-vars (dictionary) =", |
| 266 | "target.inherit-env (boolean) = ", |
| 267 | "target.input-path (string) = ", |
| 268 | "target.output-path (string) = ", |
| 269 | "target.error-path (string) = ", |
| 270 | "target.disable-aslr (boolean) = ", |
| 271 | "target.disable-stdio (boolean) = ", |
Greg Clayton | 4c20717 | 2011-04-19 22:32:36 +0000 | [diff] [blame] | 272 | "target.process.thread.step-avoid-regexp (string) =", |
Caroline Tice | b904ca5 | 2011-03-10 22:29:54 +0000 | [diff] [blame] | 273 | "target.process.thread.trace-thread (boolean) =" ]) |
| 274 | |
| 275 | |
Johnny Chen | 7737777 | 2010-09-07 17:06:13 +0000 | [diff] [blame] | 276 | if __name__ == '__main__': |
| 277 | import atexit |
| 278 | lldb.SBDebugger.Initialize() |
| 279 | atexit.register(lambda: lldb.SBDebugger.Terminate()) |
| 280 | unittest2.main() |