winetest: Add the '-i' option so one can specify a test environment description.

This commit is contained in:
Francois Gouget 2010-09-28 20:12:10 +02:00 committed by Alexandre Julliard
parent 6f5a0a3a81
commit 8f6f35e13b
1 changed files with 11 additions and 0 deletions

View File

@ -48,6 +48,7 @@ struct wine_test
}; };
char *tag = NULL; char *tag = NULL;
char *description = NULL;
char *email = NULL; char *email = NULL;
BOOL aborting = FALSE; BOOL aborting = FALSE;
static struct wine_test *wine_tests; static struct wine_test *wine_tests;
@ -247,6 +248,8 @@ static void print_version (void)
xprintf (" bRunningUnderWine=%d\n", running_under_wine ()); xprintf (" bRunningUnderWine=%d\n", running_under_wine ());
xprintf (" bRunningOnVisibleDesktop=%d\n", running_on_visible_desktop ()); xprintf (" bRunningOnVisibleDesktop=%d\n", running_on_visible_desktop ());
xprintf (" Submitter=%s\n", email ); xprintf (" Submitter=%s\n", email );
if (description)
xprintf (" Description=%s\n", description );
xprintf (" dwMajorVersion=%u\n dwMinorVersion=%u\n" xprintf (" dwMajorVersion=%u\n dwMinorVersion=%u\n"
" dwBuildNumber=%u\n PlatformId=%u\n szCSDVersion=%s\n", " dwBuildNumber=%u\n PlatformId=%u\n szCSDVersion=%s\n",
ver.dwMajorVersion, ver.dwMinorVersion, ver.dwBuildNumber, ver.dwMajorVersion, ver.dwMinorVersion, ver.dwBuildNumber,
@ -1004,6 +1007,7 @@ usage (void)
" -d DIR Use DIR as temp directory (default: %%TEMP%%\\wct)\n" " -d DIR Use DIR as temp directory (default: %%TEMP%%\\wct)\n"
" -e preserve the environment\n" " -e preserve the environment\n"
" -h print this message and exit\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" " -m MAIL an email address to enable developers to contact you\n"
" -n exclude the specified tests\n" " -n exclude the specified tests\n"
" -p shutdown when the tests are done\n" " -p shutdown when the tests are done\n"
@ -1056,6 +1060,13 @@ int main( int argc, char *argv[] )
case '?': case '?':
usage (); usage ();
exit (0); exit (0);
case 'i':
if (!(description = argv[++i]))
{
usage();
exit( 2 );
}
break;
case 'm': case 'm':
if (!(email = argv[++i])) if (!(email = argv[++i]))
{ {