diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/test/test.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/linden/indra/test/test.cpp b/linden/indra/test/test.cpp index d4ad4fc..df4b037 100644 --- a/linden/indra/test/test.cpp +++ b/linden/indra/test/test.cpp | |||
@@ -14,12 +14,12 @@ | |||
14 | * ("GPL"), unless you have obtained a separate licensing agreement | 14 | * ("GPL"), unless you have obtained a separate licensing agreement |
15 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 15 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
16 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 16 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
17 | * online at http://secondlife.com/developers/opensource/gplv2 | 17 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
18 | * | 18 | * |
19 | * There are special exceptions to the terms and conditions of the GPL as | 19 | * There are special exceptions to the terms and conditions of the GPL as |
20 | * it is applied to this Source Code. View the full text of the exception | 20 | * it is applied to this Source Code. View the full text of the exception |
21 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 21 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
22 | * online at http://secondlife.com/developers/opensource/flossexception | 22 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -170,6 +170,7 @@ static const apr_getopt_option_t TEST_CL_OPTIONS[] = | |||
170 | {"group", 'g', 1, "Run test group specified by option argument."}, | 170 | {"group", 'g', 1, "Run test group specified by option argument."}, |
171 | {"skip", 's', 1, "Skip test number specified by option argument. Only works when a specific group is being tested"}, | 171 | {"skip", 's', 1, "Skip test number specified by option argument. Only works when a specific group is being tested"}, |
172 | {"wait", 'w', 0, "Wait for input before exit."}, | 172 | {"wait", 'w', 0, "Wait for input before exit."}, |
173 | {"debug", 'd', 0, "Emit full debug logs."}, | ||
173 | {0, 0, 0, 0} | 174 | {0, 0, 0, 0} |
174 | }; | 175 | }; |
175 | 176 | ||
@@ -224,7 +225,8 @@ int main(int argc, char **argv) | |||
224 | LLError::initForApplication("."); | 225 | LLError::initForApplication("."); |
225 | LLError::setFatalFunction(wouldHaveCrashed); | 226 | LLError::setFatalFunction(wouldHaveCrashed); |
226 | LLError::setDefaultLevel(LLError::LEVEL_ERROR); | 227 | LLError::setDefaultLevel(LLError::LEVEL_ERROR); |
227 | // *FIX: should come from error config file | 228 | //< *TODO: should come from error config file. Note that we |
229 | // have a command line option that sets this to debug. | ||
228 | 230 | ||
229 | #ifdef CTYPE_WORKAROUND | 231 | #ifdef CTYPE_WORKAROUND |
230 | ctype_workaround(); | 232 | ctype_workaround(); |
@@ -286,6 +288,11 @@ int main(int argc, char **argv) | |||
286 | case 'w': | 288 | case 'w': |
287 | wait_at_exit = true; | 289 | wait_at_exit = true; |
288 | break; | 290 | break; |
291 | case 'd': | ||
292 | // *TODO: should come from error config file. We set it to | ||
293 | // ERROR by default, so this allows full debug levels. | ||
294 | LLError::setDefaultLevel(LLError::LEVEL_DEBUG); | ||
295 | break; | ||
289 | default: | 296 | default: |
290 | stream_usage(std::cerr, argv[0]); | 297 | stream_usage(std::cerr, argv[0]); |
291 | return 1; | 298 | return 1; |