diff options
author | Chris Wilson <chris+github@qwirx.com> | 2013-08-21 22:45:36 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2013-08-21 22:45:36 +0000 |
commit | bf72ccefc5afb373582374e2a71a7287b92e8e3b (patch) | |
tree | dd92c7ff73a7d396124b92101e27df8f4c3bb3dd | |
parent | 12b7c9b8eac173e326b63a71c890229cd39920e8 (diff) |
Add support for the -W option to test runner executable.
-rw-r--r-- | infrastructure/buildenv-testmain-template.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp index 0de18255..e5b1360d 100644 --- a/infrastructure/buildenv-testmain-template.cpp +++ b/infrastructure/buildenv-testmain-template.cpp @@ -248,7 +248,7 @@ int main(int argc, char * const * argv) int ch; - while ((ch = getopt_long(argc, argv, "c:d:qs:t:vPTUV", longopts, NULL)) + while ((ch = getopt_long(argc, argv, "c:d:qs:t:vPTUVW:", longopts, NULL)) != -1) { switch(ch) @@ -320,6 +320,17 @@ int main(int argc, char * const * argv) } break; + case 'W': + { + logLevel = Logging::GetNamedLevel(optarg); + if (logLevel == Log::INVALID) + { + BOX_FATAL("Invalid logging level: " << optarg); + return 2; + } + } + break; + case 't': { Logging::SetProgramName(optarg); |