Greg Geldorp : winetest: Add "-u" command line option so TestBot can include a URL in the report.
Alexandre Julliard
julliard at winehq.org
Tue Nov 23 09:38:23 CST 2010
Module: wine
Branch: master
Commit: 5d7cc36dd9f3b00b22ea8580548ff46c1493c2b8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5d7cc36dd9f3b00b22ea8580548ff46c1493c2b8
Author: Greg Geldorp <ggeldorp at vmware.com>
Date: Sun Nov 21 16:43:18 2010 +0100
winetest: Add "-u" command line option so TestBot can include a URL in the report.
---
programs/winetest/main.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/programs/winetest/main.c b/programs/winetest/main.c
index 021ec96..883006c 100644
--- a/programs/winetest/main.c
+++ b/programs/winetest/main.c
@@ -49,6 +49,7 @@ struct wine_test
char *tag = NULL;
char *description = NULL;
+char *url = NULL;
char *email = NULL;
BOOL aborting = FALSE;
static struct wine_test *wine_tests;
@@ -250,6 +251,8 @@ static void print_version (void)
xprintf (" Submitter=%s\n", email );
if (description)
xprintf (" Description=%s\n", description );
+ if (url)
+ xprintf (" URL=%s\n", url );
xprintf (" dwMajorVersion=%u\n dwMinorVersion=%u\n"
" dwBuildNumber=%u\n PlatformId=%u\n szCSDVersion=%s\n",
ver.dwMajorVersion, ver.dwMinorVersion, ver.dwBuildNumber,
@@ -1015,6 +1018,7 @@ usage (void)
" -o FILE put report into FILE, do not submit\n"
" -s FILE submit FILE, do not run tests\n"
" -t TAG include TAG of characters [-.0-9a-zA-Z] in the report\n"
+" -u URL include TestBot URL in the report\n"
" -x DIR Extract tests to DIR (default: .\\wct) and exit\n");
}
@@ -1117,6 +1121,13 @@ int main( int argc, char *argv[] )
exit (2);
}
break;
+ case 'u':
+ if (!(url = argv[++i]))
+ {
+ usage();
+ exit( 2 );
+ }
+ break;
case 'x':
report (R_TEXTMODE);
if (!(extract = argv[++i]))
More information about the wine-cvs
mailing list