diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-12-16 23:52:05 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-12-16 23:52:05 +0000 |
commit | d7ff76379b7b339c22f238d04e87301197485396 (patch) | |
tree | aa64456fd34805dc6bfbfd7ae4f94c85e0690825 /infrastructure/buildenv-testmain-template.cpp | |
parent | 28e9fa9893c0771a38ea2dc8c7829615dda167f0 (diff) |
Pass test options to test daemons.
Diffstat (limited to 'infrastructure/buildenv-testmain-template.cpp')
-rw-r--r-- | infrastructure/buildenv-testmain-template.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp index 1a176c52..b392606b 100644 --- a/infrastructure/buildenv-testmain-template.cpp +++ b/infrastructure/buildenv-testmain-template.cpp @@ -57,7 +57,7 @@ int test(int argc, const char *argv[]); int failures = 0; int first_fail_line; std::string first_fail_file; -std::string bbackupd_args, bbstored_args, bbackupquery_args; +std::string bbackupd_args, bbstored_args, bbackupquery_args, test_args; int filedes_open_at_beginning = -1; @@ -194,12 +194,16 @@ int main(int argc, char * const * argv) case 't': { Console::SetTag(optarg); + test_args += " -t '"; + test_args += optarg; + test_args += "'"; } break; case 'T': { Console::SetShowTime(true); + test_args += " -T"; } break; @@ -207,13 +211,14 @@ int main(int argc, char * const * argv) { Console::SetShowTime(true); Console::SetShowTimeMicros(true); + test_args += " -U"; } break; case '?': { - fprintf(stderr, "Unknown option: %s\n", - optarg); + fprintf(stderr, "Unknown option: '%c'\n", + optopt); exit(2); } |