From 8f6f35e13be03e57cfecdd796dd82b9919543a3a Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 28 Sep 2010 20:12:10 +0200 Subject: [PATCH] winetest: Add the '-i' option so one can specify a test environment description. --- programs/winetest/main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/programs/winetest/main.c b/programs/winetest/main.c index a680af3691a..021ec96ee35 100644 --- a/programs/winetest/main.c +++ b/programs/winetest/main.c @@ -48,6 +48,7 @@ struct wine_test }; char *tag = NULL; +char *description = NULL; char *email = NULL; BOOL aborting = FALSE; static struct wine_test *wine_tests; @@ -247,6 +248,8 @@ static void print_version (void) xprintf (" bRunningUnderWine=%d\n", running_under_wine ()); xprintf (" bRunningOnVisibleDesktop=%d\n", running_on_visible_desktop ()); xprintf (" Submitter=%s\n", email ); + if (description) + xprintf (" Description=%s\n", description ); xprintf (" dwMajorVersion=%u\n dwMinorVersion=%u\n" " dwBuildNumber=%u\n PlatformId=%u\n szCSDVersion=%s\n", ver.dwMajorVersion, ver.dwMinorVersion, ver.dwBuildNumber, @@ -1004,6 +1007,7 @@ usage (void) " -d DIR Use DIR as temp directory (default: %%TEMP%%\\wct)\n" " -e preserve the environment\n" " -h print this message and exit\n" +" -i INFO an optional description of the test platform\n" " -m MAIL an email address to enable developers to contact you\n" " -n exclude the specified tests\n" " -p shutdown when the tests are done\n" @@ -1056,6 +1060,13 @@ int main( int argc, char *argv[] ) case '?': usage (); exit (0); + case 'i': + if (!(description = argv[++i])) + { + usage(); + exit( 2 ); + } + break; case 'm': if (!(email = argv[++i])) {